Select to view content in your preferred language

Could not resolve...

756
2
09-21-2010 06:30 AM
philippschnetzer
Frequent Contributor
Im getting the following error:

Could not resolve <widgets:RecordData> to a component implementation.


Here is the line it references:

<mx:Repeater id="wRepeater">
     <widgets:RecordData infoData="{wRepeater.currentItem}" mouseOver="mouseOverRecord(event)" mouseOut="mouseOutRecord()" click="clickRecord(event)"/>
    </mx:Repeater>



And here are my import statements:

<viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
     xmlns:s="library://ns.adobe.com/flex/spark"
     xmlns:mx="library://ns.adobe.com/flex/mx"
     xmlns:esri="http://www.esri.com/2008/ags"
     xmlns:viewer="com.esri.viewer.*"
     xmlns:widgets="com.esri.solutions.*"
     x     ="600"
     y     ="300"
     widgetConfigLoaded ="init()">
 
<fx:Script>
  <![CDATA[
   import com.esri.ags.Graphic;
   import com.esri.ags.Map;
   import com.esri.ags.geometry.Extent;
   import com.esri.ags.geometry.Geometry;
   import com.esri.ags.geometry.MapPoint;
   import com.esri.ags.geometry.Polygon;
   import com.esri.ags.geometry.Polyline;
   import com.esri.ags.layers.GraphicsLayer;
   import com.esri.ags.layers.Layer;
   import com.esri.ags.symbols.PictureMarkerSymbol;
   import com.esri.ags.symbols.SimpleFillSymbol;
   import com.esri.ags.symbols.SimpleLineSymbol;
   import com.esri.ags.FeatureSet;
   import com.esri.ags.tasks.supportClasses.Query;
   import com.esri.ags.tasks.QueryTask;
   import com.esri.solutions.flexviewer.SiteContainer;
   import com.esri.solutions.flexviewer.utils.WidgetEffects;
  
   import mx.collections.*;
   import mx.controls.Alert;
   import mx.rpc.AsyncResponder;
   import mx.rpc.events.ResultEvent;



Am I trying to import something that has had a name change since the new flex?  BTW I am using SFV2beta, FB4, and AGS10.

THANK YOU!!!
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Phillip,

   It looks like you are trying to add a SFV 1.x Widget to the new FlexViewer 2.0. You can not do this without major code changes. There is no longer a com.esri.solutions.* any time you see the xmlns attribute used in the parent element think of it as just a path to a physical folder (if it doen't have library in the quotation marks). In the new FlexViewer there is no such folder called solutions. That is just the tip of the iceberg though. any import that references the same path like "import com.esri.solutions.flexviewer.SiteContainer;" is invalid not only does that path not exist the SiteContainer has been renamed the ViewContainer. There is no longer any such thing as WidgetEffects so you will have to re-code the transitions of the widget. The list goes on and on...
0 Kudos
philippschnetzer
Frequent Contributor
Thanks, Robert.  I had a feeling that was the answer I was gonna get - and yes, I had this widget working in the sfv13.  I especially like the "..and the list goes on and on..."

The purpose of this widget was to look through a mapservice layer and autopopulate a drop-down with all the records of specified fields. Was a great tool for those layers that do not have several hundred or thousands of records.

I think I will save this one for last.  Thanks again!
0 Kudos