Invoke a Web service when opening the PDF file

Hello!

I have this Web service to generate a sequence number when the user clicks a button on the PDF form.

How do I call the service whenever the form is opened, rather than wait for a click on the button?

Thank you for all the ideas!

Marcos

1) there are a number of events that fire off when a form opens / opens / just opened... etc.

Example events that can be used

Any initialization of field...

form: ready

layout: ready

docReady (is probably best for your purpose)

Remember each event behaves differently and at different times, and a few bubbles - for your application described, I would use the docReady event

2)

To run the Web service button programmatically:

btn.execEvent ("click");

3)

Comment your code

Tags: Adobe LiveCycle

Similar Questions

Maybe you are looking for