Simon,
have you looked at the sum capability of the eSearch datagrid?<field name="Length_" numberformat="2|,|." sum="true" sumlabel="Total Length: " gridfield="true"/>
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?