<?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: Remove Only Feature FID and layerName from Popup Window in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487359#M45326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lloyd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The only thing I can think of that will allow you to not define all the fields manually and still remove the FID and layer name is to attach an event to the maps infowindow "set-features" event and then get the graphics attributes array and remove those fields from the array.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Oct 2016 13:01:14 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-10-03T13:01:14Z</dc:date>
    <item>
      <title>Remove Only Feature FID and layerName from Popup Window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487358#M45325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a bunch of features that I want to display attributes for. Right now I have it set to&amp;nbsp;iTemplate = new InfoTemplate(layerName, "${*}"); which shows everything. &lt;SPAN&gt;I want to display everything &lt;/SPAN&gt;&lt;EM&gt;except&lt;/EM&gt; &lt;SPAN&gt;the FID and layerName.&lt;/SPAN&gt;&amp;nbsp;I really don't want to have to define each attribute for every layer in the map. Each layer has slightly different attributes. Is there a way to exclude those two common attributes from the popup and show everything else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2016 18:42:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487358#M45325</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2016-10-02T18:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Only Feature FID and layerName from Popup Window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487359#M45326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lloyd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The only thing I can think of that will allow you to not define all the fields manually and still remove the FID and layer name is to attach an event to the maps infowindow "set-features" event and then get the graphics attributes array and remove those fields from the array.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 13:01:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487359#M45326</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-03T13:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Only Feature FID and layerName from Popup Window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487360#M45327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. I'll mess around with it. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 14:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487360#M45327</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2016-10-03T14:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Only Feature FID and layerName from Popup Window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487361#M45328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could write&amp;nbsp;a function to exclude the attributes you don't need. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;iTemplate =&amp;nbsp;&lt;/SPAN&gt;new InfoTemplate("County",getTemplate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function getTemplate(graphic) {&lt;BR /&gt; var content = "";&lt;BR /&gt; for (var att in graphic.attributes) {&lt;BR /&gt; if (att != "ObjectID" &amp;amp;&amp;amp; att != "STATE_FIPS")&lt;BR /&gt; content += att + "=" + graphic.attributes[att] + "&amp;lt;/br&amp;gt;";&lt;BR /&gt; }&lt;BR /&gt; return content;&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 14:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487361#M45328</guid>
      <dc:creator>LoriGonzalez</dc:creator>
      <dc:date>2016-10-03T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Only Feature FID and layerName from Popup Window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487362#M45329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about specifying your list of fields in the outFields parameter of the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#featurelayer1"&gt;featureLayer constructor&lt;/A&gt;?...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487362#M45329</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2016-10-03T15:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Only Feature FID and layerName from Popup Window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487363#M45330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could do that, but the&amp;nbsp;only common fields to all the layers are FID and layerName. I would still have to specify the fields for each layer. It's looking like I'm going to have to do that anyway.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487363#M45330</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2016-10-03T15:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Only Feature FID and layerName from Popup Window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487364#M45331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha. I pretty much resign myself to the fact that I'll need to write custom formatting functions for all my popups in every app I put together. It sucks but I like having that fine grain control..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487364#M45331</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2016-10-03T15:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Only Feature FID and layerName from Popup Window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487365#M45332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure.&amp;nbsp;I've had to format popups in ArcGIS online and in the Flexviewer, and it's pretty tedious.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-only-feature-fid-and-layername-from-popup/m-p/487365#M45332</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2016-10-03T15:59:56Z</dc:date>
    </item>
  </channel>
</rss>

