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>