laptop and a wrench

不具合

The suggestQueryParams property of the Search widget does not work as expected.

最後に公開された状態: August 2, 2017 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000104601
送信されましたApril 20, 2017
最終更新日June 5, 2024
適用対象ArcGIS API for JavaScript
見つかったバージョン3.20
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
修正されたバージョン4.4
ステータスFixed

対処法

In versions 3.20 and 4.3, use the esriRequest.setRequestPreCallback to append the needed SQL to the queryTask generated by the Search widget. Samples of both these workflows are below. // Version 3.20<a href="http://jsbin.com/kevewef/2/edit?js,output" target="_blank">http://jsbin.com/kevewef/2/edit?js,output</a> // Version 4.30<a href="http://jsbin.com/yulejo/2/edit?js,output" target="_blank">http://jsbin.com/yulejo/2/edit?js,output</a>In addition to the above workarounds there are also workarounds for specific versions. In version 3.20, leverage a defintionQuery against the FeatureLayer used in the Search widget. The definitionQuery was automatically appended to the QueryTask sent by the Search widget. Version 3.20<a href="http://jsbin.com/ramime/1/edit?js,output" target="_blank">http://jsbin.com/ramime/1/edit?js,output</a>In version 4.3 post-process the Suggestions by wiring into the suggest-complete event and removing the un-needed suggestions from the results array. Version 4.3<a href="http://jsbin.com/qobaji/5/edit?js,output" target="_blank">http://jsbin.com/qobaji/5/edit?js,output</a>

再現の手順

不具合 ID: BUG-000104601

ソフトウェア:

  • ArcGIS API for JavaScript

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動