Select to view content in your preferred language

Parcel Notification Widget error

6945
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
Also the addrees locator works fine but  I get the error below when I run a buffer.

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()

Does anyone have any ideas?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
khokhar_umair,

    It appears that you have some items in your Sample Flex Viewer that were built using the 3.3 and the 3.2 SDK for Flex. All of the widgets you use in the SFV have to be built using the same Adobe Flex SDK version as well as the same AGS Flex API version. The easy way to ensure this is to  always build the whole SFV projects and any widgets you are using. The Parcel notification widget is a pretty good widget but is very complicated and many people have issues getting it setup initially.
0 Kudos
MuhammadKhokhar
Emerging Contributor
Hello,

Thankyou for your reply but I dont understand what you mean when you say to build the whole SFV project. I am using Adobe Flex Builder 3 and I use the "Build All" option everytime before I run my project. Any suggestions?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
khokhar_umair,

    If you have the source for the Parcel Notification widget in your SFV project then I should be building it when you either debug or run it. Because you are receiving the error you listed tells me that it is not actually rebuilding the ParcelNoticationWidget.swf. The is a common issue when Flex builder encounters an error in the MXML it will not rebuild the swf and when you run or debug you are actually using the old (the one that came with the source code) swf. Do you have the Flash Player debug version? Have you run a "clean" from the project menu. What does your problems window say?
0 Kudos
ShawnKraft
Occasional Contributor
I get a error #1085 Client.CouldnotDecode when I try to run it.  I am using sdk 3.5, the latest flex viewer, flex api 1.3 and building with flexbuilder 3.  I can get the parcel locator widget working just fine so I am confused.  For the most part, both widgets are almost identical.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shawn,

     The best ting to do is always get the widget working using the sample data that is configured in the xml before you change that to use your own data. Once you have the widget working then you can switch it to yours. I just imported a new clean SFV 1.3 project and in two minutes had the parcel notification widget up and running using the provided ParcelNotificationWidget.xml data.
0 Kudos
ShawnKraft
Occasional Contributor
Okay well I did that and it worked fine.  Now I just have to edit the parcellocator xml so that it points to my data.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shawn,

   OK can you post your modified ParcelNotificationWidget.xml then?
0 Kudos
ShawnKraft
Occasional Contributor
Yeah I will post it.  Hopefully I do it right lol.
0 Kudos