Any of you code, happy people out there have an easy way to take a column name o column label (no data) in a browse, when a press "start-search" in it.
DEF VAR lhColumn AS HANDLE NO-UNDO.
ON "START-SEARCH":U OF BROWSE {&BROWSE-NAME} DO:
lhColumn = BROWSE {&BROWSE-NAME}:CURRENT-COLUMN.
MESSAGE lhColumn:NAME lhColumn:LABEL
VIEW-AS ALERT-BOX.
END.
If you have Progress v9.x you can use the column-name and a dynamic query to sort the browse on the selected column.
In earlier version(s) of Progress you will have to create some sort of CASE statement (using the column name) that opens the browse's query with the required sorting.
jongpau, thanks a lot for your help, for this moment i dont have more problems with it, but maybe i need something similar than you needed, to put some buttons or icons to indicate descending or ascending sort.
In this moment i will try to know how to search a record over the same column typing a string, once you selected the column.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.