launch workflow from maptip - capture feature's ID
Is there a way to pass the maptip's feature's objectID to a workflow? I'm disabling the "edit feature" link that is on the maptip window and putting in a link to run a workflow to edit the feature via a form but not sure how to get the OBJECTID of the feature from the maptip to pass on. GHV 2.6.1
Linda
0
-
Hi Linda, I believe you'll want something like this in your Feature Long Description...
a href="command:RunWorkflowWithArguments?workflowId={WorkflowID}&{inarg}={OBJECTID}">{Text to Appear in Pop-up}</a>
I"m super new to workflows but asked a very similiar question not too long ago, hope this helps!0 -
Hi Lisa
Thanks for advice. Since my current workflow is not taking in an argument, I modified the href to just run the existing workflow as it but it doesn't seem to run. Any suggestions?
<a href="command:RunWorkflowByID?workflowId=Edit_Gathering_Attributes">Edit Gathering Data</a>0 -
Try changing the D to a lowercase d in RunWorkflowByID... 0 -
Not sure why but it doesn't work still. However, I added an argument into my workflow and changed the command back to RunWorkflowWithArguments and that worked. Thanks for your help! 0 -
Linda,
It looks like the command RunWorkflowById only takes 1 parameter, so I think it is trying to run a workflow named 'workflowId=Edit_Gathering_Attributes' which doesn't exist.
If you cange your link to the following it should work, at least it does in my sites: <a href="command:RunWorkflowById?Edit_Gathering_Attributes">Edit Gathering Data</a>0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer