Select to view content in your preferred language

Error #1069: Property RING not found on widgets.Locate.LocateResult: Implement BAO

794
3
08-25-2011 02:09 PM
cristiBJ
Deactivated User
Hi Everyone,
I have the Business Analyst license. I implemented Drive Time Report into Flex Viewer 2.1. (BAO API 2.1). The report pdf worked, but I cannot make the drive time polygon draw on map.

Then I upgraded to Flex Viewer 2.4, still the same problem.

I combined the sample project of "Drive Time" from this link
http://help.arcgis.com/en/businessanalyst/online%20apis/apis/flex/samples/index.html

to the LocateWidget in my sample Flex Viewer.

The problem is from this part of code:
      <!-- Set renderer for Drive time output feature class -->
        <esri:SimpleFillSymbol id="bFill" alpha="0.5" color="0x0000FF"/>
        <esri:SimpleFillSymbol id="gFill" alpha="0.5" color="0x00FF00"/>
        <esri:SimpleFillSymbol id="rFill" alpha="0.5" color="0xFF0000"/>
        <esri:UniqueValueRenderer id="uniqueValueRenderer" attribute="RING">
            <esri:UniqueValueInfo value="1" symbol="{rFill}"/>
            <esri:UniqueValueInfo value="2" symbol="{gFill}"/>
            <esri:UniqueValueInfo value="3" symbol="{bFill}"/>
        </esri:UniqueValueRenderer>

It complains the "Property RING not found" on this widget, and also the error message has something like 'c:\checkout\...', I do not have this folder on my c drive.Please see attached error messge screen.

My understanding is BAO API implemented the drive time polygon rendering. So the graphics layer only needs to connect this "uniqueValueRenderer" to the featureclass. But I have no clue what the RING attribute is from.

Robert, or ESRI Staff, or anyone who knows more, please help. Thank you very much. 

I will paste my LocateWidget.mxml, it doesnot allow me to attach.
Tags (2)
0 Kudos
3 Replies
cristiBJ
Deactivated User
Here is part of my LocateWidget.mxml. (sorry, the forum does not allow me to paste the whole thing).


// ViewerContainer.request(AppEvent.DATA_CREATE_INFOWIDGET, data, infoReady);
                    ViewerContainer.dispatchEvent(new AppEvent(AppEvent.DATA_CREATE_INFOWIDGET, data, infoReady));

                    graphicsLayer = new GraphicsLayer();
                    graphicsLayer.name = "Locate Results";
                    graphicsLayer.symbol = resultSymbol;
     /*
        var uniqueValuerenderer: UniqueValueRenderer = new UniqueValueRenderer();
     uniqueValuerenderer.attribute = "RING";
     var uniqueValueInfos:Array = [];
     uniqueValueInfos.push(new UniqueValueInfo(rFill, "1"));
     uniqueValueInfos.push(new UniqueValueInfo(gFill, "2"));
     uniqueValueInfos.push(new UniqueValueInfo(bFill, "3"));
     uniqueValuerenderer.infos = uniqueValueInfos;
     */
     graphicsLayer.renderer = uniqueValueRenderer; // add on 8/24 for drive time rings


  <esri:SimpleFillSymbol id="bFill" alpha="0.5" color="0x0000FF"/>
  <esri:SimpleFillSymbol id="gFill" alpha="0.5" color="0x00FF00"/>
  <esri:SimpleFillSymbol id="rFill" alpha="0.5" color="0xFF0000"/>
  <!-- add on 8/24/11, for drive time rings -->
 
  <esri:UniqueValueRenderer id="uniqueValueRenderer" attribute="RING">
   <esri:UniqueValueInfo value="1" symbol="{rFill}"/>
   <esri:UniqueValueInfo value="2" symbol="{gFill}"/>
   <esri:UniqueValueInfo value="3" symbol="{bFill}"/>
  </esri:UniqueValueRenderer>
0 Kudos
cristiBJ
Deactivated User
I have got rid of the #1069 error message about "RING". It was because I asssigned the renderer of graphicsLayer as "uniqueValueRenderer", while the graphicsLayer has been designated as the locate results display.

The results polygons still do not display. I am working around it by initiating a geoprocessing service to calculate and draw.
0 Kudos
cristiBJ
Deactivated User
Never mind above, I got everything working. Thanks!
0 Kudos