Use argument variable in Display Form
Hello,
Our mapping layer id frequently change, because of adding new layers. Because of the layer ids, the workflows that run off those layerids fail once the change is made.
I would like to store the value of the layerid (ex. parcels are 9), and use this value to populate the QueryTask, SelectFeatures and Display Form attributes.
I am able to use it as an argument fine in Query Task, but when I try to subsitute it in the the ESRI Task URL in the Display Form section, it is not recognized.
Any ideas?
Cathy
-
Hi Cathy
can you just clarify if you are talking about adding layers within an map service or adding more map services to your site?
Do you use the 'Get Map Service Info' activity within your workflow? That is one way to avoid this issue. You can the set the Map Service Id as a property of the Workflow with the REST Manager for the Site.
Let me know if you want further direction on how to do this.
Ralph
0 -
Cathy,
I do exactly what Ralph is describing to get the map service info and then on the display form I use runtime modifications. You can use the assign activity to assign the task url.
form.Find(Of ComboBoxFormItem)("ComboBox1").QueryServiceUrl = variable containing url
Hope this helps.
Pablo
0
Please sign in to leave a comment.
Comments
2 comments