A listview-B event is returned when the user selects a different item in the listview.
| In panel-3 area | Data |
| listview-SEL1-KEY | The value of the invisible key column for the selected record. |
| In panel-3 area | Data |
| listview-MAX | Maximum number records that may be passed in the listview buffer, useful for PERFORMed loops when loading records to your listview buffer. |
| listview-SCROLL-TO-KEY | Set to HIGH-VALUES. |
| listview-TOP-OF-LIST-KEY | The value of the invisible key column for the first (top) record that is visible in the listview control. |
| All other fields | Set to LOW-VALUES. |
| In panel-4 area | Data |
| listview | Number of items in the list that are selected. |
Use the value in listview-SEL1-KEY to read the record and do whatever is appropriate for your application.
|
PERFORM WITH TEST AFTER
CALL 'GS' USING panel-1
END-PERFORM. |
You might use this to automatically update fields that display data from a selected record when the user selects a different record.
For example, you could display a picture of a catalog item in an image control on the panel, which is updated when the user selects a different item in the listview.
| © 2000-2006 Norcom, all rights reserved |