A workflow to auto refresh layers
I've heard talk in the forums of a way to get layers to autorefresh in a workflow.
Is it possible to get some guidance or where to start looking at how to do something like this?
0
-
Is it just a While activity with Condition = True and RefreshMap activity with your map service Id (btw is the map service id the number??)??
How do you get such a workflow to start up automatically when your map starts?
0 -
Hi Peter,
That workflow sounds correct. Yes, the map service id is the number.
To have a workflow run on startup you'll need to open your Viewer.Defaults.xml and add a RunAtStartup element to the Workflow module.
<Workflow>
<Configuration>
...
<RunAtStartup>
<Workflow Id="YourWorkflowId" />
</RunAtStartup>
...
</Configuration>
</Workflow>--Ryan
0 -
Would you please provide the sample workflow for the autorefresh map? Thanks! 0
Please sign in to leave a comment.
Comments
3 comments