Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Script Object when rendering to HTML

Avatar

Level 3
Hi,

I am developing a form that requires the same script to be reused many times. This form is going to be rendered out to HTML through Workflow, and I'm not sure how to access a script object when rendering to HTML. The root of my form is MISForm so I tried this:



MISForm.variables.getXML.getXMLDoc("http://lcwftest:8080/services/getEmployeeInfo?method=synchronousInvoke&empnum="+this.rawValue);



getXML being the script object and getXMLDoc being the function. But this returns MisForm is not defined.



I also tried a reference straight to the object



getXML.getXMLDoc("http://lcwftest:8080/services/getEmployeeInfo?method=synchronousInvoke&empnum="+this.rawValue);



but that also returned "is not defined"



How do I reference the script object.
2 Replies

Avatar

Former Community Member
Hi

I think when form rendered to the html page ,the script object can not work.

Avatar

Former Community Member
I believe it gets something like

xfa.resolveNode("MISForm").getXML.getXMLDoc...



It also depends on if your script object is located in the root or if it is located within your page if you understand what I am trying to say. With pdf you can have a global script and reference it on each page but with html I would be more than happy if you find a solution on it... you have to have the script object on each page.