Zum Hauptinhalt gehen

How to do sorting on the "set form elements". Items code is "=$formElementItems1.items". I want items to be sorted out and show only unique value. New to Workflow 5

Kommentare

5 Kommentare

  • Stefan Schweigert

    Hi Pramod,

     

    If you are getting the item's information from a feature set, then I'd suggest that you first use Sort Feature Set, then when you use the Get Form Element Items, they will already be sorted. I'm not aware of an easy way to only show unique values apart from the initial Query Layer activity, but you could iterate through the items and copy the unique values into a new collection.

     

    Thanks, Stefan

    0
  • Berend Veldkamp

    See this question for instructions on how to get a unique list from an array of features using the map() and filter() methods.

    0
  • Darryl Klassen

    I am getting my items using the Get Form Element Items. - they are sorted but I would like to sort them in the opposite order - i.e. right now i have years 1999, 2004, 2008, 2012, 2016 show up in my radio buttons - but I want them in the opposite order. Can we do that? Sort is list?

    0
  • Stefan Schweigert

    Hi Darryl,

     

    Using the Sort Feature Set activity, you can specific in the Ascending property the direction that you'd like to sort by.

     

    Thanks,

    Stefan

    0
  • Darryl Klassen

    perfect, thanks Stefan!

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.