Select to view content in your preferred language

Parcel Notification Widget error

4967
50
06-02-2010 07:25 AM
MuhammadKhokhar
Emerging Contributor
Hello, I am new to flex API and was trying to implement the Parcel Notification Widget. I have looked over the forums and fixed some errors but I am getting a error #2007.

TypeError: Error #2007: Parameter blendMode must be non-null.
at flash.display::DisplayObject/set blendMode()
at mx.skins.halo::HaloFocusRect/updateDisplayList()
at mx.skins::ProgrammaticSkin/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher()

I dont know what mistake I am doing. My xml is below,

-->
<configuration>
<!--Parcel Service for QueryTask-->
<parcels>http://neccog-rip/ArcGIS/rest/services/Maps/PutnamWGS84/MapServer/0</parcels>

<!--Geometry Service for Buffer-->
<geometryservice>http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice>

<!--Locator for address geocode-->
<locator>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer</locator>

<!--Result Zooom Scale-->
<zoomscale>5000</zoomscale>

<!--Select Parcel by Field ("Field","Field Alias")-->
<findparcelfield>NPARNO,National Parcel Number</findparcelfield>

<!--Use parcel autocomplete box ('T' = true, 'F' = false)-->
<!--ArcGIS Server will only return 500 results by default.  If defaults changed and a large number of features returned widget load may take a longer time to complete-->
<autocomplete>T</autocomplete>

<!--Default Parcel ID-->
<defaultparcelid>CT-000-000-000-000</defaultparcelid>

<!--Select Parcel by Address Field -->
<findparceladdressfield>SITEADD</findparceladdressfield>
<locatoraddressfield>Address</locatoraddressfield>

<!--State ComboBox for search by address--> 
<listfield>State</listfield>
<listvalues>CA,CO,CT,DE,DC,FL,GA,HI,IA,ID,IL,IN,KS,KY,LA,MA,MD,ME,MI,MN</listvalues>

<!--Default Address-->
<defaultaddress>216 Fox Rd,Putnam,CT,06260</defaultaddress>

<!--Minimum Score for Geocode-->
<minscore>80</minscore>

<!--Parcel Map Tip Fields ("Field","Field Alias")-->
<!--Fields with "$" formatted as currency-->
<maptip>NPARNO,National Parcel Number;SITEADD,Full Site Address</maptip>

<!--Parcel content for widget ("Field","Field Alias")-->
<!--Fields with "$" formatted as currency-->
<parcelcontent>NPARNO,National Parcel Number;SITEADD,Full Site Address</parcelcontent>

<!--Fields to include in output .csv table ("*" = All fields)-->
<csvfields>*</csvfields>

<!--Default .csv file name-->
<csvdefaultname>Selected Parcels</csvdefaultname>
</configuration>
Tags (2)
0 Kudos
50 Replies
JaimePrado
Emerging Contributor
Hello,

My Flex page was working fine, but after editing the title section in "config.xml", I get the attached error.

The "config.xml" file is located within the SRC folder.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jamie,

  Attach your config.xml (or just copy and paste it)
0 Kudos
JaimePrado
Emerging Contributor
Hi Robert,

Thanks,

Jaime



<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright © 2008 - 2009 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions.  See use restrictions in the file:
// <install location>/FlexViewer/License.txt
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
<userinterface>
  <banner>visible</banner>
  <title>GIS</title>
  <subtitle>Powered by ArcGIS Server</subtitle>
  <logo>com/esri/solutions/flexviewer/assets/images/logo.png</logo>
  <stylesheet>com/esri/solutions/flexviewer/themes/darkangel/style.swf</stylesheet>
  <menus>
   <menu id="menuMap" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png">Map</menu>
   <menu id="menuNav" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_nav.png">Navigation</menu>
   <menu id="menuWidgets" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_widget.png">Tools</menu>
   <menu id="menuFeeds" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_servicearea.png">Feeds</menu>
   <menu id="menuHelp" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_help.png">Help</menu>
  </menus>
</userinterface>

<map initialExtent="-118.002 34.100 -117.820 34.185" fullExtent="-118.002 34.100 -117.820 34.185">
<basemaps menu="menuMap">     
   <mapservice label="Street Map" type="tiled" visible="true" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_highway.png">http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer</mapservice>
   <mapservice label="Aerial Map" type="tiled" visible="false" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_satellite.png">http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer</mapservice>
   <mapservice label="Topographic Map" type="tiled" visible="false" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_solar.png">http://services.arcgisonline.com/ArcGIS/rest/services/NGS_Topo_US_2D/MapServer</mapservice>
   <mapservice label="       
</basemaps>

//uncomment lines below to view virtual earth maps;comment arcgisonline map configuration above (elements: map, basemaps, mapservice)
<!--map initialExtent="-1.3861396457346804E7 2959641.7352047404 -8172035.568026077 6452508.179723226" fullExtent="-1.2836528782099428E7 -4344069.191498438 9920914.775183456 9627396.586575491">
<basemaps menu="menuMap">
      <mapservice label="Road" type="virtualearth" visible="true" style="road" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png">http://[machine]/vetoken.ashx</mapservice>
      <mapservice label="Aerial" type="virtualearth" visible="false" style="aerial" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png">http://[machine]/vetoken.ashx</mapservice>
      <mapservice label="Topo" type="virtualearth" visible="false" style="topo" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_solar.png">http://[machine]/vetoken.ashx</mapservice>
     
</basemaps-->
      
<livemaps>
  <mapservice label="Azusa City Limits" type="tiled" visible="true" alpha="0.5">http://servername/arcgis/rest/services/flexBoundaryDD/MapServer</mapservice>
  <mapservice label="Parcels" type="tiled" visible="false" alpha="1">http://servername/arcgis/rest/services/flexParcelsDD/MapServer</mapservice>
  <mapservice label="Buildings" type="tiled" visible="false" alpha="0.5">http://servername/arcgis/rest/services/flexBldgsDD/MapServer</mapservice>
 
</livemaps>
</map>
<navtools>
  <navtool label="Zoom In" icon="com/esri/solutions/flexviewer/assets/images/icons/i_zoomin.png" menu="menuNav">zoomin</navtool>
  <navtool label="Zoom Out" icon="com/esri/solutions/flexviewer/assets/images/icons/i_zoomout.png" menu="menuNav">zoomout</navtool>
  <navtool label="Full Extent" icon="com/esri/solutions/flexviewer/assets/images/icons/i_zoomfull.png" menu="menuNav">zoomfull</navtool>
  <navtool label="Pan" icon="com/esri/solutions/flexviewer/assets/images/icons/i_pan.png" menu="menuNav">pan</navtool>
</navtools>
<widgets>
 
  <widget label="Azusa Layers" preload="minimized" icon="com/esri/solutions/flexviewer/assets/images/icons/i_folder.png" menu="menuMap" config="com/esri/solutions/flexviewer/widgets/LiveMapsWidget.xml">com/esri/solutions/esa/widgets/LiveMapsWidget.swf</widget>
  <widget label="Overview Map" icon="com/esri/solutions/flexviewer/assets/images/icons/i_overview.png" menu="menuMap" config="com/esri/solutions/flexviewer/widgets/OverviewMapWidget.xml">com/esri/solutions/flexviewer/widgets/OverviewMapWidget.swf</widget>
  <widget label="Bookmarks" icon="com/esri/solutions/flexviewer/assets/images/icons/i_bookmark.png" menu="menuMap" config="com/esri/solutions/flexviewer/widgets/BookmarkWidget.xml">com/esri/solutions/flexviewer/widgets/BookmarkWidget.swf</widget>
  <widget label="Print" icon="com/esri/solutions/flexviewer/assets/images/icons/i_print.png" menu="menuMap" config="com/esri/solutions/flexviewer/widgets/PrintWidget.xml">com/esri/solutions/flexviewer/widgets/PrintWidget.swf</widget> 
  <widget label="Find" icon="com/esri/solutions/flexviewer/assets/images/icons/i_pushpin.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/LocateWidget.xml">com/esri/solutions/flexviewer/widgets/LocateWidget.swf</widget>
  <widget label="Draw" icon="com/esri/solutions/flexviewer/assets/images/icons/i_draw.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/DrawWidget.xml">com/esri/solutions/flexviewer/widgets/DrawWidget.swf</widget>
  <widget label="Identify" icon="com/esri/solutions/flexviewer/assets/images/icons/i_info.png" menu="menuWidgets" config="com/esri/solutions/esa/widgets/IdentifyWidget.xml">com/esri/solutions/esa/widgets/IdentifyWidget.swf</widget>
  <widget label="Demographics" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png" menu="menuWidgets" config="com/esri/solutions/esa/widgets/ChartWidget.xml">com/esri/solutions/esa/widgets/ChartWidget.swf</widget>
  <widget label="About" icon="com/esri/solutions/flexviewer/assets/images/icons/i_about.png" menu="menuHelp" config="com/esri/solutions/flexviewer/widgets/AboutWidget.xml">com/esri/solutions/flexviewer/widgets/AboutWidget.swf</widget>
  <!--widget label="Police Facilities" icon="com/esri/solutions/flexviewer/assets/images/icons/i_policestation.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/LiveLayerWidget_Police.xml">com/esri/solutions/flexviewer/widgets/LiveLayerWidget.swf</widget-->
  <!--widget label="Traffic Cameras" icon="com/esri/solutions/flexviewer/assets/images/icons/i_camera.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/LiveLayerWidget_TrafficCameras.xml">com/esri/solutions/flexviewer/widgets/LiveLayerWidget.swf</widget-->
  <!--widget label="Search" icon="com/esri/solutions/flexviewer/assets/images/icons/i_search.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/SearchWidget.xml">com/esri/solutions/flexviewer/widgets/SearchWidget.swf</widget-->
  <!--widget label="Earthquakes" icon="com/esri/solutions/flexviewer/assets/images/icons/i_rss.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/GeoRSSWidget.xml">com/esri/solutions/flexviewer/widgets/GeoRSSWidget.swf</widget-->
  <!--widget label="MetaCarta Search" icon="com/esri/solutions/flexviewer/assets/images/icons/i_folder.png" menu="menuWidgets" config="com/esri/solutions/esa/widgets/MetaCartaWidget.xml">com/esri/solutions/esa/widgets/MetaCartaWidget.swf</widget-->
 
  <widget label="LA Traffic" icon="com/esri/solutions/flexviewer/assets/images/icons/i_flag.png" menu="menuFeeds" config="com/esri/solutions/esa/feeds/LATrafficGeoRSSWidget.xml">com/esri/solutions/flexviewer/widgets/GeoRSSWidget.swf</widget> 
 
  <widget label="Parcel Notification" icon="myWidgets/ParcelNotificationWidget/assets/images/icons/Parcel.png" menu="menuWidgets" config="myWidgets/ParcelNotificationWidget/ParcelNotificationWidget.xml">myWidgets/ParcelNotificationWidget/ParcelNotificationWidget.swf</widget>
</widgets>


<links>
  <link label="Help" icon="com/esri/solutions/flexviewer/assets/images/icons/i_help.png" menu="menuHelp">help.html</link>
  <link label="City of Azusa" icon="com/esri/solutions/flexviewer/assets/images/icons/i_home.png" menu="menuHelp">http://www.ci.azusa.ca.us/</link>
  <link label="Azusa GIS" icon="com/esri/solutions/flexviewer/assets/images/icons/i_resources.png" menu="menuHelp">http://www.ci.azusa.ca.us/index.aspx?NID=718</link>
</links>
<proxytype>asp</proxytype> <!-- apache|jsp||php -->
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jamie,

   Look at line 36

<mapservice label="

This must be a mistake
0 Kudos
DanielMunoz
Regular Contributor
I have a question for you guys. Do you know how to make the Parcel Notification Widget work with join tables? The only way way I got it to work is creating a whole new database. it doesn't like the syntax "database.fieldname" when specifying the fields to include on the output csv file, it only takes "field name"
0 Kudos
JaimePrado
Emerging Contributor
Hi Robert,

Thanks.  I deleted line 36 and it removed the start up error, but no maps show up and widgets work.

Any ideas?

Thanks.

Ooops, it's working.... Refreshed the browser and deleted cookies, etc.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Daniel,

   Sorry I am not going to be much help as I don't actually use the Parcel Notification Widget. I just try to provide people with assistance getting it working.
0 Kudos
DanielMunoz
Regular Contributor
Daniel,

   Sorry I am not going to be much help as I don't actually use the Parcel Notification Widget. I just try to provide people with assistance getting it working.


Thanks anyway, your enhance search works very well, it just doesn't have the buffer functionality which my users need.
0 Kudos
JaimePrado
Emerging Contributor
Hi,

My parcel notification widget returns a blank screen after searching.

Has anyone had this issue?

Thanks
0 Kudos
TristanKnowlton
Frequent Contributor
Around line 1260, there are two places that change the spatial reference. 

They look like this: outSpatialReference="{new SpatialReference(4326)}

Take those out and it should work for you.  Make sure you've listed your own map service with the parcels in it with the "Select Parcel by Field" correctly pointed to your parcel id field.
0 Kudos