
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2019 07:51 AM
Hi,
My question is simple :
I have a sn-record-picker, and i want to order the field following a specific order. In my case :
<sn-record-picker default-query="name_long!=NULL"
field="c.cityPicker.conf"
table="'city'"
value-field="'sys_id'"
display-field="'name_full'"
search-fields="'name_long,zip,canton_code'"
page-size="20"
ng-change="c.changeRecord()">
</sn-record-picker>
I know actually, the order is base by the first fields in my "search-fields" parameter.
What I want, is order by "canton_code", with a specific canton, not like "order by DESC", more like = "I want to show all my canton with all canton equals to HR first".
Somebody can help me?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2019 10:27 AM
Add it to your default query, so instead of
name_long!=NULL
you'd have
<sn-record-picker default-query="name_long!=NULL^ORDERBYDESCfield"
field="c.cityPicker.conf"
table="'city'"
value-field="'sys_id'"
display-field="'name_full'"
search-fields="'name_long,zip,canton_code'"
page-size="20"
ng-change="c.changeRecord()">
</sn-record-picker>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2019 10:27 AM
Add it to your default query, so instead of
name_long!=NULL
you'd have
<sn-record-picker default-query="name_long!=NULL^ORDERBYDESCfield"
field="c.cityPicker.conf"
table="'city'"
value-field="'sys_id'"
display-field="'name_full'"
search-fields="'name_long,zip,canton_code'"
page-size="20"
ng-change="c.changeRecord()">
</sn-record-picker>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2019 11:26 PM
Thanks 🙂 that's work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2019 02:56 PM