Provide Examples in VertiGIS Studio Web Commands available for Run Command Workflow Activity
PlanifiéeOn this page: https://developers.vertigisstudio.com/docs/web/api-commands-operations-events/
There aren't any examples of what each Argument value looks like. This makes it really difficult to determine what an appropriate value for the command should be.
For example, if I'm using viewer.load-layout, it mentions it accepts String, which could "be a layout URL or layout XML, or a Layout object". But what do those values look like? I'm not sure. It takes a lot of digging around to find forum responses providing examples.
If better examples of potential values were included on this page, it would make using commands much easier.
-
I've been running into a similar issue and would love to get some feedback from VertiGIS as well! Thanks!
3 -
I've started down this track also, and found it so difficult to find help on this. Stringing these commands and operations together in a workflow, and or client custom button is so powerful, but yeah, just so little help on this. I'm floundering - even more than normal :)
Some dedicated help and or examples on this would be great.
0 -
Completely agree Gareth.
Just a simple example would go a long way. This is true for the entire commands and operations reference.
0 -
I found the solution by the way.
The inputs to the viewer.load-layout are
"item://layout/" + <acutal layout id>To find the id, you can press ctrl + shift + e while in your vertigis studio web, and search (ctrl+f) for “layout” and find a list containing your layouts, which you will recognise by their titles. Above the title you will find the ID, which you can append to “item://layout/”
Hope this helps
0 -
Hi everyone. The VertiGIS Studio Web team is working on this. I don't have an exact timeline but it's in progress.
3 -
Hi everyone,
Is there another way to toggle uit elements on/off with a workflow?
Greets, Vincent
0 -
I'm looking for an working example of the map.apply-layer-preset command, when running this from a workflow with the Run Command activity.
0 -
Nico - Below is how I have it working. I have it working in 2 different workflows right now, 1 that has a form with a drop-down list with a list of layer presets, and 1 that sets the layer preset based on the Launch Link URL used, I'm happy to share either if that would be helpful.
But below is the syntax for using that activity. In the Command Parameter, you'll reference the ModelURI for the specific Layer Preset you're wanting to reference (from the gear icon for that Preset component in VSWeb).Command Name: map.apply-layer-preset
Command Parameter: ={"layerPreset":'ModelURI'}For example: Command Parameter: ={"layerPreset":'item://layer-preset/bc15077b-c9b5-48b3-bc85-a4cdbd822495'}
0 -
Thanks Jessica Dell
I got it also working today with the help of a colleague..
The issue was a syntax error, I forgot the = sign at the start of the Command Parameter value. Classical error…
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
9 commentaires