<?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 Print widget: how to get selected layout and format in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-how-to-get-selected-layout-and-format/m-p/1114440#M75173</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any way to get selected layout and format when the user change selection in the dropdown menues ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nadia&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 11:08:44 GMT</pubDate>
    <dc:creator>nadmoat</dc:creator>
    <dc:date>2021-11-05T11:08:44Z</dc:date>
    <item>
      <title>Print widget: how to get selected layout and format</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-how-to-get-selected-layout-and-format/m-p/1114440#M75173</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any way to get selected layout and format when the user change selection in the dropdown menues ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nadia&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 11:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-how-to-get-selected-layout-and-format/m-p/1114440#M75173</guid>
      <dc:creator>nadmoat</dc:creator>
      <dc:date>2021-11-05T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Print widget: how to get selected layout and format</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-how-to-get-selected-layout-and-format/m-p/1114498#M75179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/535363"&gt;@nadmoat&lt;/a&gt;,&amp;nbsp;thanks for the question. What are you trying to accomplish?&lt;/P&gt;&lt;P&gt;If you open the developer tools of your browser and look at the network traffic, you can see the Format and Layout_Template in the request:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-11-05 at 9.57.19 AM.png" style="width: 870px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26906iAE28D464C0A11D62/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-11-05 at 9.57.19 AM.png" alt="Screen Shot 2021-11-05 at 9.57.19 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You could also listen for an event when the printing is fired off and discover the Layout and Format that way:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#events-summary" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#events-summary&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:01:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-how-to-get-selected-layout-and-format/m-p/1114498#M75179</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-11-05T15:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Print widget: how to get selected layout and format</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-how-to-get-selected-layout-and-format/m-p/1114836#M75191</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/535363"&gt;@nadmoat&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;you can get the templateOptions using the watchUtils.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        watchUtils.watch(print.templateOptions,"layout", (event)=&amp;gt;{
                console.log(event)
          });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 11:31:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-how-to-get-selected-layout-and-format/m-p/1114836#M75191</guid>
      <dc:creator>MichaelBoschert</dc:creator>
      <dc:date>2021-11-08T11:31:49Z</dc:date>
    </item>
  </channel>
</rss>

