<?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: Filter Print Templates in Web App Builder in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-print-templates-in-web-app-builder/m-p/655612#M17407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; No.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Aug 2015 14:03:57 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2015-08-03T14:03:57Z</dc:date>
    <item>
      <title>Filter Print Templates in Web App Builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-print-templates-in-web-app-builder/m-p/655609#M17404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To All Web App Builder Users:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a web app with my own print service.&amp;nbsp; The print service contains 20 different print templates, 16 of which are for a custom application where access to the print templates is programmatically controlled.&amp;nbsp; When using the Web App Builder web app, all 20 print templates get displayed in a dropdown list.&amp;nbsp; Is there anyway to filter out print templates with the configurable Web App Builder?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 16:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-print-templates-in-web-app-builder/m-p/655609#M17404</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-07-31T16:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Print Templates in Web App Builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-print-templates-in-web-app-builder/m-p/655610#M17405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There is no configuration for this but it would be pretty simple to do this filtering in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go into the Print.js file in the Print widgets folder and replace line 219 with something like this:&lt;/P&gt;&lt;P&gt;Old:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;this.layoutDijit.addOption(layoutItems);&lt;/PRE&gt;&lt;P&gt;New:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var new_layoutItems = array.filter(layoutItems, function(layout) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //this is where you are filtering out what you don't want added
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //or you do the opposite and only allow the ones you want to be returned
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return layout.label !== "Letter ANSI A Portrait";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.layoutDijit.addOption(new_layoutItems);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:46:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-print-templates-in-web-app-builder/m-p/655610#M17405</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T03:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Print Templates in Web App Builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-print-templates-in-web-app-builder/m-p/655611#M17406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not creating this web app in the developer version.&amp;nbsp; Can I still modify this code if the web app is hosted in AGOL and not Portal?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 13:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-print-templates-in-web-app-builder/m-p/655611#M17406</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-08-03T13:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Print Templates in Web App Builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-print-templates-in-web-app-builder/m-p/655612#M17407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; No.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 14:03:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-print-templates-in-web-app-builder/m-p/655612#M17407</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-08-03T14:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Print Templates in Web App Builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-print-templates-in-web-app-builder/m-p/655613#M17408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added this as an Idea (on the ArcGIS Ideas website) as not everyone who can create a custom print service (no programming required), would be able to use the developer version of the Web App Builder where you showed me where to modify the code.&amp;nbsp; So if this was configurable in the Web App Builder, this problem would be solved without any need for a programmer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 15:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-print-templates-in-web-app-builder/m-p/655613#M17408</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-08-03T15:35:12Z</dc:date>
    </item>
  </channel>
</rss>

