<?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 Cant access the properties of a FeatureLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cant-access-the-properties-of-a-featurelayer/m-p/509719#M47373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m working with ArcGIS Server 10 and the JavaScript API v2.1 and I'm trying to access the properties (name, fields etc) of a featureLayer but it seems like I get no reference to the featureLayer. When I try to alert the name (... or other properties) i get "undefined". This is kind of what I´m doing in code (JavaScript)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var featureLayer=new esri.layers.FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer/1", {mode: esri.layers.FeatureLayer.MODE_SELECTION});

alert(featureLayer.name);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something... ??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Oct 2010 05:28:32 GMT</pubDate>
    <dc:creator>KristerVikström</dc:creator>
    <dc:date>2010-10-08T05:28:32Z</dc:date>
    <item>
      <title>Cant access the properties of a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cant-access-the-properties-of-a-featurelayer/m-p/509719#M47373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m working with ArcGIS Server 10 and the JavaScript API v2.1 and I'm trying to access the properties (name, fields etc) of a featureLayer but it seems like I get no reference to the featureLayer. When I try to alert the name (... or other properties) i get "undefined". This is kind of what I´m doing in code (JavaScript)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var featureLayer=new esri.layers.FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer/1", {mode: esri.layers.FeatureLayer.MODE_SELECTION});

alert(featureLayer.name);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something... ??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 05:28:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cant-access-the-properties-of-a-featurelayer/m-p/509719#M47373</guid>
      <dc:creator>KristerVikström</dc:creator>
      <dc:date>2010-10-08T05:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cant access the properties of a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cant-access-the-properties-of-a-featurelayer/m-p/509720#M47374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have dived deeper into this issu and found out that I can get access to the information by using JSON (http request and eval function to get the object). Is this the proper way to access the properties or is it just a workaround??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 07:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cant-access-the-properties-of-a-featurelayer/m-p/509720#M47374</guid>
      <dc:creator>KristerVikström</dc:creator>
      <dc:date>2010-10-08T07:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cant access the properties of a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cant-access-the-properties-of-a-featurelayer/m-p/509721#M47375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The feature layer properties aren't available until after the layer has loaded. Once the layer has loaded the properties should return values instead of undefined.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 15:17:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cant-access-the-properties-of-a-featurelayer/m-p/509721#M47375</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2010-10-08T15:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cant access the properties of a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cant-access-the-properties-of-a-featurelayer/m-p/509722#M47376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, then I missed something &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 07:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cant-access-the-properties-of-a-featurelayer/m-p/509722#M47376</guid>
      <dc:creator>KristerVikström</dc:creator>
      <dc:date>2010-10-11T07:45:07Z</dc:date>
    </item>
  </channel>
</rss>

