on 04-15-2008 1:48 PM
Hi,
I need help on system action "Sort rows". What format the field "sort formula" has?
Edited by: Eugene Balakhonov on Apr 15, 2008 3:17 PM
Hi,
the formula is of type string, and it represents the sorting order.
the expression is a string expression that is evaluated against each object in turn and returns the string value the defines the position of the object in the sorting order.
after passing on all the dataset's objects the infoset cursor points on the first object in the newly sorted infoset.
so far the technical stuff..
for example:
for objects:
FIRST_NAME | LAST_NAME
1 Kenny Smith
2 John Smith
3 George Bush
SORT(@LAST_NAME & "," & @FIRST_NAME)
this will sort all the object in lexicographic order, i.e. Smith, John before Smith, Kenny and After Bush, George.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.