Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.1 DEF_LIST Parameters

7.26.2 DEF_LIST Description continued

7.26.3 DEF_LIST Comments / Warnings

7.26.4 DEF_LIST Examples


Panel
bgColor#ffffcc
No Format
                                                        Required 

                                                                                                  Required 

  DEF_LIST

-------

NAME

------------

name

of

list

-----------------------> 

             >


                     >--

FIELDS

-----------

field

name  field

attributes

-------->

                                |           |               | |                                 |            --- 7 max -----  |                                 | expandable group expression |                                 


                                                        |                  |                      |      |
                                                        |                    --- 7 max ---       |
                                                        | expandable group expression |
                                                        |------

1000

max

for

RDMLX---

-|                                 

|
                                                         ------

100

max

for

RDML

-----

 ------------------------------------------------------------------

                                                         Optional              >-- COUNTER

---------
                                                                                                  Optional

                   >-- COUNTER ---------

*NONE

--------------------------->

                                numeric field name              >-- TYPE


                                                         numeric field name

                   >-- TYPE --------------

*BROWSE

-------------------------->

                                *WORKING              >-- ENTRYS


                                                        *WORKING

                  >-- ENTRYS -------------

50

-------------------------------->

                                number in range 1 –


                                                         number in range 1 – 2,147,483,647  

             >

                 >--

PAGE_SIZE

----------

*NONE

---------------------------->

                                numeric field name              >-- TOP_ENTRY


                                                         numeric field name

                >-- TOP_ENTRY ---------

*CURRENT

------------------------->

                                numeric field name               >-- SEL_ENTRY


                                                         numeric field name 

                >-- SEL_ENTRY ----------

*NONE

---------------------------->

                                numeric field name                >-- SCROLL_TXT --- *NONE


                                                         numeric field name  

                >-- SCROLL_TXT --------- *NONE -----------------------------|

                                alphanumeric field


                                                         alphanumeric field name