if(queryLayer){ var query:Query = new Query(); var myPattern:RegExp = /\[value\]/g; var expr:String = ""; var eVal:String = ""; var criteriaFromValue:String; for(var sg:Number = 0; sg < searchGroup.numElements; sg++){ sItemVal = searchGroup.getElementAt(sg) as SearchExpValueItem; queryExpr = configSearchText.expr.values[sg].expression; if (queryExpr == "[value]" || queryExpr.toLowerCase().indexOf(" in (") > 0){ //meaning an open SQL expression or an SQL with an IN Statement eVal = sItemVal.textValue; }else{ eVal = sItemVal.textValue.replace(/'/g,"''"); }; /*If the expression is an IN Statement and the the value is a string then replace the user defines comma seperated values with single quoted values*/ if(queryExpr.toLowerCase().indexOf(" in (") > 0 && queryExpr.toLowerCase().indexOf("'[value]'") > -1){ //replace the begining and trailing single qoutes if they exist eVal = eVal.replace(/^'|'$/g, "").replace(/,|','/g, "','"); } if (sItemVal.isValueRequired && !sItemVal.hasAValue()){ // no value specified so skip this part of where clause continue; }; if (queryExpr == "ADDRESS LIKE '[value]%' OR STREET LIKE '%[value]%'"){ queryExpr = "ADDRESS LIKE '" + eVal.replace(" ", "%") + "%' OR STREET LIKE '%[value]%'"; }
Found a problem. I've got your latest eSearch version and it works great. One problem though is with printing. When printing a parcel that is highlighted using the new print widget the graphic doesn't maintain it's transparency. It works when using the ESRI search widget however.[ATTACH=CONFIG]25752[/ATTACH] [ATTACH=CONFIG]25753[/ATTACH]If you want to see for yourself you can view the app at http://gis.co.wood.wi.us/Flex34/index.html
Chad, Hmm... You have me wondering what you are talking about exactly, because the graphical serach portion of the widget will buffer a point, polyline, rect, or polygon that you draw. The Spatial Search will buffer what ever type of layer geometry you have have selected based on a text or graphical search run earlier...
Call me needy but I've been battling this and don't see it. I've read the help file and I'm not finding it there either and I hate to be a bother. The "Owner Name" search is working correctly but the "Property ID" search is not. I thought I've changed it appropriately since it's a numeric field and not a text field but I keep getting an error when I try to process the request. Code's below unless you need more of the block. Good news is the graphical search and buffer issues are gone so I'm almost there.<expressions> <expression alias="Owner Name" textsearchlabel="Search Owner Name [ Example: PUBLIC JOHN Q ]:"> <values> <value prompt="Example: PUBLIC JOHN Q" isvaluerequired="true">upper(file_as_na) LIKE upper('%[value]%')</value> </values> </expression> <expression alias="Property ID" textsearchlabel="Search Property ID [ Example: 52138 ]:"> <values> <value prompt="Example: 52138" isvaluerequired="true">PROP_ID = '[value]'</value> </values> </expression></expressions>
<layers> <layer> <token/> <useproxy>false</useproxy> <definitionexpression/> <enableexport>true</enableexport> <name>Available Land</name> <url>http://maps.monroeohio.org/arcgis/rest/services/WMAS/AvailableLand/MapServer/0</url> <expressions> <expression alias="Agricultural" textsearchlabel="Search by Property Size..."> <values> <value prompt="Select size:" field="ACREAGEDOM" usedomain="true">ACREAGEDOM = [value]</value> </values> </expression> <expression alias="Residential" textsearchlabel="Search by Property Size..."> <values> <value prompt="Select size:" field="ACREAGEDOM" usedomain="true">ACREAGEDOM = [value]</value> </values> </expression> </expressions> <titlefield>PARID</titlefield> <fields all="false"> <field name="BCOMPANY" alias="Contact Company" gridfield="true"/> <field name="BNAME" alias="Contact Name" gridfield="true"/> <field name="BPHONE" alias="Contact Phone" gridfield="true"/> <field name="BFAX" alias="Contact Fax" gridfield="true"/> <field name="BEMAIL" alias="Contact Email" gridfield="true"/> <field name="PROPNAME" alias="Property Name" gridfield="true"/> <field name="ZONE" alias="Zone" gridfield="true"/> <field name="ACRES" alias="Acres" gridfield="true"/> <field name="PARID" alias="ParID" gridfield="true"/> <field name="OWNER" alias="Owner" gridfield="true"/> <field name="COMMENTS" alias="Comments" gridfield="true"/> <field name="PROPTYPE" alias="Property Type" gridfield="true"/> <field name="ADDRESS" alias="Address " gridfield="true"/> <field name="HYPERLINK" alias="Brochure Link" gridfield="false" hyperlinkgridfield="true" hyperlinkaliastext="Get More Info"/> <field name="AUDHYPLNK" alias="Auditor Link" gridfield="false" hyperlinkgridfield="true" hyperlinkaliastext="Get More Info"/> <field name="LATITUDE" alias="Latitude" gridfield="true"/> <field name="LONGITUDE" alias="Longitude " gridfield="true"/> </fields> </layer> </layers>
<layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Available Land</name> <url>http://gis.monroeohio.org/MONGIS/rest/services/AvailableLand/MapServer/0</url> <expressions> <expression alias="Agricultural" textsearchlabel="Search by Property Size..." field="ACREAGEDOM" usedomain="true" fromsubtype="true">PROPTYPE = 0 AND ACREAGEDOM = [value]</expression> <expression alias="Residential" textsearchlabel="Search by Property Size..." field="ACREAGEDOM" usedomain="true" fromsubtype="true">PROPTYPE = 1 AND ACREAGEDOM = [value]</expression> <expression alias="Commercial" textsearchlabel="Search by Property Size..." field="ACREAGEDOM" usedomain="true" fromsubtype="true">PROPTYPE = 2 AND ACREAGEDOM = [value]</expression> <expression alias="Light Industrial" textsearchlabel="Search by Property Size..." field="ACREAGEDOM" usedomain="true" fromsubtype="true">PROPTYPE = 3 AND ACREAGEDOM = [value]</expression> <expression alias="Heavy Industrial" textsearchlabel="Search by Property Size..." field="ACREAGEDOM" usedomain="true" fromsubtype="true">PROPTYPE = 4 AND ACREAGEDOM = [value]</expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Available Land</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>PARID</titlefield> <fields all="false"> <field name="BCOMPANY" alias="Contact Company" gridfield="true"/> <field name="BNAME" alias="Contact Name" gridfield="true"/> <field name="BPHONE" alias="Contact Phone" gridfield="true"/> <field name="BFAX" alias="Contact Fax" gridfield="true"/> <field name="BEMAIL" alias="Contact Email" gridfield="true"/> <field name="PROPNAME" alias="Property Name" gridfield="true"/> <field name="ZONE" alias="Zone" gridfield="true"/> <field name="ACRES" alias="Acres" gridfield="true"/> <field name="PARID" alias="ParID" gridfield="true"/> <field name="OWNER" alias="Owner" gridfield="true"/> <field name="COMMENTS" alias="Comments" gridfield="true"/> <field name="PROPTYPE" alias="Property Type" gridfield="true"/> <field name="ADDRESS" alias="Address "gridfield="true"/> <field name="HYPERLINK" alias="Brochure Link" gridfield="false" hyperlinkgridfield="true" hyperlinkaliastext="Get More Info"/> <field name="AUDHYPLNK" alias="Auditor Link" gridfield="false" hyperlinkgridfield="true" hyperlinkaliastext="Get More Info"/> <field name="LATITUDE" alias="Latitude" gridfield="true"/> <field name="LONGITUDE" alias="Longitude "gridfield="true"/> </fields> <links> <link includeinresults="false" field="AUDHYPLNK" alias="Auditor Link: Get More Info"> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> </link> <link includeinresults="false" field="HYPERLINK" alias="Brochure Link: Get More Info"> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> </link> </links> <icon isfield="false"></icon> <zoomscale usegeometry="true"/> <autoopendatagrid>true</autoopendatagrid> </layer>
<value prompt="Example: 52138" isvaluerequired="true">PROP_ID = [value]</value>
<fields all="true" />
Chad, When you query numbers you do not use the single qoutes.<value prompt="Example: 52138" isvaluerequired="true">PROP_ID = [value]</value>
ROW_Type ( type: esriFieldTypeSmallInteger , alias: ROW Type , Coded Values: [1: Prescriptive] , [2: Deeded] )
<expression alias="Replacement Score Between" textsearchlabel="Search Replacement Score Between:"> <values> <value prompt="Example: 60" autosubmit="false">REPLSCORE BETWEEN [value]</value> <value prompt="Example: 80" autosubmit="false" operator="AND">[value]</value> </values> </expression>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.