Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

This article explains how to trace the flow of an Interactive Adobe form by displaying the value of form variables via JavaScript or FormCalc.

For JavaScript, use this syntax to display the value of variables on the Interactive Adobe form:

xfa.host.messageBox(xfa.event.name);

For FormCalc, use this syntax. The ‘xfa.event.name’ parameter is explained in the example below.

xfa.host.messageBox(xfa.event.name)

Here is an example using FormCalc.

(1) Issue transaction SFP to select the form in Change mode. Go to the Design View tab.

We want to display the Carrier ID value at the end of the Airline Carrier event.

(2) Click the Airline Carrier drop down box on the form to go to the Airline Carrier event logic.

 

The Airline Carrier (CARRID) event logic is displayed.  The highlighted line shows the ‘xfa.event.name’ parameter within the messageBox. This statement will
display the CARRID value.  If you do not specify a variable name, ‘$’ defaults to CARRID, which is the variable we are binding to in the CARRID event. Otherwise, you have to replace the ‘$’ with the variable name explicitly in the messageBox parameter .

We are binding to CARRID.

(3) For a quick in stream test, click on the Preview PDF tab. Enter ‘DL’ as the Airline Carrier.

The messageBox statement is encountered and displays the value of CARRID which is 'DL'.

When using this form interactively, it will also display the value of CARRID.

Labels in this area