shuzheng
18th October 2005, 06:12
Hi, everybody:
Could you tell me how to order by field in a form, and the field is not a index field.
Thanks a lot!
mr_suleyman
18th October 2005, 08:02
I think that you talk about display forms. In your case , you can use query.extension() command. Search threads about query.extension and query commands.
Good luck !
baanprog
18th October 2005, 09:00
Hi,
Could you please clarify whether its a form field or a table field?
Regards
shuzheng
18th October 2005, 10:28
Hi, I want order by a table field, but this field is not in any index.
beginer
19th October 2005, 11:23
Hi,
If u have the source code then using the query.extension can restrict the records using like.
But I doubt if u can do order by.
First part I have tried & works fine.
Youp2001
19th October 2005, 13:55
The easiest way is adding an index starting with the field you want to sort on and add other fields of primary key to this index to make it unique. Than you can activate this index for the session where you want to have the data sorted on this field.
One other option is using the standard filter functionality of Baan sessions. On the second form the ordering sequence can be defined.
As far as I know there is no way to automatically call this functionality from within a script.
Youp
shuzheng
25th October 2005, 13:32
thanks ,everybody!