AnsweredAssumed Answered

How to build URL query parameters in Web AppBuilder  for layer inside a group

Question asked by jsn on Jan 7, 2020
Latest reply on Jan 14, 2020 by jsn

Hello everyone,

 

I want to query a layer that is inside a group in a Web Map. I tried to follow the samples to query the first layer in the group, in ths case id="0".   This s the link I am following to build the URL query: -https://doc.arcgis.com/en/web-appbuilder/manage-apps/app-url-parameters.htm-  but because the layer is in a group I am not able to make the query work.

 

Samples I have done:

 https://myarcgisonline.com/Projects/index.html?webmap=.......&query=MyGroup_4686, PROJECTID='22209'

 or

 

 https://myarcgisonline.com/Projects/index.html?webmap=.......&query=MyWasdDeveloperAgreements_4686_0https://myarcgisonline.com/Projects/index.html?webmap=.......&query=0https://myarcgisonline.com/Projects/index.html?webmap=.......&query=0https://myarcgisonline.com/Projects/index.html?webmap=.......&query=0, PROJECTID='22209'

 

 

I do not know how to correctly build an url string with query parameters when the layer is in a group.

In this case the layer has  "id": 0,  

 

This is how the config,json file has the layers listed.

 

Config file.

{
            "id": "MyGroup_4686",     ********************************************  THIS IS THE GROUP
            "layerType": "ArcGISMapServiceLayer",
            "url": "https://................../MapServe",
            "visibility": true,
            "visibleLayers": [
                0,
                1
            ],
            "opacity": 1,
            "title": "Projects",
            "layers": [
                {
                    "id": 0,                   ********************************************* THIS IS THE LAYER I WANT TO SEARCH

                ......
                },
                {
                    "id": 1,
   "popupInfo": {
                        "title": "Future  Projects",
                   

Outcomes