Expand my Community achievements bar.

setting the webservice url at run time for a execute button in adobe form

Avatar

Former Community Member

Hi,

I am using Data connection from the wsdl file to interact with the backend, the button generated from the data connection is of type execute which has the url of the webservice in the object property "Webservice URL" and name of the FM in the interface name. My problem is at present the form is working fine but when the same form transported to QA and PRD them the url of the webservice gets change. hence the same button wont function.

The solution is either we do the changes manually in all the system or pass the url at run time. Please proide me the solution if there is a way to set this url in the execute button at runtime.

Thanks in advance.

Pooja

1 Reply

Avatar

Level 2

Why don't you pass in the URL via an XML input file and bind a hidden text field in your form to that element in your XML? Then use javascript to modify the docReady event of the submit button to something like this:

var url = textFieldWithURL.rawValue;

this.event__click.submit.target = url;