Workflow 4 - Passing dynamic arguments to new viewer
I have a workflow which opens a viewer using openwebpage.
The new viewer has a workflow that runs on startup.
Is it possible to pass a dynamic argument into the url.
For example - can the current extent envelope be set in the workflow and passed into the url of the openwebpage so the second viewer opens in the same view extent as the first? Instead of setting an exact extent I was hoping we could use something like {context}??
-
You could use the extent URL parameter to open a viewer with a specific extent.
0 -
Thank you Nico.
The documentation only shows examples with a specific extent to set, but I am looking to see if I can make it dynamic. Passing whatever prior extent the user had to the new viewer.
Do you know a way to set the extent on the fly and pass that to the url parameter somehow??
Thank you!!
0 -
You could use the Get Map Extent activity in a workflow to get the extent envelope.
You could then create the extent parameter dynamically by creating a string in the way like below."?extent=" & envelope1.xmin.tostring & "," & envelope1.ymin.tostring & "," & envelope1.xmax.tostring & "," & envelope1.ymax.tostring
0 -
Thanks Nico!! I assume this string would just be used with the 'OpenWebPagewithURL'?
Do you know if we can pass the {context} value for point into a new viewer to be utilized by a separate workflow? I know you can set external values in the same viewer, but I don't know if it would be possible to pass values to a new viewer/workflow somehow?
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
4 commentaires