<?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>idea Support placeholders for map service and layer names in InfoTemplate and PopupTemplate in ArcGIS Web AppBuilder Ideas</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-ideas/support-placeholders-for-map-service-and-layer/idi-p/924737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I'm using the JavaScript API to build customized functionality into a Web AppBuilder application. &amp;nbsp;One feature we're using are map popups. &amp;nbsp;The configuration data includes lists of fields to show in the popups for the various map service layers, along with titles for the popups. &amp;nbsp;We're currently using placeholders in the title of the popup so that we can include attribute data from the feature in the popup.&lt;BR /&gt;&lt;BR /&gt;Some of our data is pretty dense, so when popups are opened, they often contain many features. &amp;nbsp;The user can click on the arrows in the title bar to step through the set of located features. &amp;nbsp;The title region and the table of field values displayed in the popup change according to the current feature. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We have had requests to include the name of the map service and the name of the sublayer within the map service where the current feature was located. &amp;nbsp;At present the only apparent way to achieve this is to use the InfoTemplate and a custom function. &amp;nbsp;Within the custom function we can get to the layer name and attribute values. &amp;nbsp;But this seems to be a very heavy-handed way to get the layer name.&lt;BR /&gt;&lt;BR /&gt;Our suggestion is to have placeholders like {MAPSERVICE_NAME} and {LAYER_NAME} that could be used (at minimum) in the title, similar to how we can currently use placeholders to include attribute values for the feature in the title. &amp;nbsp;This would allow developers to easily include the map service and layer names without the overhead of developing a custom function that would build the HTML for the popup content.&lt;BR /&gt;&lt;BR /&gt;Thanks for considering this option!&lt;BR /&gt;&lt;BR /&gt;Gary Sinner&lt;BR /&gt;petroWEB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;

&lt;!-- content transformation source ID: 087E0000000kB88 --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jan 2016 23:49:04 GMT</pubDate>
    <dc:creator>GarySinner</dc:creator>
    <dc:date>2016-01-07T23:49:04Z</dc:date>
    <item>
      <title>Support placeholders for map service and layer names in InfoTemplate and PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-ideas/support-placeholders-for-map-service-and-layer/idi-p/924737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I'm using the JavaScript API to build customized functionality into a Web AppBuilder application. &amp;nbsp;One feature we're using are map popups. &amp;nbsp;The configuration data includes lists of fields to show in the popups for the various map service layers, along with titles for the popups. &amp;nbsp;We're currently using placeholders in the title of the popup so that we can include attribute data from the feature in the popup.&lt;BR /&gt;&lt;BR /&gt;Some of our data is pretty dense, so when popups are opened, they often contain many features. &amp;nbsp;The user can click on the arrows in the title bar to step through the set of located features. &amp;nbsp;The title region and the table of field values displayed in the popup change according to the current feature. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We have had requests to include the name of the map service and the name of the sublayer within the map service where the current feature was located. &amp;nbsp;At present the only apparent way to achieve this is to use the InfoTemplate and a custom function. &amp;nbsp;Within the custom function we can get to the layer name and attribute values. &amp;nbsp;But this seems to be a very heavy-handed way to get the layer name.&lt;BR /&gt;&lt;BR /&gt;Our suggestion is to have placeholders like {MAPSERVICE_NAME} and {LAYER_NAME} that could be used (at minimum) in the title, similar to how we can currently use placeholders to include attribute values for the feature in the title. &amp;nbsp;This would allow developers to easily include the map service and layer names without the overhead of developing a custom function that would build the HTML for the popup content.&lt;BR /&gt;&lt;BR /&gt;Thanks for considering this option!&lt;BR /&gt;&lt;BR /&gt;Gary Sinner&lt;BR /&gt;petroWEB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;

&lt;!-- content transformation source ID: 087E0000000kB88 --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 23:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-ideas/support-placeholders-for-map-service-and-layer/idi-p/924737</guid>
      <dc:creator>GarySinner</dc:creator>
      <dc:date>2016-01-07T23:49:04Z</dc:date>
    </item>
  </channel>
</rss>

