Scott, Here you go replace all your xml for the eSearch Widget with what you copy from the attachment and see if that fixes it.
<expressions> <expression alias="Subdivision Name" textsearchlabel="Search Subdivision Name"> <values> <value prompt="Example: BOYSON ROAD 1ST">SUBDIVISIONNAME LIKE '[value]%'</value> </values> </expression> </expressions>
What is the base data format? FGBD, PGDB, shapefile?Also, have you tried making a new field and calculating it from the FACILITYID field and tried the search on that? [NEWFIELD] = Ltrim(Rtrim(FACILITYID))<value prompt="Example:100">NEWFIELD = '[value]'</value>In the past I have resolved some issues this way. Never found the problem, but "fixed" it.R_
[NEWFIELD] = Ltrim(Rtrim(FACILITYID))
<value prompt="Example:100">NEWFIELD = '[value]'</value>
What happens if you try this?<value prompt="Example:100">UPPER(FACILITYID) LIKE UPPER('%[value]%')</value>I know this isn't what you are after, but if this gets results, there are some hidden spaces/characters in your attributes.I've had issues like that before, then a LTrim(),RTrim() on the attribute column fixed it up.Just a thought,R_
<value prompt="Example:100">UPPER(FACILITYID) LIKE UPPER('%[value]%')</value>
Scott, No I need the eSearchWidget.xml where you have changed it to point to your data.
are you sure you have the item spelled correctly? In your two examples, one that works, one that doesn't, you have different spelling. not sure if that is just a typo in the email or in your expression as well.R_
Scott, I just downloaded form that link and get 3.0.7... The fact that the widget reports as 3.0.7 in App Builder leads me to believe you are good. Can you attach your eSearchWidget.xml file? Maybe you deleted something that you should not have.
Hello, I posted a question similar to this in the Flex API forum yesterday. I am attempting to perform a SQL query for a TEXT field that is in our Valves feature class. The field is an ID number field but also contains letters. I'd like the user to have the ability to type in a valve number and successfully select it. Here is what I have so far: <values> <value prompt="Example:100"> FACILITYID = '[value]'</value> </values> EDIT: I'd like to point out that FACILITID = '[value]' yields results in the default Search widget in the Flex Viewer.
Scott, What version of the eSearch are you using? If you are at Flex Viewer 3.0 than you need to be using the latest eSearch Widget Version 3.0.7. To check which version of eSearch you are using launch the viewer and the eSearch widget and hold the alt key and click on the "Enhanced Search" widget title.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.