ViewItem |
|
ViewItem is a subordinate object used to define an item selected for the view. One object is defined for each item selected. Items can be data source items or calculated items. The ViewItem object corresponds to a record in the pvxview.vue file.
For information on the pvxview.vue file structure, see Views System File Structures. Properties are read only and are set using corresponding Setxxx( ) methods.
The following table lists the properties of the ViewItem subordinate object:
Property |
Description | ||||
Column$ |
Column name (no trailing "$"). | ||||
Condition$ |
(Internal Use Only) Filter condition specific to the view item. Use ViewCtl SetFilter( ) method. | ||||
ItemType$ |
Indicates the source of the item where:
(ItemType$ property was added in PxPlus 2021.) | ||||
Path$ |
Source linkage. For calculated items, linkage is to the CalcItem object ID. For data source items, linkage consists of: Linkage begins just below the primary data source, resulting in the linkage for items from the primary data source consisting of the DS_Item ObjID alone. | ||||
RawCondition$ |
Raw condition data consisting of the condition code, case flag and up to eight comparison values all separated by $01$. |
The following table lists the methods of the ViewItem subordinate object:
Method |
Description | ||||||||||||||||||||||||||||||||
SetColumn(Column$) |
Set a column name (no trailing "$"). | ||||||||||||||||||||||||||||||||
SetCondition(Code, Case [, v1$ … v8$ ]) |
Set a filter condition specific to the view item. (Use ViewCtlSetFilter( ) method.)
v1$...v8$ - Values to be used in comparison. Pass numeric values as string arguments. Condition2$ - A simple PxPlus conditional expression: Note:
| ||||||||||||||||||||||||||||||||
SetPath(Path$) |
Set the source linkage. For calculated items, the linkage is to the CalcItem object ID. For data source items, linkage consists of: | ||||||||||||||||||||||||||||||||
SetType(Type$) |
Set the type of data where:
(SetType method was added in PxPlus 2021.) |