Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

Avatar

Not applicable

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

0 Replies

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;