I would like to populate a repeating subform with information retrieved form a WSDL service.
Through a form, I submit an id which is used in the workflow to get multple rows. The result is assigned to an XML variable which displays as a text field in the form.
How can I merge the XML variable's data within the PDF ?
Aditya
Solved! Go to Solution.
Views
Replies
Total Likes
In the script on the Button that executes the wsdl, comment out the 2nd last line.
xfa.data.nodes.remove(oRemoveNode);
When the node is removed it is remerging the data dom with the template and thuscausinng the DDlist to clear.
paul
Views
Replies
Total Likes
No that is not the service that I sent you ....Jon Brinkman created a sample that uses that one ...maybe you are getting confused.
Paul
Views
Replies
Total Likes
I checked twice, the pdf you attached with the LCA, in one of the previous posts, did not have any data connections and it only had the script to fill the dropdown. Could it have been shipped with the LCA ?
Aditya
Views
Replies
Total Likes
Sorry I posted the wrong form .....here is the matching form that you need. I will remove the other one and replace it as well so others do not get confused.
paul
Views
Replies
Total Likes
I get the message box every for every name added to the list but nothing appears in the DDL.
Aditya
Views
Replies
Total Likes
In the script on the Button that executes the wsdl, comment out the 2nd last line.
xfa.data.nodes.remove(oRemoveNode);
When the node is removed it is remerging the data dom with the template and thuscausinng the DDlist to clear.
paul
Views
Replies
Total Likes
It worked !! Can I use a similar functionality if I wanted to merge it with static fields in the form like using an id to prefill name, phone, address, etc.? Will the code below do the job ?
xfa.datasets.data.loadXML(xml_result.rawValue, false, false);
xml_result.rawValue = xfa.datasets.data.saveXML();
Aditya
Views
Replies
Total Likes
If you are getting individual values pack from the web service for each field then you can simply bind the result to the field (liek I did for the XML string that came back from the call). This technique was specific to fillinng in the dropdown bacuse the returned XML had to be parsed to pull out the appropriate nodes and Designer cannot introspect the XML that is contained within the result node.
Make sense?
paul
Views
Replies
Total Likes
It does, In fact I thought of it that way initially but wouldn't it be a manual process if I had more than 20 fields ?
Aditya
Views
Replies
Total Likes
Depends how the webservice is set up. If you have 20 unique output vars in the orchestration then you will have 20 nodes in the lca and you can simply bind. If there is a single xml var in the orchestration that holds 20 values in its xml then you will have to do it like in the sample.
Paul
Views
Replies
Total Likes
Hi Paul,
I am try to use your sample by changing dataview connection to point to my wsdl but could not make it work right. When I mannually invoke the wsdl in workbench I do get some results but when I try to run the form, I do not get any data in the xml_result.
Can you help on this. Please provide me your email so I can send you the form.
Thanks,
Han Dao
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies