I am using the 'ShowFeatureTemplatePicker' command. I would like to open it with a specific layer, but it isn't working out.
So I first use the Get Layer command and then the Run command, using "=$layer.layer" as command parameter. When running the workflow in Geocortex Essentials (Html5 viewer), the console window shows that the command is taking my layer. But the feature template picker isn't opening. When using directly the layerID or layerName, it isn't working neither. When running the command without a command parameter, it is working fine. Am I using an incorrect syntaxis or this is a bug?
Kind regards
-
Hi Lore,
It sounds as though you are correctly using the workflow activities. Are there any errors appearing in the viewer logs? Also, are you able to provide a workflow or public viewer so that I can take a look?
Thanks, Stefan
0 -
Hi,
There are no errors appearing in the logs.I provide here some of the layers and just a small part of the entire workflow so you can see the problem. As the real data has much more layers, it would be nice to open the template picker with the correct layer.
Workflow: https://belgium.maps.arcgis.com/home/item.html?id=56e2dd4f0ee7492e883382a48176d77e
Kind regards
0 -
Hi Lore,
From our workflow docs: "To run the workflow in the Geocortex Viewer for HTML5, set Layer Id to the map service ID if the service only has one layer. If the service has more than one layer, also set Sublayer Id to the layer ID. Get the map service ID and layer ID from Geocortex Essentials Manager or from the Geocortex Essentials Sites Directory."
Could you try defining both the layer and sublayer ID values based on your site?
Thanks, Stefan
0 -
I could figure out the input parameter. It is like =$appInfo1.info.app.layerList.mapInfo.serviceLayers[29].layers[0].gcxLayer
The correct serviceLayerId and layerId can be searched in the logs for =$appInfo1.info.app.layerList.mapInfo.serviceLayers and are related to the order your map services are in the 'map services' tab.
@Stefan Schweigert? Is there a reason the servicelayer IDs are different from the IDs used in 'Get Layer' for instance?
0 -
Hi Lore,
The difference is likely in that GVH is using a Geocortex layer from the endpoint, but Get Layer is interacting with the Esri layers directly during runtime.
Thanks, Stefan
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer