16.1 Understanding Page Computations
Use computations to assign a value to an identified item when a page is submitted or displayed.
- About Page Computations
A page computation assigns a value to an identified item when a page is displayed or submitted (rendered and processed). - Creating a Page Computation
Create a Page Computation in Page Designer. - Editing Page Computation Attributes
Edit a page computation in Page Designer. - Editing the Computation Point and Source
Control when a computation executes by editing the Sequence and Point attributes. - Example: Computation Points and Computation Syntax
View computation points and computation syntax example.
See Also:
Parent topic: Managing Computations, Validations, and Processes
16.1.1 About Page Computations
A page computation assigns a value to an identified item when a page is displayed or submitted (rendered and processed).
You create a page computation by running the Create Page Computation Wizard. For each computation, specify the item for which you are creating the computation and a computation type.
You can also use application-level computations to assign values to items. Most page-level computations populate page items. In contrast, most application-level computations populate application items.
Parent topic: Understanding Page Computations
16.1.2 Creating a Page Computation
Create a Page Computation in Page Designer.
To create a page computation:
16.1.3 Editing Page Computation Attributes
Edit a page computation in Page Designer.
To edit a page computation:
See Also:
Parent topic: Understanding Page Computations
16.1.4 Editing the Computation Point and Source
Control when a computation executes by editing the Sequence and Point attributes.
You control when a computation executes by editing the Sequence and Point attributes. The Sequence attribute determines the order of evaluation. The Point attribute determines the point in page rendering or processing at which the computation executes. The most typical computation point is After Submit.
To edit a computation point and source:
See Also:
Parent topic: Understanding Page Computations
16.1.5 Example: Computation Points and Computation Syntax
View computation points and computation syntax example.
A good example of using computations can be illustrated by a page containing form fields for entering phone numbers. In this example, the phone number is stored in one database column; however, the data entry form breaks the phone number into three components: area code, prefix, and line number. In this example, the page items are called P10_AREA_CODE
, P10_PREFIX
, and P10_LINE_NUMBER
.
Next, suppose you need to combine the values stored in these items into a single string. You could accomplish this by using an After Submit computation and store the combined values in an item called P10_PHONE_NUMBER
.
To create a computation to store the combined values of P10_AREA_CODE
, P10_PREFIX
, and P10_LINE_NUMBER
in new items:
- Navigate to the appropriate page.
- Create an item named
P10_PHONE_NUMBER
to store the combined values ofP10_AREA_CODE
,P10_PREFIX
, andP10_LINE_NUMBER
. - Create the computation:
- In the Property Editor, edit the following attributes:
- Identification, Item Name - Select
P10_PHONE_NUMBER
. - Execution Options, Sequence - Specify the sequence for this computation. The sequence determines the order of execution.
- Execution Options, Point - Select at what point in page rendering or processing this computation is executed. The most typical computation point is After Submit.
- Identification, Item Name - Select
- For Computation Type, you can create the following computation types:
- Click Save.
Parent topic: Understanding Page Computations