I want to dynamically change the server that my web service connections point to in my LiveCycle forms but when I do xfa.connectionSet.MyConnection.soapAddress.value = myUrl it is ignored. How can I set the soapAddress dynamically at runtime?
Solved! Go to Solution.
Views
Replies
Total Likes
You need to clone your connection to set the value at runtime..
In the below example, replace SearchData with your Data Connection name.
var oCS = xfa.connectionSet.SearchData.clone(1);
oCS.soapAddress.value = "http://YourWebServiceURL?wsdl";
oCS.execute(0);
Thanks
Srini
Views
Replies
Total Likes
You need to clone your connection to set the value at runtime..
In the below example, replace SearchData with your Data Connection name.
var oCS = xfa.connectionSet.SearchData.clone(1);
oCS.soapAddress.value = "http://YourWebServiceURL?wsdl";
oCS.execute(0);
Thanks
Srini
Views
Replies
Total Likes
Thank you very much. I wasn't sure at first but it seems to work great and even fires the postExecute events (wired up directly in the XML source of the XDP) and retains all bindings.
Views
Replies
Total Likes
HI,
I'm trying to use your suggestion but I don't see the CLONE after my data connection. Can you please suggest where I might be going wrong.
Regards,
Tushar.
Views
Replies
Total Likes