Hoppa till huvudinnehållet

What is the correct format for using a collection of features with the GetFormElementItemsFromCollection activity?

Kommentarer

4 kommentarer

  • Belinda Kerr

    Hi Chris,

    I was just ?doing that yesterday! I can populate the item picker but am stuck at how to get the multiple selections. To populate the item picker, I first ran a query and the output is called urlTreesREST.

     

    The Features input is: =$urlTreesREST.features

    The label is: =`ID: {ID} - {TreeSpecies}`

    Where ID and TreeSpecies are some of the attributes fields coming back like your BUSID etc

    My value Field Name is: ID

     

    The Set form elements Items has the element as the name of the item picker and the items are:

    =$formElementItems2.items

     

    BelindaItemPickerExample

     

    0
  • Permanently deleted user

    Thanks Belinda, but the issue I'm having is that the Activity isn't picking up the attribute of the features I'm setting as the label.

     

    outPut

     

     

    Below is how I've setup the activity

     

    subWorkflow

    Here is how the default one is setup using the ArcGIS Query template

     

    DefaultSubWorkflow

    This the input and output from chrome dev console logs for the Activity

    defaultIn

    defaultOut

     

    Notice how the item is structured differently in the output of the activity with the label correctly set, compared to the output in the picture in my first post.

     

    It seems as though the activity behaves differently for a collection of features created using the Create Feature Set activity than it does for the collection of features directly from a query.

    0
  • Permanently deleted user

    Found the problem, I had grabbed a Get Form Elements from Collection activity instead of a Get Form Elements from Features activity.

    0
  • Dean Howell

    I am trying to do a similar thing with no success. I have a workflow where the user can select features based on a boundary of another layer. The intersected layers are added to a collection and displayed in the search results. I now want to be able to get the list of layers that are in the search results as part of a second workflow so the user can select which layers to export. Is this possible?

    0

Du måste logga in om du vill lämna en kommentar.