cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass the dynamic URL of web services in JAVASCRIPT in ADOBE

Former Member
0 Kudos

Hi,

In the below scenario how do i pass the URL dynamically from context's importing parameters instead of hard coding.

var cURL = "http://................" ;

var service = SOAP.connect(cURL);

xfa.connectionSet.connectionname.execute(0);

B'coz the URL is going to be different in Dev, Test, Prod system. In this case i can't hardcode the URL as explained in previous treads. Or please provide the possible alternatives.

Any help is highly appreciated.

Regards,

Sathish

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Got the solution for

var cURL = "http://................" ;

var service = SOAP.connect(cURL);

xfa.connectionSet.connectionname.execute(0);

I tried with

var cURL = xfa.form.data.PAGE2.SubFormPage.IM_URL.rawValue ;

var service = SOAP.connect(cURL);

xfa.connectionSet.connectionname.execute(0);

xfa - Root Node

form - Model

data - Form Design Root Node

PAGE2 - Page Name

SubFormPage - Sub Form inside the page

IM_URL.rawValue - Importing field to Adobe{ which i dragged from Data view into sub form(SubFormPage) & set the field as invisible so that it won't be available to user}

Working as expected.

Thanks,

Sathish