Select to view content in your preferred language

Error in Export2Shp widget updated to V3.0

838
2
Jump to solution
07-05-2012 07:30 AM
ShaningYu
Honored Contributor
I tried to update Export2Shp widget from V2.5 to 3.0. I received such an error
Description Resource Path Location Type
1119: Access of possibly undefined property id through a reference with static type com.esri.ags.layers.supportClasses:LayerInfo. Export2ShpWidget.mxml /Flexviewer_Butler/src/widgets/Export2Shp line 174 Flex Problem
url = (svc as ArcGISDynamicMapServiceLayer).url + "/" + (layerDdl.selectedItem as LayerInfo).id;
A red-line is under 'id'.
How to solve this problem? Thanks.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor
0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
The id property in LayerInfo has been renamed layerId.


See the migration doc at http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Migrating_from_2_5_to_3_0/017p0000...
0 Kudos
ShaningYu
Honored Contributor
Change .id to layerId.  Thanks.
0 Kudos