sc_select_order("Field")
|
|
It is possible, during the grid execution time, to modify the grid ORDER BY clause. At least one ORDER BY is required in the original grid SQL command to allow the substitution during the grid execution time.
Ex. 1: Select Clause: SELECT code, name, price FROM table ORDER BY code To change the order from code to name, we will have:
sc_select_order("code") = "name";
Ex. 2: Select Clause: SELECT code, name, price, date FROM table ORDER BY code, name, price To change the order from name to date, we will have:
sc_select_order("name") = "date";
Note: This command must be in the context of "process before the select".
|
Macro Scope
|
calendar application
|
chart application
|
Grid application
|
Search application
|
Form application
|
Control Form
|
Menu application
|
Tree menu
|
ReportPDF application
|
| allMacros
|
allMacros onInit
|
allMacros onHeader onInit
|
allMacros
|
allMacros
|
allMacros
|
allMacros
|
allMacros
|
allMacros
|
|