| Numéro d’ID de bogue |
BUG-000106693 |
| Envoi | July 19, 2017 |
| Dernière modification | June 5, 2024 |
| S’applique à | ArcGIS API for JavaScript |
| Version trouvée | 3.21 |
| 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 filter property should only have been doc'd for 4.x. SearchQueryParams and suggestQueryParams has been deprecated for 3.x. To get around this, please you can use the esriRequest.setRequestPreCallback
Documentation will be updated to reflect that 3.x does not include this property.
Solution de contournement
Set definition expression for the feature layer and use the feature layer in the Search widget's sources. This workaround however does not work for filter by geometry.sources: [{ featureLayer: new FeatureLayer("<a href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/EmergencyFacilities/MapServer/0" target="_blank">https://sampleserver6.arcgisonline.com/arcgis/rest/services/EmergencyFacilities/MapServer/0</a>", { outFields: ["*"], infoTemplate: new InfoTemplate("Emergency Facilities", "facname: ${facname}organiz: ${organiz}",definitionExpression: "organiz = 'City of Redlands'") }), searchFields: ["facname"], placeholder: "Redlands Community Hospital", name: "Emergency Facilities" }]
Étapes pour reproduire
ID de bogue: BUG-000106693
Logiciel:
- ArcGIS API for JavaScript