14.20 List Template Variables
14.22.5 Special Template Variable Notes
14.22 Tips for Template Programming
See Note |
Variable |
Description |
Type |
Len |
Dec |
1 |
@@LSTnn |
List name - all elements of list |
A |
Variable |
|
1 |
@@LSUnn |
List name - all elements of list |
A |
Variable |
|
2 |
@@LSXnn/yy |
List name - first yy elements of list |
A |
Variable |
|
1 |
@@LNEnn |
Number of elements in list nn |
N |
2 |
0 |
3 |
@@LELnnxx |
Element xx of list nn |
A |
10 |
|
3 |
@@LATnnxx |
Attributes of element xx of list nn |
A(7) |
10 |
|
3 |
@@LDSnnxx |
Description of element xx of list nn |
A |
40 |
|
3 |
@@LTPnnxx |
Type of element xx of list nn (A,P,S) |
A |
40 |
|
Note 1
nn is a number from 1 to 99. This length is the maximum length. The number nn may be specified as 1 or 2 numerics, or a valid index name of 2 characters may be used (and its numeric value will be substituted in the variable name).
@@LSTnn will be expanded to include all elements (preceded by a "#" if a non-literal) with their corresponding attributes.
For example:
GROUP_BY NAME(#PANELDATA) FIELDS(@@LST01) in the template
may be substituted for in the resulting RDML code by
GROUP_BY NAME(#PANELDATA) FIELDS((#EMPNO *OUTPUT) #SURNAME
#ADDR1 #ADDR2)
@@LSUnn will be expanded to include all elements with no preceding "#" and no attributes.
Note 2
nn is a number from 1 to 99. This length is the maximum length. The number nn may be specified as 1 or 2 numerics, or a valid index name of 2 characters may be used (and its numeric value will be substituted in the variable name).
yy is a number from 1 to 99. This length is the maximum length. The number yy may be specified as 1 or 2 numerics, or a valid index name of 2 characters may be used (and its numeric value will be substituted in the variable name).
@@LSXnn/yy will be expanded to include the first yy elements (preceded by a "#" if a non-literal) of the list.
For example:
GROUP_BY NAME(#PANELDATA) FIELDS(@@LSX01/03)
would result in this RDML code in a template:
GROUP_BY NAME(#PANELDATA) FIELDS(#EMPNO #SURNAME #ADDR1)
Note 3
nn is a number from 1 to 99. This length is the maximum length. The number nn may be specified as 2 numerics, or a valid index name of 2 characters may be used (and its numeric value will be substituted in the variable name).
xx is a number from 1 to 99. This length is the maximum length. The number xx may be specified as 1 or 2 numerics, or a valid index name of 2 characters may be used (and its numeric value will be substituted in the variable name).