<?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: Issue retrieving feature layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-retrieving-feature-layer/m-p/1198343#M78141</link>
    <description>&lt;P&gt;Sorry.. the project is classified, but thanks for the reply..&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 01:35:51 GMT</pubDate>
    <dc:creator>utility9213</dc:creator>
    <dc:date>2022-08-02T01:35:51Z</dc:date>
    <item>
      <title>Issue retrieving feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-retrieving-feature-layer/m-p/1197879#M78122</link>
      <description>&lt;P&gt;Hello everyone, I am currently facing some issues retrieving my Feature Layer from the server directory. I am currently using&amp;nbsp;ArcGIS API for JavaScript 3.41.&lt;/P&gt;&lt;P&gt;I have tried the following code however, there are some issues in retrieving the information I need. For eg. there are a few missing properties such as the id, info template, _fields within the layer itself.&lt;/P&gt;&lt;P&gt;Below are the 2 methods I have tried I am able to retrieve the layers however the properties are still undefined or empty. Am I missing any steps?&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;const&lt;/SPAN&gt;&lt;SPAN&gt; layer = &lt;/SPAN&gt;&lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0" target="_blank" rel="noopener"&gt;sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt; });&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;flayer&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;portalItem&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;item&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;_id&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 06:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-retrieving-feature-layer/m-p/1197879#M78122</guid>
      <dc:creator>utility9213</dc:creator>
      <dc:date>2022-08-01T06:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue retrieving feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-retrieving-feature-layer/m-p/1197957#M78123</link>
      <description>&lt;P&gt;How about posting the rest of your code?&amp;nbsp; Maybe set it up in CodePen?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 13:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-retrieving-feature-layer/m-p/1197957#M78123</guid>
      <dc:creator>TimDietz</dc:creator>
      <dc:date>2022-08-01T13:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue retrieving feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-retrieving-feature-layer/m-p/1198032#M78126</link>
      <description>&lt;P&gt;It looks like you are trying to use 4x syntax in a 3x app. The FeatureLayer API in 3x is slightly different. You can just pass the URL.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#featurelayer1" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#featurelayer1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you have the itemId, you can get the item and get the URL off of that&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/esri.arcgis.utils-amd.html#getitem" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/esri.arcgis.utils-amd.html#getitem&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 15:27:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-retrieving-feature-layer/m-p/1198032#M78126</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-08-01T15:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue retrieving feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-retrieving-feature-layer/m-p/1198343#M78141</link>
      <description>&lt;P&gt;Sorry.. the project is classified, but thanks for the reply..&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 01:35:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-retrieving-feature-layer/m-p/1198343#M78141</guid>
      <dc:creator>utility9213</dc:creator>
      <dc:date>2022-08-02T01:35:51Z</dc:date>
    </item>
  </channel>
</rss>

