AUTOCOMPLETEBOX value sorting...possible?
Hi,
I would like to sort the values displayed in the AUTOCOMPLETEBOX after the user types-in a few characters.
I do not see any option to do it in AUTOCOMPLETEBOX properties as well.
Any ideas how it can be done?
Regards
0
-
As far as I know they are sorted? 0 -
Okay, so this is the issue.
Say I type 'S12' in the autocomplete box and it populates it with results.
I get the following (sample) response:- S12056734 (Wood Pole)
- S12287453 (Wood Pole)
- S12598263 (Wood Pole)
- S12109452 (Wood Pole) and so on...
I've figured it out that if I specify an ORDER BY ASC in the request being sent to AGS, the result will contain the values currently missing. However, the query the autocomplete box fires, does not have an ORDER BY inherently, and there seems to be no way to specify that in the request the autocomplete box sends back to AGS.
Any ideas around it?0 -
What is the number of records in your table and what is the maximum number of records ArcGIS Server returns? Try to increase the maximum number of records (default value is 1000). 0 -
The maximum number of records AGS returns is default i.e. 1000, but the Autocomplete box can take only 80. Why should that affect the result...the Autocomplete box does not apply any ordering while fetching the results...it may be doing once results are received from AGS 0 -
What is the Where Clause configured for the AutoCompleteBox in the display form? 0 -
Are you using a LIKE in your query (e.g. SELECT * FROM table WHERE name LIKE '{0}%' ORDER BY name ASC" 0 -
Sorry for the delayed response guys...
Nico: Where clause is "UPPER(SEARCH_FIELD) Like UPPER('{0}%')"
Tom: I tried using the ORDER BY in the AUTOCOMPLETEBOX where clause, but it did not help.0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
7 Kommentare