Kbase P26607: How to programmatically select a row in a browse
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  6/6/2003 |
|
Status: Unverified
GOAL:
how to programmatically highlight a specified row in a browse?
FIX:
In order to achieve this you should work with the methods of the query associated to the browse. In particular the two QUERY object methods:
- REPOSITION-TO-ROW()
Moves a query object's result list pointer to the row corresponding to the sequence number you specify.
- REPOSITION-TO-ROWID()
Moves a query object's result list pointer to the row corresponding to the ROWID or ROWIDs you specify.
Note that when you drop a BROWSE in AppBuilder, it automatically creates a QUERY with the same name of the browse. So in order to access the query attribute you have to write something like:
QUERY BROWSE-1:REPOSITION-TO-ROW(RowNum).