Page History
7.26 DEF_LIST
| Note |
|---|
| Note: Usage options |
The DEF_LIST command is used to define a list and the fields that comprise an entry in the list.
...
For instance the command:
DEF_LIST NAME(#ORDERLINE) FIELDS(#ORDLIN #PRODUCT #QUANTITY #PRICE)
defines a browse list that can be displayed at a workstation and might look like this:
| No Format |
|---|
Order Line Product Number Quantity Net Number Ordered Price 999 XXXXXXXXX 99999 9999.99 999 XXXXXXXXX 99999 9999.99 999 XXXXXXXXX 99999 9999.99 999 XXXXXXXXX 99999 9999.99 999 XXXXXXXXX 99999 9999.99 999 XXXXXXXXX 99999 9999.99 |
While the command:
...
DEF_LIST NAME(#ORDERLINE) FIELDS(#ORDLIN #PRODUCT #QUANTITY #PRICE) TYPE(*WORKING) ENTRYS(10)
defines a working list that can contain at most 10 entries. This type of list cannot be directly displayed at the workstation but can be accessed within the RDML program just like a browse list.
...
Operating Systems | RDML | RDMLX List without RDMLX field | RDMLX List with RDMLX field |
|---|---|---|---|
All (Non Web functions) | 9999 | 9999 | 9999 |
IBM i (Web functions) | 9999999 | 9999 | 9999999 |
Others (Web functions) | 9999 | 9999 | 9999999 |
Continued in 7.26.2 DEF_LIST Description
Portability Considerations | Refer to parameter: SCROLL_TXT. |
Also See
7.26.2 DEF_LIST Description continued
7.26.3 DEF_LIST Comments / Warnings
| Panel | ||
|---|---|---|
| ||
| No Format | ||
| Required
Required DEF_LIST ------- NAME ------------ name of list -----------------------> >
FIELDS ----------- field name field attributes --------> | | | | | --- 7 max ----- | | expandable group expression |
1000 max for RDMLX--- -|| 100 max for RDML ----- ------------------------------------------------------------------ Optional >-- COUNTER--------- >-- COUNTER --------- *NONE ---------------------------> numeric field name >-- TYPE
>-- TYPE -------------- *BROWSE --------------------------> *WORKING >-- ENTRYS
>-- ENTRYS ------------- 50 --------------------------------> number in range 1 –
>-- PAGE_SIZE ---------- *NONE ----------------------------> numeric field name >-- TOP_ENTRY
>-- TOP_ENTRY --------- *CURRENT -------------------------> numeric field name >-- SEL_ENTRY
>-- SEL_ENTRY ---------- *NONE ----------------------------> numeric field name >-- SCROLL_TXT --- *NONE
>-- SCROLL_TXT --------- *NONE -----------------------------| alphanumeric field
|