Progress
Programming
Handbook
Repositioning Focus
The browse and the query must remain in sync. At times, you might have to do some behind-the-scenes manipulation of the results list. To resync, you can use the REPOSITION statement. The REPOSITION statement:
To avoid display flashing when doing programmatic repositions, you can set the REFRESHABLE attribute to FALSE, do the REPOSITION, and then set REFRESHABLE to TRUE.
The SET–REPOSITIONED–ROW( ) method gives you control over the position in the viewport where the browse will display the repositioned row.
The code fragment below demonstrates these techniques:
Note that SET–REPOSITIONED–ROW( ) is normally set once for the session. You can also use the GET–REPOSITIONED–ROW( ) method to find out the current target row for repositions.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |