Consultor Eletrônico



Kbase P38772: How to reposition a SmartDataBrowser to a specific row when pressing a numeric key ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

How to reposition a SmartDataBrowser to a specific row when pressing a numeric key ?

FIX:

You should create in that SmartDataBrowser a trigger on Any-Printable which contain something like:

IF INT(keyfunction(LASTKEY)) > 0 and
INT(keyfunction(LASTKEY)) < 10 THEN DO:

SELF:SELECT-ROW(INT(keyfunction(LASTKEY))).
APPLY "value-changed" TO SELF. /* this is to reposition the query */
END.