For FormCalc, use this syntax. The ‘xfa.event.name’ parameter is explained in the example below.
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.