How do I get the list of attributes from a query result?
I'd like to get the parcel numbers from a user defined geometry. Using Get Feature Attribute Values seems to only return the first value (parcel number). I'd like to return them in a confirmation box as a comma separated list. How can I get them all?
-
Hi Ethan,
Are you entering '=$query1.features' as the Features input to the Get Feature Attribute Values activity, and using the =$attributeValues1.values output?
Thanks, Stefan
1 -
I think Stefan is onto your problem, but would add that I'd run the Array.Map() and .Join() methods on your .features property to do this efficiently.
0 -
I was using .value instead of .values and .values already spits out in comma separated list! Thank you!
0 -
Follow up question: if my result set (more than one result) has a MailAddress field and a MailCity field, how do I get both fields in a single Get_Feature_Attribute_Values activity so that the Address stays with the associated city? Would I need the For Each function? If so, i assume i need to put the result of the For Each into a variable, but I don't see any variable items in the toolbox.
I'm expecting some return variable that is a list like ["123 Main St, Seattle", "456 Broadway, Dallas"] that i can display to the user in a form.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer