![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
CALL OPTIONLISTER(optionlistname)
• After calling OPTIONLISTER a screen appears that can be used to select specified options.
• The selected options are stored in the temporary table @SELECTED_OPTION and they must be retrieved from the table for any additional action. The table @SELECTED_OPTION has the following fields: NAME, DESC1, DESC2.
It can display a maximum of 4 columns, depending on the length of the source field and the number of description columns included. If description columns are included, only one option column can be defined. See FIELD and DESCRIPTION_COLS below for more information. It contains the field that holds the values for the option listed and the fields used to describe the option values. The table cannot be parameterized. If the primary source table is parameterized, you can create a subview table based on the required table instance. The values displayed for the field are truncated if the length of field is greater than space allocated due to the number of OPTION_COLS and DESCRIPTION_COLS. Number of DESCRIPTION_COLS Number of OPTION_COLS Length of Option field value The maximum number of selections the user can make from the option list when it appears.Valid entries are a positive integer or asterisk (*). If asterisk (*) is entered, the users are not limited in their number of selections. The number of columns used to provide additional information about the option listed.There can be 0, 1 or 2 columns. If there is 1 column, a maximum of 58 characters of information can be entered. If there are 2 columns, the first column can hold up to 16 characters of information and the second column can hold up to 40 characters of information. The field from the source table that appears for the first description column. The field from the source table that appears for the second description column.
2. Calls OPTIONLISTER(SEL_DEPARTMENT) to display a listing of department numbers for selection
3. Retrieves the selected option from the @SELECTED_OPTION table and inserts it into the screen field DEPTNO of the screen table EMPLOYEE_INFO
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |