Results List and Results Table replacement token options
When running a workflow from the Results List and Results Table Set Actions context menu I need to pass in the LayerName to the workflow in the Command Parameters. I am passing in this JSON now.
??????{ "workflowId":"WorkflowID","LayerName":"{LayerName}" }
This is not working and instead showing me the string {LayerName}, not the actual Layer Name. Is there a method to pass in the selected layer to the workflow in this context menu?
0
-
I don't think that the layer tokens are supported in the Results List. I could be mistaken, you might try this without the quotes around your token and find success ( aquick test never hurt anyone), but there are a number of tokens not accessible through the essentials context menus and I believe these to be among them. 0 -
Hi folks,
I think the replacement token to use here is the special {{context}} one that will pass a representation of the feature being clicked on in the menu. However, this object may not be serializable (due to circular references) so this still might not work.
If it does, or if you're using a Workflow 5 client workflow that doesn't have to serialize the object, then you can get the layer property of the feature to locate the layer name at runtime.
https://docs.geocortex.com/essentials/gvh/latest/api-help/classes/_mapping_infrastructure_amd_d_._geocortex_infrastructure_feature_.feature.html#layer
Regards,
-Malcolm0
Please sign in to leave a comment.
Comments
2 comments