Show Results from Query Relationship activity
I try to figure out how to Show Results from the Query Relationship activity. I log the results from the Query Relationship and see I get a list of Objects. I user $queryrelationship.results but that is not working. Any help is appreciated.
I get the error: esri.FeatureSet is not a constructor
Erik
-
Hi Erik,
This appears to be an issue which I will pass along to our development team.
Thanks, Stefan
0 -
Has this been resolved? I am trying to do the same.
0 -
Hello James,
I retested this functionality and the issue still appears. I've raised the priority on this issue and added you as a stakeholder.
Thanks, Stefan
0 -
Has this issue been resolved? I am trying to do the same.
0 -
Hi Eric,
This issue is still outstanding but I've added your name to the list of stakeholders and raised this issue with the development team lead.
Thanks, Stefan
0 -
Eric,
The way I got around this issue, in case your wondering, was to build the relationship query myself and use the query activity as usual. Its a few extra steps, but at least you can achieve the end goal.
Good luck!
James
0 -
Hi James,
Thanks for your help. That's a useful workaround. I've also tried a bit and found another way to do it:
After the queryrelationship activity with $objectIds1.id as input, I've put a Get feature attribute values activity, using this expression:
=$queryRelationship1.results[$objectIds1.id]
This retreives the actual featureset from the queries' results object.
The attribute value or values obtained, can be used in the feature template, in my case like this:
={title: "Project: {title}", description: "<br/> Project number: {iati_identifier} <br/> Sector: "+$attributeValues1.values
Would be great if this info could help others.
Thanks again for your suggestion. I'll keep it in mind for other cases.
0 -
Hi Eric,
Thanks for providing an answer. That is the correct syntax for interacting with results. The error regarding toJson not being defined is happening because Lookup<FeatureSet> does not have that method, but FeatureSet does.
Thanks, Stefan
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
8 kommentarer