Select to view content in your preferred language

How do I search esriFieldTypeInteger type of data in eSearch widget?

582
2
11-01-2011 08:50 AM
LeiZhou
Deactivated User
I am setting up a searching layer in eSearch xml file.  There is a variable (STW_ID)which is integer, not a string. I tried
<expression alias="STW_ID" textsearchlabel="Search by ID:">STW_ID = '[value]'</expression>
or 
<expression alias="STW_ID" textsearchlabel="Search by ID:">STW_ID LIKE '[value]%'</expression>
or
<expression alias="STW_ID" textsearchlabel="Search by ID:">STW_ID LIKE '%[value]%'</expression>
or
<expression alias="STW_ID" textsearchlabel="Search by ID:">STW_ID = value </expression>

None of these work. The data type of STW_ID is Type: esriFieldTypeInteger. If I search other String type data, they all work.
How do I search this kind of pamameter in eSearch? Thanks a lot!
Tags (2)
0 Kudos
2 Replies
LeiZhou
Deactivated User
My supervisor solved this: it should be STW_ID =[value] which set the value as number not a string.
0 Kudos
DaveKirkley
Occasional Contributor
Works for what I need!  Thanks guys!


<expression alias="PROP_NO" textsearchlabel="Search by Property No.[ Example: 1 or 15]:" >PROP_NO = [value]</expression>
0 Kudos