I have an address book browse (on a dbf &/or a SQL table using SQLRDD) and when I click on the header, the browse changes order.
The way I currently do this is:
Code: Select all | Expand
oCol:blClickHeader := {|| ( CUSTSITE->(DBSETORDER("CUSTSITE")), CUSTSITE->(cmxsetscope(0,{|| STR(SITE_DET->SITE_ID,2,0)})), CUSTSITE->(cmxsetscope(1,{|| STR(SITE_DET->SITE_ID,2,0)})),oBrw:refresh())}
or
oCol:blClickHeader := {|| (CUSTOMER->(DBSETORDER("CUSTOMER")), oBrw:Refresh())}
Two questions:
1. Is this the correct way to do this or is there an easier way to do this?
2. How do I update the header with a symbol to say which column is sorted (must clear previous symbol of previous sorted column)
Thanks in advance
Pete