Hi,
Having issues to configure the Sorting on Query Results while configuring the app. Using 1.2 Version of the WebApp Builder. Trying to sort the results by order but the pencil is greyed out. Thanks and any help in this regards will be highly appreciated.
Query widget—Web AppBuilder for ArcGIS | ArcGIS
Ramakrishna Billakanti
Ramakrishna,
The pencil will be grayed out if your map service does not support supportsOrderBy you can check if your map service supports this by going to the REST endpoint page for the layer and looking for this:
Advanced Query Capabilities:
Supports Statistics: true
Supports OrderBy: true
Supports Distinct: true
Supports Pagination: true
Supports TrueCurve: true
I don't see that options how can I make it enabled ? Thanks in advance Robert
Ramakrishna,
The availability of this advanced features depends on the version of ArcGIS Server you are running. Time to upgrade. Also based on the URL in your image you are looking at the mapservice end point. Try looking at the layers endpoint.
I do see order by is supported by our server, Do you have any other suggestions for me to check
You are right earlier I was looking at the map service.
Ramakrishna,
Looking at the Query widgets source code I can see that the server has to support OrderBy and Pagination for the pencil to be enabled.
Here is a thread about when pagination is enabled: How do you enable the "Supports Pagination" on a layer at 10.3?
Ramakrishna,
ArcGIS Server supports `order by fields` from 10.2, but the `order fields` must be an element of `outFields` array; 10.3 conquered this shortcoming but must be enable pagination.
So the order feature in Query and AttributeTable only support 10.3 services which enabled `OrderBy` and `Pagination`.