Layer Action Context Menu for uploaded data
Our viewer is in WKID 102100 and I've built a workflow (and a Workflow Code Activity) that adds the coordinates in WKID 4326, in the selected point features (the workflow adds 2 new fields in the FeatureSet with the coordinate values). I use this workflow from a toolbar button and everything is working great. However, I was asked by a few of our users if I could add this button in the Layer Action Menu, but for uploaded data, instead of selected (point) features. So, my question is this, how do I set the workflow to read the selected uploaded data (layer), when using the Layer Action Context Menu?
0
-
Hi David,
I took a good long look around and did not find any way to run a workflow from the Layer Actions Context Menu that would be able to collect features/graphics/information from an uploaded layer.
The biggest underlying problem is that the Layer Actions menu is going to use a Geocortex Layer as its context - an object that contains circular references (a layer has a Site, which has layers, which have Sites, etc). Objects with circular references can't be serialized automatically by the viewer, so we can't send them to a workflow.
You can implement your own custom viewer module that fetches the data you would like from the Layer, sanitizes it, and then runs your workflow; alternatively, you could rewrite your workflow in Workflow 5 which does not need to serialize (since all activities run in the viewer scope)
Regards,
-Malcolm0
Please sign in to leave a comment.
Comments
1 comment