Skip to main content
Nintex Community Menu Bar

Idea: Model sorting action

  • July 8, 2024
  • 6 replies
  • 20 views

Forum|alt.badge.img+17

It would be convenient to be able to sort a model by a specific field using the actions framework.

This topic has been closed for replies.

6 replies

Forum|alt.badge.img+18

You can run a one-line snippet, like so:

skuid.$M('MyModel').orderByClause = 'Date__c DESC';


Forum|alt.badge.img+17

That’ll work! Thanks


Forum|alt.badge.img+11

Matt, thanks for sharing that awesome snippet! 

Raymond, I will mark this as an idea for our developers to consider for future releases.

Thanks!
Karen


Forum|alt.badge.img+9

What am I missing to make this work?



Forum|alt.badge.img+17

I don’t see anything wrong with the snippet. Make sure all your names are correct. I can’t remember if you have to requery after the snippet. Give that a try.


Forum|alt.badge.img+9

Doh, I was missing the follow-up query action. Thanks!