<?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 : submit event in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-submit-event/m-p/1220525#M78945</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested with adding some layers after Print Submit event, and they don't seem to be sent to the Print Job.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const printWidget = new Print();
const layer1 = "some dynamic layer";

printWidget.on("submit", function(results){
  mapView.add("layer1");
  
  //Can it wait for it to render before sending to Export Map Service ?
  await mapview.render(); 

});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a pre-submit event that can wait for map to load the most recent layer and then sent to a Export Map Service ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 22:51:41 GMT</pubDate>
    <dc:creator>shay-geo</dc:creator>
    <dc:date>2022-10-10T22:51:41Z</dc:date>
    <item>
      <title>Print Widget : submit event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-submit-event/m-p/1220525#M78945</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested with adding some layers after Print Submit event, and they don't seem to be sent to the Print Job.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const printWidget = new Print();
const layer1 = "some dynamic layer";

printWidget.on("submit", function(results){
  mapView.add("layer1");
  
  //Can it wait for it to render before sending to Export Map Service ?
  await mapview.render(); 

});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a pre-submit event that can wait for map to load the most recent layer and then sent to a Export Map Service ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 22:51:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-submit-event/m-p/1220525#M78945</guid>
      <dc:creator>shay-geo</dc:creator>
      <dc:date>2022-10-10T22:51:41Z</dc:date>
    </item>
  </channel>
</rss>

