Consultor Eletrônico



Kbase P21792: How to reposition an updateable browse row to the top of vie
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/25/2003
Status: Unverified

GOAL:

How to reposition an updateable browse row to the top of view when the user mouse clicks or double clickes it?

FACT(s) (Environment):

Windows

FACT(s) (Environment):

Progress 8.x

FACT(s) (Environment):

Progress 9.x

FIX:

Define a VALUE-CHANGED trigger for the browse with the following code:

DO:
DEFINE VARIABLE r AS ROWID NO-UNDO.
FIND CURRENT customer NO-LOCK.
r = ROWID(Customer).
REPOSITION BROWSE-1 TO ROWID r.
BROWSE-1:SELECT-FOCUSED-ROW().
END.