bobbylsuedu
Novice

Is it possible to change the sort order for a drop down list

The default sort order is the displayed value. I need to display a list loaded from a SQL table by a smart object in a fixed order. A simple example woult be if I were populating a list using the days of the week where I would like the listed in order from Sunday to Saturday. By default, the DDL would start with Friday rather than Sunday.


I have another smart object property (not displayed) that I would rather use to sort the list.


Thanks.

0 Kudos
Reply
3 Replies
Renier29
Novice

Re: Is it possible to change the sort order for a drop down list


Whiles designing the View you basically bind the dropdown to
the SmartObject, at that time you have no option to set the ordering of the
items, however the Init event for that view will contain a rule (auto generated
because you bound the control to the SmartObject) that will execute the SmartObject,
by editing the rule you can specify the ordering and that will determine the
order of the items in the dropdown.


Let me know if you have more question regarding
this.

Reply
bobbylsuedu
Novice

Re: Is it possible to change the sort order for a drop down list

Thanks. That was exactly what I was looking for.

0 Kudos
Reply
ariberdy
Novice

Re: Is it possible to change the sort order for a drop down list

Brilliant. Thank you.
0 Kudos
Reply