I was trying to follow a previous thread from the old forum http://forums.esri.com/Thread.asp?c=158&f=2421&t=292246&mc=14#msgid912036 and am having problems. I added in the code for the search widget and needed to rename the function because there was a previous createrecorddata function, so I renamed it to createRecordData1 and have no errors in the search widget portion. On the CreatePDF widget I am getting a 1152: A conflict exists with inherited definition mx.core:UIComponent.x in namespace public error.
public function ArrayCollection(source:Array=selectedparcels):void { //set up the Array that will be used to push featureSet data to DataGrid var tempArray:Array = new Array(); //set up header for csvString; //var PrclKey:int = 0; //var Type:String = ""; //var LegalDesc:String = ""; } var x:ArrayCollection = map.layers as ArrayCollection; var results : ArrayCollection = new ArrayCollection; for (var j:Number = 0; j < x.length; j++) { var lay:Layer = x.getItemAt(j) as Layer; var layName:String = lay.name; if(lay.name.toLowerCase() == "selectedparcels") { var gLay:GraphicsLayer = lay as GraphicsLayer var ga:ArrayCollection = gLay.graphicProvider as ArrayCollection; for (var i:Number = 0; i < ga.length; i++) { //Now that I have that layer I can iterate through the individual graphics var g:Graphic = ga.getItemAt(i) as Graphic; //And get their attributes var infoData:Object = g.attributes; //I personally what to know if there is more than one graphic //selected and do something else if there is more than one //In my searchWidget I add several custom attributes to the graphic // ppin is one of them that you see here. //So now that you have the attributes you do what you want with them if (ga.length == 1) { var xContent:String = infoData.content; var xTitle:String = infoData.title; var ZoningDesc:String = infoData.ZoningDesc; var Overlay:String = infoData.Overlay; var ZoneCode:String = infoData.ZoneCode; var ZoneKey:String = infoData.ZoneKey; var UDC_Zoning:String = infoData.UDC_Zoning; var Base:String = infoData.Base;