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

SOLVED

Invoking a webservice when opening the PDF

Avatar

Level 5

Hello!

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

How do I invoke the service as soon as the form is open, instead of waiting for a click on the button?

Thank you for any ideas!

Marcos

1 Accepted Solution

Avatar

Correct answer by
Level 3

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

Example events that can be used

Any field... initialize

form:ready

layout:ready

docReady (is probably the best for your purpose)

Remember each event behaves differently & at different times and some bubble - for your described application, I would use the docReady event

2)

To execute the webservice button programmatically:

btn.execEvent("click");

3)

// comment your code

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

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

Example events that can be used

Any field... initialize

form:ready

layout:ready

docReady (is probably the best for your purpose)

Remember each event behaves differently & at different times and some bubble - for your described application, I would use the docReady event

2)

To execute the webservice button programmatically:

btn.execEvent("click");

3)

// comment your code