Elizabeth, So you have tested the Query at the REST End point just like I said in my last post (not just in ArcMap)?... I actually have never tested a SDE View Join in my widget so it might be an issue there...
<value prompt="Example: Owner: " isvaluerequired="true" operator="AND">upper(santarosagis.GISADMIN.QS36F_SRVIEW1.OWNER_NAME) LIKE upper('%[value]%')</value>
Elizabeth, What you sent is the zip is not the eSearchWidget.xml...
<layers/> <tables> <table> <token/> <definitionexpression/> <enableexport>true</enableexport> <enableprintgrid title="Selected Owners">true</enableprintgrid> <name>Owner Name Search</name> <url>http://192.1.1.163:6080/arcgis/rest/services/MyMapService/MapServer/5</url> <expressions> <expression alias="Owner_Name" textsearchlabel="Search Owner Last Name:" isvaluerequired="true"> <values> <value prompt="Example: Owner: " isvaluerequired="true" >upper(OWNER_NAME) LIKE upper('%[value]%')</value> </values> </expression> </expressions> <titlefield>OWNER_NAME</titlefield> <fields all="true"/> <links/> <queryattachments>false</queryattachments> <relates/> </relates> </table> </tables>
if(layerDetails && field){ var typeID:String = null; if (layerDetails.typeIdField && fieldName.toUpperCase() == layerDetails.typeIdField.toUpperCase()){ typeID = layerDetails.typeIdField ? graphic.attributes[fieldName] : null; // replace value with feature type name var featureType:FeatureType = getFeatureType(typeID); if (featureType && featureType.name){ value = featureType.name; } }else{ // replace value with coded value name if one exists var codedValue:CodedValue = getCodedValue(fieldName, value, typeID); if (codedValue){ value = codedValue.name; } } }
for each (fld in _layerDetails.fields){ var typeID:String = null; if (_layerDetails.typeIdField && fld.name.toUpperCase() == _layerDetails.typeIdField.toUpperCase()){ typeID = _layerDetails.typeIdField ? attributes[fld.name] : null; // replace value with feature type name var featureType:FeatureType = getFeatureType(typeID,_layerDetails); if (featureType && featureType.name){ attributes[fld.name] = featureType.name; } }else{
for each (fld in _rlayerDetails.fields){ var typeID:String = null; if (fld.name == _rlayerDetails.typeIdField){ typeID = _rlayerDetails.typeIdField ? String(attributes[_rlayerDetails.typeIdField]) : null; // replace value with feature type name var featureType:FeatureType = getFeatureType(typeID,_rlayerDetails); if (featureType && featureType.name){ attributes[fld.name] = featureType.name; } }else{
<layer> <token/> <definitionexpression/> <enableexport>true</enableexport> <name>Parcels</name> <url>your url here</url> <expressions> <expression alias="PIN" textsearchlabel="Search by Parcel ID Number (PIN):" isvaluerequired="true"> <values> <value prompt="Example: 3072504001001000" isvaluerequired="true" autosubmit="false">PIN = '[value]'</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select a Parcel</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>OWNERNAME</titlefield> <fields all="false"> <field name="PIN" alias="Parcel ID" gridfield="true"/> <field name="OWNERNAME" alias="Owner" gridfield="true"/> <field name="MAILADDR" alias="Mailing Address" gridfield="true"/> <field name="LEGALDESC" alias="Legal Description" gridfield="true"/> <field name="PropNum" gridfield="true"/> <field name="PropDir" gridfield="true"/> <field name="PropStrt" gridfield="true"/> <field name="COMMENTS" alias="Additional Info" gridfield="true"/> </fields> <links/> <zoomscale usegeometry="true" zoompercent="2"/> <autoopendatagrid>true</autoopendatagrid> <queryattachments>false</queryattachments> <relates /> <symbology> <simplefillsymbol color="0xff0000" alpha="0.5"> <outline color="0xff0000" alpha="0.8" width="2"/> </simplefillsymbol> </symbology> </layer>
<defaultselectionoption>textInput</defaultselectionoption><!--possible values only one graphicalInput or textInput or spatialInput -->The defaultselectionoption element is a string that specifies which search option (i.e graphicalInput or textInputor spatialInput) will be the default search option for the widget.
Josh, I don't have any real suggestions on your data with carriage returns in it...As far as the initalview thing the Enhanced Search Widget XML Configuration.pdf tell you the tag for that.
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.