Layout model root Represents the root of the layout model xfa. Collection of data record Represents the current record of a collection of data, such as from an XML file. Template model root Represents the root of the template model xfa. Select all form objects Selects all form objects within a given container, such as a subform, regardless of name, or selects all objects that have a similar name. Example For example, the following expression selects all objects named item on a form: xfa.
Search for objects that are part of a subcontainer You can use two dots at any point in your reference syntax to search for objects that are a part of any subcontainer of the current container object, such as a subform. View full size graphic. Example The following reference syntax accesses an unnamed subform: xfa. Occurrence value of an object The square bracket [ ] notation denotes the occurrence value of an object.
Notation [ ]. Example To construct an occurrence value reference, place square brackets [ ] after an object name, and enclose within the brackets one of the following values: [ n ] , where n is an absolute occurrence index number beginning at 0. For example, xfa. Quantity[3] refers to the fourth occurrence of the Quantity object. For example, if this reference was attached to the Quantity[2]object , the reference would be the same as xfa. Quantity[4] If the computed index number is out of range, the reference returns an error.
None PPmt n1, n2, n3, n4, n5 Returns the amount of principal paid on a loan over a period of time. None PV n1, n2, n3 Returns the present value of an investment of periodic constant payments at a constant interest rate. None Rate n1, n2, n3 Returns the compound interest rate per period required for an investment to grow from present to future value in a given period.
None Ref Returns a reference to an existing object. None Replace s1, s2 [, s3 ] Replaces all occurrences of one string with another within a specified string. Space n1 Returns a string consisting of a given number of blank spaces.
None Str n1 [, n2 [, n3 ] ] Converts a number to a character string. String n1 or Number. None Substr s1, n1, n2 Extracts a portion of a given string. None Term n1, n2, n3 Returns the number of periods required to reach a given future value from periodic constant payments into an interest-bearing account. None Time Returns the current system time as the number of milliseconds since the epoch. Time2Num d1 [, f1 [, k1 ] ] Returns the number of milliseconds since the epoch, given a time string.
None TimeFmt [n1 [, k1 ] ] Returns a time format, given a time format style. None UnitType s1 Returns the units of a unitspan. None UnitValue s1 [, s2 ] Returns the numeric value of a measurement with its associated unitspan after an optional unit conversion. None Upper s1 [, k1 ] Converts all lowercase characters within a string to uppercase.
None Within s1, s2, s3 Returns true 1 if the test value is within a given range, and false 0 if it is not. Returns the absolute value of a numeric value or expression. Apr n1, n2, n3. Returns the annual percentage rate for a loan.
Locates the starting character position of a string within another string. Avg n1 [, n Returns the whole number greater than or equal to a given number. Choose n1, s1 [, s Selects a value from a given set of parameters. Concat s1 [, s Returns the concatenation of two or more strings. Count n1 [, n CTerm n1, n2, n3. Returns the current system date as the number of days since the epoch.
Date2Num d1 [, f1 [, k1 ] ]. Returns the number of days since the epoch, given a date string. DateFmt [ n1 [, k1 ] ].
Returns a date format string, given a date format style. Decode s1 [, s2 ]. Returns the decoded version of a given string. Encode s1 [, s2 ]. One of these handy scripts is found in the Add Item button's click event Figure 4. This script creates a new line item in the purchase order each time the button is clicked.
In the previous chapter, you saw how this was made possible by the form's subform structure. However, it is the script that calls the subform's instance manager with the directive to create a new instance. This script runs on the button's click event. Figure 4. Another practical script is found in the Grand Total text field numGrandTotal. This script automatically calculates the grand total for the purchase order every time a financial event on the purchase order occurs.
When a new item is entered or when a new tax is applied, the grand total is automatically recalculated. This is a very useful script for form fillers because they can see how all of their changes and additions to the purchase order affect the bottom line. Unlike the previous script, which ran on the click event, this script runs on the text field's calculate event. You'll learn how these different events affect your form's performance in the "Events" section later in this chapter.
Although you don't absolutely need scripting in your forms, a small investment in scripting will yield all of the following benefits to you and your form fillers:. You can create calculations and scripts that impact all form design objects. However, you can only add calculations and scripts to the form events of a particular object. The following table provides a quick reference of scripting support for objects available in the Standard category of the Library palette.
I would like to receive exclusive offers and hear about products from Adobe Press and its family of brands. I can unsubscribe at any time. Pearson Education, Inc. This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site.
Please note that other Pearson websites and online products and services have their own separate privacy policies. To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:.
For inquiries and questions, we collect the inquiry or question, together with name, contact details email address, phone number and mailing address and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.
We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes. Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary.
FormCalc reference syntax shortcuts. Adobe LiveCycle ES3. Referencing unnamed and repeated objects. View full size graphic. Note: By default, if you do not specify an occurrence value for an object, the reference syntax accesses the first occurrence of that object.
Note: The statement completion options available in the Script Editor include unnamed objects at the beginning of the list. Objects that have multiple occurrence values appear only once in the list, representing the first occurrence of the object.
If you want to access an occurrence value other that the first occurrence, you must manually add the occurrence value to the reference syntax.
0コメント