Data Page form
|
|
Your application can automatically send parameter values to data pages from either UI elements or non-UI rules like data transforms or activities.
Each time you reference a data page with different parameters, it creates an instance of the data page on the clipboard: a data page that provides customer information creates a new instance of itself whenever its parameter values (for instance, the Customer ID) change. You can have multiple instances of a data page on the clipboard, each one created by a reference with different parameters from the others; or, if you have checked the Limit to a single data page check box on the Load Management tab, each new reference to the data page creates an instance of the data page that overwrites any existing instance.
Subsequent references to a data page using parameters that result in a reference to an existing instance of the data page on the clipboard refer to that existing data page unless the conditional refresh strategy (see below) indicates the page should be reloaded on each reference.
Use this tab to list and describe parameters the data page requires. Add rows in the display by clicking the Add icon.
For each parameter provide the following information:
For elements like drop-down lists and radio buttons:
When you add a section to a section, you can pass parameters to the data page the section invokes for its properties in the Using Page section of the Include Section Rule dialog. See Harness, Section, and Flow Action forms - including a section.
Presume you have a data page named D_Customer, with parameters CustID and DetailLevel that let you specify the customer and the level of detail the instance of the data page holds, reference the data page using this syntax:
D_Customer[CustID:myCustomer, DetailLevel:Full]
If the data page requires only a single parameter, you can provide the parameter without specifying the parameter name. If D_Customer has a single parameter, CustID, use this syntax:
D_Customer[myCustomer]
Note: The system accepts either of the above syntaxes to reference a data page only in a field where the Expression Builder is enabled. For example, you cannot use the syntax in the findPage() PublicAPI method.
Non-UI rules from which you can pass parameters to data pages include:
You can pass parameters from any autogenerated property to its data page, using the General tab of the property rule, by setting the data access type to Automatic reference to class instance (Linked) and completing the additional fields that appear. See Properties rule - completing the General tab.
Note: Report definitions cannot reference data pages that themselves take parameters (such as D_page1[param1:D_page2[param2:Param.P1],param2:pxRequestor.pyUserIdentifier].pyLabel) to populate columns, although they can directly reference properties in a data page (such as D_page1.companyName).