Skip to main content
Known Participant
May 23, 2017 1:30 AM UTC
Question

How call multiple pdf's

Hi,

I have a variable called ODoc which is the current pdf and calls a global function which places a label on it based on input into a dialogue (code not shown):

var oDoc = event.target;  

        global.DoPlaceDocNumbers(oDoc)

However, I would like it to call all the pdf's in the batch so the labels can be applied all at the same time.

I have posted this question before and received an answer about calling all the pdf's at once and then performing the action.  I have been researching this to see if there is an "event.all" (or something similar) which I did not see and then tried using a for loop to accomplish this but have not been successful:

var oDoc = event.target;

for (var i=0; i<oDoc; i++)

global.DoPlaceDocNumbers(oDoc)

This topic is closed to new replies. Start a new post to keep the conversation going.

11 replies

Bernd Alheit
Community Expert
Community Expert
May 23, 2017 5:47 AM UTC

Want you place the labels on all open documents?

Translate
suemo22Author
Known Participant
May 23, 2017 12:50 PM UTC

All the documents would not be open.  They would have been selected as a part of the batch record selection of the action wizard. Only the 1st document would be opened to initiate the action wizard.

Selection of Documents:

Action Wizard Steps:

Translate
Bernd Alheit
Community Expert
Community Expert
May 23, 2017 3:14 PM UTC

In the Action Wizard you can use:

global.DoPlaceDocNumbers(this),

Translate