File Maintenance Generator

HTML Calculation

Step 6: Field Layout

Note:
The HTML Calculation option is only available when the HTML Page check box is selected for Form Type.

The Add an HTML Calculation window is used to add an HTML calculation to a cell that contains a data dictionary field.

(The ability to add/edit an HTML Calculation was added in PxPlus 2022.)

To invoke this window, use one of the following methods:

     • Click the Add Object button (above the Layout Grid) and select the HTML Calculation option. OR

     • Right click on a cell in the Layout Grid, select Add Object from the popup menu and then select the Add or Edit an HTML Calculation option.

    

This window consists of the following:

Field Name

Displays the name of the data dictionary field.

Webster+ HTML Calculation

Calculation

Enter an HTML calculation. Fields used in the calculation must either exist on the panel Layout Grid or be included as Hidden Variables.

Example:

     ytdSales+prvSales

Priority

(Available when an HTML Calculation is entered)

Controls the order in which the HTML calculations are done. Can be any number between 1 and 9 (1 is first priority). The default priority is 5 for each calculation defined.

The [addcalc] short codes, which correspond to all the HTML calculations entered on the panel Layout Grid, are added at the end of the generated HTML page, sorted by priority. If two or more HTML calculations are assigned the same priority level, calculations will be done in field name sequence within each priority level.

If the order of the HTML calculations is not important, the priority can be left as 5 for all HTML calculations.

When an HTML calculation is entered for a data dictionary field, the priority level displays at the end of the Info Line for that field.

(The HTML Calculation Priority was added in PxPlus 2022 Update 1.)

OK

Saves the HTML calculation and returns to the Layout Grid. A blue tick displays in the top left corner of the cell to indicate that an HTML calculation was added.

If a data dictionary field has both an HTML calculation and an HTML Event defined, a magenta tick will display.

(The colored tick indicator was added in PxPlus 2023.)

Cancel

Cancels any changes and returns to the Layout Grid.