Sort configuration via script?

Viewing 4 reply threads
  • Author
    Posts
  • September 10, 2022 at 1:21 PM #47959

    Stephen Meehan
    Participant

    Hi, is it possible to configure sort preferences through a script, as opposed to using “Sort & Group Settings” in the forms inspector panel?

    Seems like field.sortOrder simply specifies field order in the form inspector, but maybe I’m misunderstanding its use?

    September 11, 2022 at 11:06 PM #47963

    Brendan
    Keymaster

    Hi Stephen,

    There’s no function in the JavaScript API to change a form’s sort and group settings.

    Can you give me a use case for needing this feature?

    Thanks,

    Brendan

    September 12, 2022 at 6:02 PM #47965

    Stephen Meehan
    Participant

    Hi Brendan,

    I don’t have a particularly interesting use case, just the need to sort on different fields at various times.

    Sometimes I want to sort a list of projects by date, other times by priority, other times hierarchically showing parent child relationships, etc. Would just be nice to automate, but it’s no big deal.

    Thanks for the response!

    September 12, 2022 at 8:29 PM #47966

    Brendan
    Keymaster

    You can create empty Saved Searches which have just the sort settings on it so you can have different sorted configurations of records.

    September 13, 2022 at 3:59 PM #47968

    Stephen Meehan
    Participant

    Oh, perfect!

    That’s all I need.

    I somehow missed that that was possible with saved searches.

    Many thanks!

Viewing 4 reply threads

You must be logged in to reply to this topic.