<?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 PrintTask - How to set the ExportWebMap JSON on PrintTask in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-how-to-set-the-exportwebmap-json-on/m-p/350363#M32458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to figure out how to print without a map UI.&amp;nbsp; I want to save ExportWebMap JSON out to a file for later use.&amp;nbsp; The requirement is to be able to select several saved maps to print from a list (so no map UI).&amp;nbsp; My plan was to save the ExportWebMap JSON when they save the map initially so I can just retrieve it and send it in the PrintTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have seen posts related to this such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/65530-Best-method-for-forming-JSON-for-Export-Web-Map-(Printing)-task"&gt;http://forums.arcgis.com/threads/65530-Best-method-for-forming-JSON-for-Export-Web-Map-(Printing)-task&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and looks like I will have to generate my own ExportWebMap JSON and post it to the GIS server for export.&amp;nbsp; Any shortcuts on generating the ExportWebMap JSON?&amp;nbsp; Another post mentioned using printTask._getPrintDefinition() just for getting some of the JSON, but that throws me an error "Unable to get property layerIds of undefined or null reference".&amp;nbsp; Any other things I could try to get some of the ExportWebMap JSON or am I stuck with an all manual creation of it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if there are any ideas out there or if anyone has implemented something similar.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2014 19:50:20 GMT</pubDate>
    <dc:creator>DK5</dc:creator>
    <dc:date>2014-06-05T19:50:20Z</dc:date>
    <item>
      <title>PrintTask - How to set the ExportWebMap JSON on PrintTask</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-how-to-set-the-exportwebmap-json-on/m-p/350363#M32458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to figure out how to print without a map UI.&amp;nbsp; I want to save ExportWebMap JSON out to a file for later use.&amp;nbsp; The requirement is to be able to select several saved maps to print from a list (so no map UI).&amp;nbsp; My plan was to save the ExportWebMap JSON when they save the map initially so I can just retrieve it and send it in the PrintTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have seen posts related to this such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/65530-Best-method-for-forming-JSON-for-Export-Web-Map-(Printing)-task"&gt;http://forums.arcgis.com/threads/65530-Best-method-for-forming-JSON-for-Export-Web-Map-(Printing)-task&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and looks like I will have to generate my own ExportWebMap JSON and post it to the GIS server for export.&amp;nbsp; Any shortcuts on generating the ExportWebMap JSON?&amp;nbsp; Another post mentioned using printTask._getPrintDefinition() just for getting some of the JSON, but that throws me an error "Unable to get property layerIds of undefined or null reference".&amp;nbsp; Any other things I could try to get some of the ExportWebMap JSON or am I stuck with an all manual creation of it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if there are any ideas out there or if anyone has implemented something similar.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 19:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-how-to-set-the-exportwebmap-json-on/m-p/350363#M32458</guid>
      <dc:creator>DK5</dc:creator>
      <dc:date>2014-06-05T19:50:20Z</dc:date>
    </item>
  </channel>
</rss>

