Views System File Structures |
|
The Views System uses seven data control files:
|
Defines view contents. | |
|
Defines data sources and views. | |
|
Defines calculated items in a view. | |
|
Defines elements within the data sources. | |
|
Defines interrelationships between the data sources. | |
|
Defines group names. | |
|
Defines which data sources and views belong to which group. |
These files are initially created in the current working directory and must be accessible whenever view components are defined or accessed.
(The pvxview.clc file was added in PxPlus 2021.)
The file structure for pvxview.vue is explained below.
Element Name |
Description |
Length |
Print Format | ||||
VUE_ID |
View identifier |
8 |
XXX00000 | ||||
VUE_SEQ |
View sequence. An optional record with sequence 0000 may exist for views with a free-form filter assigned. Free-form filters are applied at the view level rather than at the field level. |
4 |
0000 | ||||
VUE_PATH |
Source linkage. An item from the primary data source is defined by its ITM_ID$ alone. Items from linked or related files are defined by the LNK_ID$(s) followed by the item's ITM_ID$. |
240 | |||||
VUE_COLUMN |
Column name |
60 | |||||
VUE_CONDITION |
Filter condition. This is applied at the view level if VUE_SEQ is 0000 and applied at the field level if VUE_SEQ is greater than 0000. Note: |
500 | |||||
VUE_TYPE |
(VUE_TYPE was added in PxPlus 2021.) |
1 |
|
Record size (including delimiters): |
819 | ||
Defined record size: |
1024 (Variable) | ||
Key Definitions: | |||
Primary key: |
VUE_ID + VUE_SEQ |
[1:1:8]+[2:1:4] | |
The file structure for pvxview.clc is explained below.
(The pvxview.clc file was added in PxPlus 2021.)
Element Name |
Description |
Length |
Print Format | ||||
CLC_ID |
Element ID |
8 |
XXX00000 | ||||
CLC_SRC_ID |
Parent (view) ID |
8 |
XXX00000 | ||||
CLC_NAME |
Field or column name |
30 |
| ||||
CLC_DESC |
Item description |
64 |
| ||||
CLC_DATA_TYPE |
Data type
|
1 |
| ||||
CLC_LENGTH |
Item length |
10 |
| ||||
CLC_EXPR_IND |
Type of expression (Not Used) |
1 |
| ||||
CLC_SOURCE |
Formula/expression |
300 |
| ||||
CLC_CLASS |
Class of item |
24 |
| ||||
CLC_FLD_SEQ |
Item sequence |
4 |
0000 |
Record size (including delimiters): |
460 | ||
Defined record size: |
640 (Variable) | ||
| |||
Primary key: |
CLC_ID |
[1:1:8] | |
Alternate Key 1: |
CLC_SRC_ID + CLC_ID |
[2:1:8]+[1:1:8] | |
Alternate Key 2: |
CLC_SRC_ID + CLC_NAME |
[2:1:8]+[3:1:30:"C"] | |
Alternate Key 3: |
CLC_SRC_ID + CLC_DESC |
[2:1:8]+[4:1:64:"C"] | |
Alternate Key 4: |
CLC_SRC_ID + CLC_FLD_SEQ |
[2:1:8]+[10:1:4] | |
The file structure for pvxview.srcis explained below.
Element Name |
Description |
Length |
Print Format | ||||||||||
SRC_ID |
Data source ID |
8 |
XXX00000 | ||||||||||
SRC_DESC |
Data source description |
64 | |||||||||||
SRC_TYPE |
Source type
|
1 | |||||||||||
SRC_EXPR_IND |
Expression indicator
|
1 | |||||||||||
SRC_PRIMARY_SOURCE |
Data source
|
1024 | |||||||||||
SRC_KEY |
(Used by SRC_TYPE V Only) Sort key |
64 | |||||||||||
SRC_ORDER |
(Used by SRC_TYPE V Only) Element order
|
1 | |||||||||||
SRC_UPD_STAMP |
Last update |
48 | |||||||||||
SRC_LONG_DESC |
Long description |
255 | |||||||||||
SRC_PASSWORD |
(Used by SRC_TYPE V Only) Password (encrypted) |
12 | |||||||||||
SRC_INIT_LOGIC |
Initialization logic |
128 | |||||||||||
SRC_EXEC_LOGIC |
Execution logic |
128 | |||||||||||
SRC_CLOSE_LOGIC |
Closing logic |
128 | |||||||||||
SRC_LOGIC_OBJECT |
Logic object |
128 |
Record size (including delimiters): |
2004 | |
Defined record size: |
2176 (Variable) | |
Key Definitions: | ||
Primary key: |
SRC_ID |
[1:1:8] |
Alternate Key 1: |
SRC_DESC |
[2:1:64:"UC"] |
The file structure for pvxview.itm is explained below.
Element Name |
Description |
Length |
Print Format | ||||
ITM_ID |
Element ID |
8 |
XXX00000 | ||||
ITM_SRC_ID |
Parent (data source) ID |
8 |
XXX00000 | ||||
ITM_NAME |
Field or column name |
30 | |||||
ITM_DESC |
Element description |
64 | |||||
ITM_DATA_TYPE |
Data type
|
1 | |||||
ITM_LENGTH |
(Optional) Item length |
10 | |||||
ITM_EXPR_IND |
Type of expression (Not Used) |
1 | |||||
ITM_SOURCE |
Formula/expression |
300 | |||||
ITM_CLASS |
Class of item |
24 | |||||
ITM_FLD_SEQ |
Element sequence |
4 |
0000 |
Record size (including delimiters): |
460 | ||
Defined record size: |
640 (Variable) | ||
Key Definitions: | |||
Primary key: |
ITM_ID |
[1:1:8] | |
Alternate Key 1: |
ITM_SRC_ID + ITM_ID |
[2:1:8]+[1:1:8] | |
Alternate Key 2: |
ITM_SRC_ID + ITM_NAME |
[2:1:8]+[3:1:30:"C"] | |
Alternate Key 3: |
ITM_SRC_ID + ITM_DESC |
[2:1:8]+[4:1:64:"C"] | |
Alternate Key 4: |
ITM_SRC_ID + ITM_FLD_SEQ |
[2:1:8]+[10:1:4] | |
The file structure for pvxview.lnk is explained below.
Element Name |
Description |
Length |
Print Format | ||||||
LNK_ID |
Link identifier |
8 |
XXX00000 | ||||||
LNK_PARENT_ID |
Parent source ID (Data source this link belongs to) |
8 |
XXX00000 | ||||||
LNK_SRC_ID |
Linked data source ID (Linked data source) |
8 |
XXX00000 | ||||||
LNK_DESC |
Link description |
64 | |||||||
LNK_TYPE |
Type of relationship
|
1 | |||||||
LNK_NO_DATA_OPTION |
File/Data is mandatory
|
1 | |||||||
LNK_KNO |
Related key name/number |
64 | |||||||
LNK_EXPR_IND |
Type of expression (Not Used) |
1 | |||||||
LNK_KEYDEF |
Key expression |
300 | |||||||
LNK_PREFIX |
Record prefix for link file |
10 |
Record size (including delimiters): |
475 | ||
Defined record size: |
640 (Variable) | ||
Key Definitions: | |||
Primary key: |
LNK_ID |
[1:1:8] | |
Alternate Key 1: |
LNK_PARENT_ID+ LNK_SRC_ID |
[2:1:8]+[3:1:8] | |
Alternate Key 2: |
LNK_PARENT_ID + LNK_DESC |
[2:1:8:"U"]+[4:1:64:"C"] | |
Alternate Key 3: |
LNK_SRC_ID + LNK_PARENT_ID |
[3:1:8]+[2:1:8] | |
The file structure for pvxview.grp is explained below.
Element Name |
Description |
Length |
Print Format |
GRP_ID |
Group identifier |
8 |
XXX00000 |
GRP_DESC |
Group description |
64 |
Record size (including delimiters): |
74 | |
Defined record size: |
256 (Variable) | |
Key Definitions: | ||
Primary key: |
GRP_ID |
[1:1:8] |
Alternate Key 1: |
GRP_DESC |
[2:1:64:"UC"] |
The file structure for pvxview.gpd is explained below.
Element Name |
Description |
Length |
Print Format |
GPD_GRP_ID |
Group identifier |
8 |
XXX00000 |
GPD_SRC_ID |
Data source identifier |
8 |
XXX00000 |
Record size (including delimiters): |
18 | ||
Defined record size: |
256 (Variable) | ||
Key Definitions: | |||
Primary key: |
GPD_GRP_ID + GPD_SRC_ID |
[1:1:8]+[2:1:8] | |
Alternate Key 1: |
GPD_SRC_ID + GPD_GRP_ID |
[2:1:8]+[1:1:8] | |