<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Flex: Get Graphic SHAPE.len Attribute in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527754#M11953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for correcting me, Rene. I had forgotten about the fields in SDE.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Oct 2011 19:44:36 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2011-10-03T19:44:36Z</dc:date>
    <item>
      <title>Flex: Get Graphic SHAPE.len Attribute</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527750#M11949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetigns Everyone, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to work with the SHAPE.len field in the Flex Viewer so that I can serve up to date length data for a linear feature layer. I assumed that I could get it in the same way that I usually get attributes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var nmLengthFeet:Number = graphic.attributes.SHAPE.len;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems not to be working though. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tyler Waring&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 14:12:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527750#M11949</guid>
      <dc:creator>TylerWaring</dc:creator>
      <dc:date>2011-10-03T14:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Flex: Get Graphic SHAPE.len Attribute</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527751#M11950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since Shape.Len is an internal ArcGIS function, it's not an actual attribute that you can grab hold of. You'll have to create your own length field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 14:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527751#M11950</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2011-10-03T14:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Flex: Get Graphic SHAPE.len Attribute</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527752#M11951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess I'll have to make an update script then. Thanks for the tip.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tyler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 16:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527752#M11951</guid>
      <dc:creator>TylerWaring</dc:creator>
      <dc:date>2011-10-03T16:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Flex: Get Graphic SHAPE.len Attribute</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527753#M11952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can access the Shape.len field, but you'll need to use bracket notation since the "." won't translate over in code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tested this and it works with my SDE data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var query:Query = new Query();
query.outFields = ["*"];
query.returnGeometry = false;
query.where = "AssetID&amp;nbsp; &amp;lt;&amp;gt; ' '";
var queryTask:QueryTask = new QueryTask("http://testgis/ArcGIS/rest/services/SewerSystemTest/MapServer/5");
queryTask.execute(query, new mx.rpc.Responder(function(features:FeatureSet):void {
 for each(var o:Object in features.attributes)
 {
&amp;nbsp; trace(o["Shape.len"]);
 }
}, function(fault:FaultEvent):void{ trace("error", fault.message); }));
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:59:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527753#M11952</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-11T22:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Flex: Get Graphic SHAPE.len Attribute</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527754#M11953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for correcting me, Rene. I had forgotten about the fields in SDE.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 19:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527754#M11953</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2011-10-03T19:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Flex: Get Graphic SHAPE.len Attribute</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527755#M11954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried using attributes['SHAPE.LEN'] and it doesn't work for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 13:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-get-graphic-shape-len-attribute/m-p/527755#M11954</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2013-07-03T13:14:08Z</dc:date>
    </item>
  </channel>
</rss>

