Get layer Id dynamically
How can I get layer Id and sublayer Id dynamically?
I would like to rely on map service and layer name instead of hardcoding the Id in case order of layer changes …
I’m running workflow in GHV.
I know that I can get dynamic values with workflow4 and pass it as input of the workflow5 but I’m trying to get it using workflow5.
Thank you
-
Hello Francesca,
This feature will be coming in the next WF5 release next month with the introduction of the 'Get Essentials Site' activity, which will provide access to all of the backing site information at run-time.
Thanks, Stefan
0 -
Brilliant!
Thank you
0 -
Stefan, with 'Get Essentials Site' activity is it going to be possible to setGDBVersion for Dynamic map service layers (I mean will that expose GDBVersion property that can then be set using setProperty activity)?
Thank you
0 -
Francesca, the Get Essentials Site activity only returns information about the Essentials site, but would be useful in being able to check that the property was set correctly on the dynamic map service.
You should already be able to interact with the gdbVersion property by using the Set Layer Property activity.
Thanks, Stefan
0 -
Thank you Stefan,
I tried a few possible combination in setting version using Layer Property Activity without luck.
I also tried to set another simpler property (opacity) and it worked but I find inconsistency with workflow and viewer behaviour and details in the console. I think I’m on a wrong track. Would you be able to provide an example of how to set GDB version for a map service?
Much appreciated.
Thank you
0 -
Hello Francesca,
I checked with one of our developers around this issue and it looks like the gdbVersion property is a read-only. Currently, it is not possible with the current activity implementations to set this value but an improvement would allow this, so please create an Idea for this functionality.
Thanks, Stefan
0 -
Thank you. Idea added under title "Possibility to set GDBVersion attribute"
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
7 Kommentare