Select to view content in your preferred language

Parcel Notification Widget error

6940
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
MuhammadKhokhar
Emerging Contributor
I figured that out after I read the rest of the responses. It is working fine now.
Thank you for all your help.
0 Kudos
MuhammadKhokhar
Emerging Contributor
Hey Robert,

Everything is working fine but I get a error when I buffer after locating the parcel by addrees.
The error is as follows,


TypeError: Error #1009: Cannot access a property or method of a null object reference.
at myWidgets.ParcelNotificationWidget::ParcelRecordData/findParcels()
at myWidgets.ParcelNotificationWidget::ParcelRecordData/___ParcelRecordData_Button1_click()

Any ideas on how to fix it. I checked out the lines they are refrencing but had no luck in figuring it out.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Muhammad,

   Do you get a graphic drawn on the screen when you do the initial search? The error you are getting is that it can not get the polygon geometry's first ring.
0 Kudos
JaimePrado
Emerging Contributor
Does anyone know why I get this error?  Please see attached image.

I'm using Adobe Flash Builder 4


Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jaime,

   You would get that error when Flash Builder is not building the ParcelNotificationWidget.swf (normally because of an error in code) and instead is using the old swf that was built using a different SDK and/or API version. Try deleting the  ParcelNotificationWidget.swf from the bin-debug and make sure you do not have one in your src folder.
0 Kudos
JaimePrado
Emerging Contributor
That did the trick!

Thank you.


Jaime
0 Kudos
TristanKnowlton
Frequent Contributor
I am getting an error that reads:

"Could not resolve <myWidgets:ParcelRecordData> to a component implementation."

I have all of the files in a folder under src called myWidgets.

If anyone has any ideas that would be great.

Thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Darryl,

   Flex is case sensitive. Check to make sure you have all files and folders spelled exactly.
0 Kudos
TristanKnowlton
Frequent Contributor
Thanks Robert, is that the only option that would cause that error?  I can't find any misspellings. 

The only thing I've changed so far is the package contents in the AutoComplete.as and ParcelDataEvent.as. 

I changed them both from "package myWidgets.ParcelNotificationWidget" to just "package myWidgets."

Thanks!
0 Kudos
weeyeo
by
Emerging Contributor
Muhammad,

   Do you get a graphic drawn on the screen when you do the initial search? The error you are getting is that it can not get the polygon geometry's first ring.




I got the same error message when click "Find Parcels" button to run buffer and address locator works fine.  Does anyone able to solve this problem?  I use my own map services.

Here are the messages:
at mynoticewidgets.ParcelNotificationWidget::ParcelRecordData/findParcels()
at mynoticewidgets.ParcelNotificationWidget::ParcelRecordData/___ParcelRecordData_Button1_click()

Thank you.
0 Kudos