I am running ArcGIS Server and Portal. I used Web App Builder to create a Web Map and a Web Map App. I now want to filter one of the Feature Classes. Where do I do this, in the MXD with a definition query or in the Web Map?
Then I would do it in an MXD.
Example. One of my projects has techs in the field and they need to be able to update 3 different features.
I created an MXD for them alone and a feature data service that allows editing.
Of the 3 features there is a total of 12 fields they can update.
Then for analysis purposes by their supervisor I created a new MXD adding those three features in with a definition query for each attribute the supervisor wants to track. So a new MXD with 12 features.
I published them as a new feature service that is query only. I then used them in a new web map > Web Map App that I could then display as unique features and use the various analysis tools to get feature counts relating directly the individual attributes. I also then used it to create a dashboard of various gauges and graphs to track progress which we showed to the VP of our division yesterday and she was impressed. The image below is only part of the dashboard but it was made from the second MXD that had definition queries for each attribute. You don't have to do it this way but I found it easier
The project only rolled out last Monday but this is live data and updates as soon as the techs enter data in Collector
You would create the map in your MXD and load it as a feature service to Server/Portal
Then from your browser you log in and create a Web Map into which you load your Feature Service.
Save the Web Map. Go back to your content and select your new Web Map.
From the new page click on Create Web App > Using Web AppBuilder
In the web app builder you click on the Widget Tab in the upper left.
Here you can add widgets. Including one for Filtering
If you do it in the MXD as a definition query then you will not be able to see any of the other features.
Thanks for the quick response. However, I did not explain the issue completely. I don't need the user to filter the data on the fly. I want the data to be filtered in advance of displaying the data.
Now that I have the Web App and data running should I filter in the mxd using a definition query - then do I have to republish the service or will it just show up in the app?
Or do I filter the data within the Web Map or the Web Map App?
Is that more what your looking for?
yes, thanks very much. Is your app available for viewing or is it in-house only?
Sorry it is only available via network authentication
Retrieving data ...