| Numéro d’ID de bogue |
BUG-000118425 |
| Envoi | November 28, 2018 |
| Dernière modification | June 5, 2024 |
| S’applique à | ArcGIS GIS Server |
| Version trouvée | 10.4.1 |
| Système d’exploitation | N/A |
| Version du système d’exploitation | N/A |
| Statut | Will Not Be Addressed
L’équipe de développement a examiné le problème ou la demande et a décidé qu’ils ne seraient pas traités. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
The issue happens on the server end. There are no plans on addressing it in ArcGIS API for JavaScript.
Solution de contournement
When performing a query with the goal of returning a count of features, a possible workaround is to place the following JSON in the in the outStatistics (Output Statistics) parameter at REST while returnCountOnly remains false: [{ "statisticType": "count", "onStatisticField": "ObjectID", "outStatisticFieldName": "OIDs"}]This method results in the query results being returned in under 1 second.The Javascript API should use the outStatistics parameter instead of returnCountOnly when retrieving a count of features in a layer upon adding the FeatureLayer to a map.
Étapes pour reproduire
ID de bogue: BUG-000118425
Logiciel: