Surf_Type (Type: esriFieldTypeSmallInteger, Alias: Surface Type, Domain: Coded Values: [1: Tar and Gravel], [2: Asphalt], [3: Chert], ...2 more... )
Robert, here is my code in the SearchWidget.xml <layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Available</name> <url>http://gis.monroeohio.org/MONGIS/rest/services/AvailableLand/MapServer/1</url> <expressions> <expression alias="Available Land Agriculture" textsearchlabel="Search Available Land Agriculture by Acreage..." field="ACREAGEDOM" usedomain="true">UPPER(ACREAGEDOM) = UPPER('[value]')</expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Available Land</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>COMPANY</titlefield> <fields all="false"> <field name="BCOMPANY" gridfield="true"/> <field name="BNAME" gridfield="true"/> <field name="BPHONE" gridfield="true"/> <field name="BFAX" gridfield="true"/> <field name="BEMAIL" gridfield="true"/> <field name="PROPNAME" gridfield="true"/> <field name="ZONE" gridfield="true"/> <field name="ACRES" gridfield="true"/> <field name="PARID" gridfield="true"/> <field name="OWNER" gridfield="true"/> <field name="COMMENTS" gridfield="true"/> <field name="PROPTYPE" gridfield="true"/> <field name="LATITUDE" gridfield="true"/> <field name="LONGITUDE" gridfield="true"/> <field name="ADDRESS" gridfield="true"/> <field name="HYPERLINK" gridfield="true"/> <field name="AUDHYPLNK" gridfield="true"/> </fields> <linkfield></linkfield> <icon isfield="false"></icon> <zoomscale usegeometry="true"/> <autoopendatagrid>true</autoopendatagrid> </layer>Here is the error I am receiving in Firefox:TypeError: Error #1009: Cannot access a property or method of a null object reference. at widgets.eSearch::SearchWidget/popCBwithDomain() at widgets.eSearch::SearchWidget/searchLayerChangedText() at widgets.eSearch::SearchWidget/__cboLayerText_change() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at mx.controls::ComboBox/dispatchChangeEvent() at mx.controls::ComboBox/close() at mx.controls::ComboBox/dropdown_changeHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at mx.controls.listClasses::ListBase/mouseUpHandler() at mx.controls::List/mouseUpHandler()Any thoughts on what I might be doing wrong here?
Rick, There is no configuration option for disabling certain graphical search button as you have figured out but you can simply locate the MXML Group with the id of graphicalInput and add:visible="false" includeInLayout="false" to the particular mx images (graphical Search Buttons) that you do not want shown. Make sure you don not try this for the eDrawBtn or the pBufferBtn to disable those just set them to false in the SearchWidget.xml<enabledrawgraphicbutton>false</enabledrawgraphicbutton> <enablebuffergraphicbutton>false</enablebuffergraphicbutton>
visible="false" includeInLayout="false"
<enabledrawgraphicbutton>false</enabledrawgraphicbutton> <enablebuffergraphicbutton>false</enablebuffergraphicbutton>
Ken, Domains that are attached to sub types will be fixed in the eSearch version 2.5 due to release in conjunction with the Flex Viewer 2.5 (coming very soon).
Kenneth, Your issue is that the source path is hard coded many time in the code so the fact that you have the widgets path as /Modified/src/widgets/eSearch instead of src/widgets/eSearch is a big issue. Try making the suggested code changes to the code in the original location instead.
All, Version 2.5 now available for Flex Viewer 2.5Version 2.5 - 12/2/2011 * Added Related table display capabilities for searched features * Added support for domains that come from subtypes.
<layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Available Land</name> <url>http://gis.monroeohio.org/MONGIS/rest/services/AvailableLand/MapServer/1 </url> <expressions> <expression alias="Available Land Agriculture" textsearchlabel="Search Available Land Agriculture by Acreage..." field="ACREAGEDOM" usedomain="true" fromsubtype="true">PROPTYPE = '[value]' </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Available Land</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>BCOMPANY</titlefield> <fields all="false"> <field name="BCOMPANY" gridfield="true" /> <field name="BNAME" gridfield="true"/> <field name="BPHONE" gridfield="true"/> <field name="BFAX" gridfield="true"/> <field name="BEMAIL" gridfield="true"/> <field name="PROPNAME" gridfield="true"/> <field name="ZONE" gridfield="true"/> <field name="ACRES" gridfield="true"/> <field name="PARID" gridfield="true"/> <field name="OWNER" gridfield="true"/> <field name="COMMENTS" gridfield="true"/> <field name="PROPTYPE" gridfield="true"/> <field name="LATITUDE" gridfield="true"/> <field name="LONGITUDE" gridfield="true"/> <field name="ADDRESS" gridfield="true"/> <field name="HYPERLINK" gridfield="true"/> <field name="AUDHYPLNK" gridfield="true"/> </fields> <linkfield></linkfield> <icon isfield="false"></icon> <zoomscale usegeometry="true" /> <autoopendatagrid>true</autoopendatagrid> </layer>
Ken, The issue is that you are specifying the subtype field and I need the field name that contains the domain. <layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Available Land</name> <url>http://gis.monroeohio.org/MONGIS/rest/services/AvailableLand/MapServer/1 </url> <expressions> <expression alias="Available Land Agriculture" textsearchlabel="Search Available Land Agriculture by Acreage..." field="ACREAGEDOM" usedomain="true" fromsubtype="true">PROPTYPE = '[value]' </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Available Land</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>BCOMPANY</titlefield> <fields all="false"> <field name="BCOMPANY" gridfield="true" /> <field name="BNAME" gridfield="true"/> <field name="BPHONE" gridfield="true"/> <field name="BFAX" gridfield="true"/> <field name="BEMAIL" gridfield="true"/> <field name="PROPNAME" gridfield="true"/> <field name="ZONE" gridfield="true"/> <field name="ACRES" gridfield="true"/> <field name="PARID" gridfield="true"/> <field name="OWNER" gridfield="true"/> <field name="COMMENTS" gridfield="true"/> <field name="PROPTYPE" gridfield="true"/> <field name="LATITUDE" gridfield="true"/> <field name="LONGITUDE" gridfield="true"/> <field name="ADDRESS" gridfield="true"/> <field name="HYPERLINK" gridfield="true"/> <field name="AUDHYPLNK" gridfield="true"/> </fields> <linkfield></linkfield> <icon isfield="false"></icon> <zoomscale usegeometry="true" /> <autoopendatagrid>true</autoopendatagrid> </layer>
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.