<?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 JavaScript SDK Bug(?): FeatureLayer.allTables - titles contain Service Name in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-bug-featurelayer-alltables-titles/m-p/1635867#M87402</link>
    <description>&lt;P&gt;I just realized that the table titles in a FeatureLayer contain the service name as a prefix. This is reproducible in ArcGIS Enterprise 11.3 and currently in ArcGIS Online.&lt;BR /&gt;&lt;BR /&gt;To be clear:&lt;BR /&gt;This gives me a list of "&amp;lt;LayerTitles&amp;gt;"...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;webmap.allLayers.items.map(t =&amp;gt; t.title)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;...while this gives me a list of "&amp;lt;ServiceName&amp;gt; - &amp;lt;TableName&amp;gt;"&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;webmap.allTables.items.map(t =&amp;gt; t.title)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Same goes for webmap.tables.&lt;/P&gt;&lt;P&gt;Is this a bug,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2786"&gt;@JuliePowell&lt;/a&gt;?&lt;/P&gt;&lt;P&gt;Here's a little sample to demonstrate the issue (open console):&amp;nbsp;&lt;A href="https://codepen.io/esride-Nik/pen/vENKeNj" target="_blank" rel="noopener"&gt;https://codepen.io/esride-Nik/pen/vENKeNj&lt;/A&gt;. This is what it looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NiklasKhn_0-1753351315837.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137119i114BC9E22FBEC9B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NiklasKhn_0-1753351315837.png" alt="NiklasKhn_0-1753351315837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jul 2025 10:06:39 GMT</pubDate>
    <dc:creator>NiklasKöhn</dc:creator>
    <dc:date>2025-07-24T10:06:39Z</dc:date>
    <item>
      <title>JavaScript SDK Bug(?): FeatureLayer.allTables - titles contain Service Name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-bug-featurelayer-alltables-titles/m-p/1635867#M87402</link>
      <description>&lt;P&gt;I just realized that the table titles in a FeatureLayer contain the service name as a prefix. This is reproducible in ArcGIS Enterprise 11.3 and currently in ArcGIS Online.&lt;BR /&gt;&lt;BR /&gt;To be clear:&lt;BR /&gt;This gives me a list of "&amp;lt;LayerTitles&amp;gt;"...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;webmap.allLayers.items.map(t =&amp;gt; t.title)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;...while this gives me a list of "&amp;lt;ServiceName&amp;gt; - &amp;lt;TableName&amp;gt;"&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;webmap.allTables.items.map(t =&amp;gt; t.title)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Same goes for webmap.tables.&lt;/P&gt;&lt;P&gt;Is this a bug,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2786"&gt;@JuliePowell&lt;/a&gt;?&lt;/P&gt;&lt;P&gt;Here's a little sample to demonstrate the issue (open console):&amp;nbsp;&lt;A href="https://codepen.io/esride-Nik/pen/vENKeNj" target="_blank" rel="noopener"&gt;https://codepen.io/esride-Nik/pen/vENKeNj&lt;/A&gt;. This is what it looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NiklasKhn_0-1753351315837.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137119i114BC9E22FBEC9B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NiklasKhn_0-1753351315837.png" alt="NiklasKhn_0-1753351315837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 10:06:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-bug-featurelayer-alltables-titles/m-p/1635867#M87402</guid>
      <dc:creator>NiklasKöhn</dc:creator>
      <dc:date>2025-07-24T10:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript SDK Bug(?): FeatureLayer.allTables - titles contain Service Name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-bug-featurelayer-alltables-titles/m-p/1635868#M87403</link>
      <description>&lt;P&gt;There's a code snippet in the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#allTables" target="_blank" rel="noopener"&gt;docs at Map.allTables&lt;/A&gt; that indicates&amp;nbsp; that should be different. The following comparison wouldn't work:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// A feature layer where isTable = true.
const foundTable = map.allTables.find(function(table) {
  // Find a table with title "US Counties"
  return table.title === "US Counties";
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 10:09:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-sdk-bug-featurelayer-alltables-titles/m-p/1635868#M87403</guid>
      <dc:creator>NiklasKöhn</dc:creator>
      <dc:date>2025-07-24T10:09:53Z</dc:date>
    </item>
  </channel>
</rss>

