Select to view content in your preferred language

Parcel Notification Widget error

7009
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
Sorry, but the issue has to do with the parcel notification window.

I can enter a parcel number and once I enter two numbers the drop down list appears with many numbers to choose from.  Once I enter the parcel number and hit locate, the results window appears, but it's blank.  I checked the service address, layer number and return fields, but no luck.
0 Kudos
TristanKnowlton
Frequent Contributor
Jaime,

Can you post your .xml file for the widget?
0 Kudos
TristanKnowlton
Frequent Contributor
My notification works great except for the search by address.  It will only find my address if I type in the EXACT address the way it is in the parcel data.  This case it is only searching by the address field and not the geocode service.  It will not work using the geocoding service from ESRI. I have changed the coordinate systems in all places necessary.

Anyone have any ideas?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Darryl,

   If you don't what it to use the parcel data to search for the address then in the xml just leave findparceladdressfield blank.
0 Kudos
TristanKnowlton
Frequent Contributor
Robert-

I have tried that and I just tried it again as your suggestion and I get the same result.  It doesn't work.  I would like to use the parcel address field but you have to type it in exactly and I doubt most people will do that.  I'm assuming the geocoding service works as the backup to that?

Here is my .xml file:

configuration>
<!--Parcel Service for QueryTask-->
<parcels>http://gis.delhitownship.com/ArcGIS/rest/services/Base_Map2/MapServer/39</parcels>

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

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

<!--Select Parcel by Field ("Field","Field Alias")-->
<findparcelfield>PARCELNUM</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>33-25-05-24-276-101</defaultparcelid>

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

<!--State ComboBox for search by address--> 
<listfield>State</listfield>
<listvalues>MI</listvalues>

<!--Default Address-->
<defaultaddress>2074 Aurelius Rd,Holt,MI,48842</defaultaddress>

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

<!--Parcel content for widget ("Field","Field Alias")-->
<!--Fields with "$" formatted as currency-->
<parcelcontent>PARCELNUM</parcelcontent>

<!--Parcel Map Tip Fields ("Field","Field Alias")-->
<!--Fields with "$" formatted as currency-->
<maptip>PARCELNUM</maptip>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Darryl,

   No it's one or the other. If you have the findparceladdressfield set than it will only search the specific field for a match with the address entered. If you leave the findparceladdressfield blank than it should use ESRI's locator service to try to match the address.
0 Kudos
TristanKnowlton
Frequent Contributor
Thanks for your help again Robert.

I just get no response when it searches using the geocoder.  When I have the findparceladdressfield on, it searches and tells me it matches 100%, like it's using the geocoding service.  But the map goes blank.  When I turn the findparceladdressfield off, I get no response at all.
0 Kudos
JaimePrado
Emerging Contributor
Hi,

Has anyone had this issue? The application executes, but returns a blank screen.

Please see attached.


jP
0 Kudos
JaimePrado
Emerging Contributor
Hello,

Which file references the "Powered By ESRI" logo?  I looked at the files within the "SRC" folder, but can't find the line.

Thanks.
0 Kudos
TristanKnowlton
Frequent Contributor
If you go to MapManager.mxml and change map.logoVisible = true to map.logoVisible = false, that should work.

I think there are other ways to do it as well.
0 Kudos