What is the correct format for using a collection of features with the GetFormElementItemsFromCollection activity?
I'm trying to populate an Item picker element, but the GetFormElementItemsFromCollection seems to behave differently when passing an existing featureSet or collection of features than it does for passing features directly from a query output.
In the below picture, I'm passing a collection of features that I have created from the results of 2 queries to the activity. It creates the Items, but doesn't seem to be setting the label to the attribute specified.

I've tried every combination I can think off for the activity inputs, but it always comes out the same.
-
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
Belinda
0 -
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.

Below is how I've setup the activity

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

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


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 -
Found the problem, I had grabbed a Get Form Elements from Collection activity instead of a Get Form Elements from Features activity.
0 -
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
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare