Skip to main content

I am using the 'ShowFeatureTemplatePicker' command. I would like to open it with a specific layer, but it isn't working out.

Comments

5 comments

  • Stefan Schweigert

    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
  • Lore Schoeters

    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

    Viewer: https://gcbeta.siggis.be/Html5ViewerSIGGIS/Index.html?configBase=https://gcbeta.siggis.intra/Geocortex/Essentials/REST/sites/Create_new_layer/viewers/GVH/virtualdirectory/Resources/Config/Default

     

    Kind regards

    0
  • Stefan Schweigert

    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
  • Lore Schoeters

    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
  • Stefan Schweigert

    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

Please sign in to leave a comment.