Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Call WebService on startup

Avatar

Former Community Member
I have a form that uses web services. A user enters a order number for an existing order and about 10 fields are populated. This works great.



I now want to pass the order number in when the form is launched and call the web service on start up/form load.



Thanks
2 Replies

Avatar

Former Community Member
Hi Chris,

By script you can execute web service also

//Javascript

xfa.connectionSet.YourWebServiceConnName.execute(1);



Since you bind the orderNumber to your web service's request parameter, web service will work correctly.



Hope helps,



Asiye

Avatar

Former Community Member
That looks easy enough. I just need to know how to pass the orderNumber into the PDF on startup. I need to populate teh orderNumber field before calling the web service.



I should mention that I am calling the PDF from a web application java/tomcat. I currently just have an http link to the PDF. I want to replace that with a call that would pass in the orderNumber.



Thanks