GetPageField
Mon 01 January 2018Syntax
GetPageField(Page.pagename, [scrollpath. [target_row, ]] page_field_name)
where scrollpath is:
[RECORD.level1_recname, level1_row, [RECORD.level2_recname, level2_row, ]] RECORD.target_recname
To prevent ambiguous references, you can use SCROLL. scrollname , where scrollname is the same as the scroll levelâs primary record name.
Description
Use the GetPageField function to reference a specific page field anywhere in the current component. Generally, you will need to use GetPageField to reference radio buttons, which represent multiple instances of a record field.
Note: The page field name is not the same as the record field name. The page field name is the name specified on the General tab for the page field properties in the page definition in Application Designer.
The GetField function, by contrast, uses the record field name as an argument.
If you need to reference a field that is unique in the current context, you can use the GetField function.
See , , , .
Parameters
Field or Control |
Definition |
---|---|
Pagename |
The name of the page specified in the page definition, preceded by the keyword Page . The pagename page must be in the current component. You can also pass the %page system variable in this parameter (without the Page reserved word). |
scrollpath |
A construction that specifies a scroll level in the component buffer. This parameter is optional. The default is the current scroll. |
target_row |
The row number of the row in which the field occurs. This parameter is optional. The default is the current row. |
page_field_name |
The name of the page field specified in the page field properties in the page definition. |
Returns
This function returns a field object that references a specific instance of a page field in the component buffer.