<?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: PrintTemplate: change map title dynamically? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303869#M27897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I came across your earlier post. Not sure why examples are being dropped. All the past examples can be found at &lt;A href="https://developers.arcgis.com/en/downloads/" title="https://developers.arcgis.com/en/downloads/"&gt;SDK Downloads | ArcGIS for Developers&lt;/A&gt; . Under ArcGIS JS API, select version dropdown on the right, then select "Documentation."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be really nice to be able to easily set things up for a user to input a map title. Otherwise, may be better off just having no title at all to prevent a bunch of maps made all with the same title.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Oct 2015 01:07:37 GMT</pubDate>
    <dc:creator>DavidChrest</dc:creator>
    <dc:date>2015-10-24T01:07:37Z</dc:date>
    <item>
      <title>PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303867#M27895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a straightforward way for a user to change the map title text when printing a map instead of having it hard coded in the layoutOptions of the PrintTemplate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following but did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTML:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;div id="print_button"&amp;gt;&amp;lt;/div&amp;gt; Title:
&amp;nbsp; &amp;lt;input type="text" id="mapTitle" size="5" value="title" style="height: 18px; width:200px; border: 1px solid #759DC0;" /&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JS:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var MT = dom.byId("mapTitle").value


&amp;nbsp; // create a print template for each choice
&amp;nbsp; templates = array.map(templateNames, function (ch) {
&amp;nbsp; var plate = new PrintTemplate();
&amp;nbsp; plate.layout = plate.label = ch;
&amp;nbsp; plate.format = "PDF";
&amp;nbsp; plate.showAttribution = false;
&amp;nbsp; plate.exportOptions = {
&amp;nbsp; dpi: 150
&amp;nbsp; };
&amp;nbsp; plate.layoutOptions = {

&amp;nbsp; "titleText": MT,
&amp;nbsp; "scalebarUnit": "Miles"
&amp;nbsp; };
&amp;nbsp; return plate;
&amp;nbsp; });


&amp;nbsp; // create the print dijit
&amp;nbsp; printer = new Print({
&amp;nbsp; "map": map,
&amp;nbsp; "templates": templates,
&amp;nbsp; url: printUrl
&amp;nbsp; }, dom.byId("print_button"));
&amp;nbsp; printer.startup();
&amp;nbsp; }&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is very much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303867#M27895</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2021-12-11T14:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303868#M27896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not using the Print digit, I'm using PrintTask and PrintParameters instead.&amp;nbsp; It's been a while, but I think I started down that path specifically for increased flexibility like allowing the user to specify a title before printing.&amp;nbsp;&amp;nbsp; I think the print templates are already created before any print is ever submitted.&amp;nbsp; Initially, the input field is still blank, and it doesn't allow you to modify the print templates with a new title value when you the print job is submitted.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There used to be some decent examples using PrintTask and PrintParameters, but so many things have been dropped out of the documentation lately I can say what you might find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a map I published that has printing based on PrintTask/PrintParameters.&amp;nbsp; Maybe it will help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://ogi.oa.mo.gov/LEGIS/LegislativeDistrict/index.html" title="https://ogi.oa.mo.gov/LEGIS/LegislativeDistrict/index.html"&gt;Missouri Legislative Districts&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 21:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303868#M27896</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-10-23T21:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303869#M27897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I came across your earlier post. Not sure why examples are being dropped. All the past examples can be found at &lt;A href="https://developers.arcgis.com/en/downloads/" title="https://developers.arcgis.com/en/downloads/"&gt;SDK Downloads | ArcGIS for Developers&lt;/A&gt; . Under ArcGIS JS API, select version dropdown on the right, then select "Documentation."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be really nice to be able to easily set things up for a user to input a map title. Otherwise, may be better off just having no title at all to prevent a bunch of maps made all with the same title.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2015 01:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303869#M27897</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2015-10-24T01:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303870#M27898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can edit the map title in my print task: &lt;A href="https://github.com/csergent45/gisTemplate" title="https://github.com/csergent45/gisTemplate"&gt;csergent45/gisTemplate · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 13:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303870#M27898</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2015-10-26T13:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303871#M27899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I know you can download them, but in practice, going back into the folder where I have it is a pain.&amp;nbsp; I dowloaded SDK 3.11, which isn't too far back, but still contains the dropped examples, which I need to go back to periodically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm surprised that the Print widget doesn't have the functionality built in to allow the user to change a title.&amp;nbsp; I agree a whole bunch of print outs all titled the same, but with different content, isn't that useful.&amp;nbsp; It doesn't look like there is an event in Print that deals with the act of printing.&amp;nbsp; It's all just for the creation/destruction of the widget itself. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 13:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303871#M27899</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-10-26T13:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303872#M27900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link I provided above has the print task modified where you can change the title. &lt;A href="https://community.esri.com/migrated-users/2525"&gt;Kelly Hutchins&lt;/A&gt;​ feel free to add my code; which I had a lot of help with if you want to add it to any samples. All code I post on here is up for grabs by users or Esri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 14:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303872#M27900</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2015-10-26T14:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303873#M27901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;Yes, I see your code but at his point in my project I can't afford the time to completely rework my printing functionality. Your code looks good but looks like a heck of a lot just to be able to enter a map title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure would be nice if I can just pop in a textarea/input, etc:&lt;/P&gt;&lt;P&gt;HTML:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="_jivemacro_uid_14458814560439355 jive_macro_code jive_text_macro" data-renderedposition="127.99715423583984_7.997159004211426_912_15" jivemacro_uid="_14458814560439355" modifiedtitle="true"&gt;&lt;P&gt;&amp;lt;textarea id="MapTitle" style="width: 200px; height: 18px; border: 1px solid #759DC0;"&amp;gt; &amp;lt;/textarea&amp;gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in JS, simply have:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1445881494705563" data-renderedposition="183.45169067382812_7.997159004211426_912_15" jivemacro_uid="_1445881494705563"&gt;&lt;P&gt;var MT = document.getElementById("MapTitle").value;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the PrintTemplate layoutOptions:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="_jivemacro_uid_14458816163614011 jive_macro_code jive_text_macro" data-renderedposition="238.90623474121094_7.997159004211426_912_15" jivemacro_uid="_14458816163614011"&gt;&lt;P&gt;"titleText": MT&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that "titleText" element simply will not read a variable based on user input, which is easily done when, for example, setting buffer distances.&lt;/P&gt;&lt;P&gt;If MT = "Same Title for Every Single Map," then it appears in the map, but otherwise, nothing appears. Sure would be nice if there were some kind of quick fix for this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 17:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303873#M27901</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2015-10-26T17:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303874#M27902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know it's a more code, but I've found that the functions I use for printing are pretty universal.&amp;nbsp; I haven't had to rework them from one project to the next, I just copy/paste the same few set of functions and make sure I have the divs, input for title etc.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other benefit is that you can put breakpoints in the code and see exactly what's happening and when.&amp;nbsp; With the Print widget, there's not a place for those, or you would see what's happening in the sequence of template creation, print submittal etc.&amp;nbsp; It helped me to understand what we going on under the hood. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I can think of to try it to not create any print template or widget until after the user specifies a title.&amp;nbsp; Then you wouldn't be creating any templates/widgets using input from a field that was initially blank.&amp;nbsp; You'd have to destroy them or something after each print job, to continue to have the ability to change titles.&amp;nbsp; That sounds even clunkier than building your own set of printTask functions. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 18:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303874#M27902</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-10-26T18:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303875#M27903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Chris. Looks like you solved this popular problem. Much appreciated. Since, I am about out of time, I need to move on but I'll try your code in my next app, which I need to start soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 19:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303875#M27903</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2015-10-26T19:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303876#M27904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it! I tool a closer look at Chris' code in the link he mentions above. &lt;A href="https://github.com/csergent45/gisTemplate"&gt;https://github.com/csergent45/gisTemplate&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I commented out my JS and HTML portions related to my print widget, placed in his print HTML and JS segments, and everything worked wonderfully. I did some HTML fine tuning and I can now pop in any map title I want. His setup was also more concisely organized than mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/133380_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 20:37:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303876#M27904</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2015-10-26T20:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303877#M27905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to be clear, this still doesn't use Print widget, correct?&amp;nbsp; You're using code that looks like it, but is based on printTask and printParameters?&amp;nbsp; That's the only kind of solution I could ever figure out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had good luck with a deferred, since I wanted the PDF the open automatically when it was done generating (I had complaints from users when I offered a 'view printout' button).&amp;nbsp; Without the deferred, the PDF tried to open&amp;nbsp; before it's was done generating.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also had some problems with the print service returning old output.&amp;nbsp; It turns out the same few names are recycled and the print cache on the server cleared every XX minutes (don't remember the time). You'll see this especially in your testing, since you're likely to be hitting your print button frequently.&amp;nbsp; If you append the date to the name, it will also incorporate a timestamp so that doesn't happen.&amp;nbsp; &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; &amp;lt;!DOCTYPE html&amp;gt;
&amp;nbsp; &amp;lt;html&amp;gt;&amp;nbsp; 
&amp;nbsp; &amp;lt;head&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Basic Print with Print Task&amp;lt;/title&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="stylesheet" href="https://community.esri.com//js.arcgis.com/3.13/dijit/themes/claro/claro.css"/&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="https://community.esri.com//js.arcgis.com/3.13/esri/css/esri.css"/&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link type="text/css" rel="stylesheet" href="css/style.css"&amp;gt;


&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dojoConfig = { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parseOnLoad: false,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; async:true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp; &amp;lt;/script&amp;gt;


&lt;SPAN&gt;&amp;nbsp; &amp;lt;script type="text/javascript" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.13compact%2F" target="_blank"&gt;https://js.arcgis.com/3.13compact/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;
&amp;nbsp; &amp;lt;/head&amp;gt;
&amp;nbsp; 
&amp;lt;body class="claro"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var printServiceUrl = "/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"; 
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pathName = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fourserver.mo.gov" target="_blank"&gt;https://ourserver.mo.gov&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layouts = [];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var templates = [];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var template;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; require([ 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/on",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/dom",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/parser",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/map", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/config",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/urlUtils",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/tasks/PrintTask",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/tasks/PrintTemplate", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/tasks/PrintParameters",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/_base/array", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/form/Button",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/form/Select",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/registry",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/domReady!" ], 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on, dom,parser,Map, esriConfig,urlUtils, PrintTask,PrintTemplate,PrintParameters,arrayUtils,Button,Select,registry ) {
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parser.parse();
&amp;nbsp; 
&amp;nbsp; esriConfig.defaults.io.proxyUrl = pathName+"/proxy/proxy.ashx";//using proxy in [HOME] folder on server
&amp;nbsp; 

&amp;nbsp;&amp;nbsp; var map = new Map("mapDiv", { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-92.593, 38.5],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 7,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap:'topo'
&amp;nbsp;&amp;nbsp;&amp;nbsp; });&amp;nbsp;&amp;nbsp; 


 on(map,'load', setUpPrinting);


//---- functions for printing ----
function setUpPrinting() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; layouts = [{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "layoutName": "Letter ANSI A Landscape",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "label": "Landscape",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "format": "PDF",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "options": {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "legendLayers": [], // empty array for no legend
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "scalebarUnit": "Miles",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "authorText": "Missouri Office of Geospatial Information",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "titleText": ""
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "layoutName": "Letter ANSI A Portrait",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "label": "Portrait",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "format": "PDF",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "options": {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "legendLayers": [], // empty array for no legend
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "scalebarUnit": "Miles",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "authorText": "Missouri Office of Geospatial Information",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "titleText": ""
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "layoutName": "MAP_ONLY",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "label": "Map Only",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "format": "JPG",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "options": {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "legendLayers": [], // empty array for no legend
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "scalebarUnit": "Miles",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "titleText": "" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var templateList = registry.byId('templateSelect');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrayUtils.forEach(layouts, function(layout){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pTemplate = new PrintTemplate();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pTemplate.layout = layout.layoutName;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pTemplate.label = layout.label;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pTemplate.format = layout.format;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pTemplate.layoutOptions = layout.options;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pTemplate.showAttribution = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templates.push(pTemplate);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templateList.addOption({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: layout.label,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value: layout.label
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&amp;nbsp;&amp;nbsp; 
&amp;nbsp; registry.byId("btnPrintSubmit").on("click", submitPrint); 
}


&amp;nbsp;&amp;nbsp; function submitPrint(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; var deferred;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var printTitle = registry.byId("txtTitle").get("value");
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (printTitle.length &amp;lt; 1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printTitle = "Sample Map";
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; var printParams = new PrintParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp; printParams.map = map;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var status = dom.byId("printStatus");
&amp;nbsp;&amp;nbsp;&amp;nbsp; status.innerHTML = "Generating ...";
&amp;nbsp;&amp;nbsp;&amp;nbsp; var e = registry.byId("templateSelect");
&amp;nbsp;&amp;nbsp;&amp;nbsp; var choice = e.value;
&amp;nbsp;&amp;nbsp;&amp;nbsp; template = templates[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (e.value) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case "Portrait":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; template = templates[1];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case "Landscape":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; template = templates[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; template = templates[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; printParams.template = template;
&amp;nbsp;&amp;nbsp;&amp;nbsp; template.layoutOptions.titleText = printTitle;
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var printTask = new PrintTask(pathName+printServiceUrl, printParams);
&amp;nbsp;&amp;nbsp;&amp;nbsp; deferred = printTask.execute(printParams);
&amp;nbsp;&amp;nbsp;&amp;nbsp; deferred.addCallback(function(response){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var d = new Date();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dateTime = d.getTime();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var outputUrl = response.url + '?time=' + dateTime;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status.innerHTML = "";
&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; console.log("outputURL: " + outputUrl);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var select = registry.byId("templateSelect");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectOptions = select.getOptions();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select.set("value", "Choose Page Format");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.open(outputUrl, "_blank");
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; deferred.addErrback(function(error){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Print Task Error = " + error);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status.innerHTML = "Error generating printout, try again";
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp; }
});
&amp;lt;/script&amp;gt; 


&amp;lt;div id="mainWindow" data-dojo-type="dijit/layout/BorderContainer" design="headline" style="width:100%; height:100%;"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="banner" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="header"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt; Enter a Title for Your Map:&amp;lt;/b&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="printContent"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input id="txtTitle" data-dojo-type="dijit/form/TextBox" placeHolder="Enter a map title" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;select id='templateSelect' data-dojo-type='dijit/form/Select'&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="choose"&amp;gt;Choose Page Format&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/select&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;button id="btnPrintSubmit" data-dojo-type="dijit/form/Button"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Submit
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="printStatus"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div data-dojo-type="dijit/layout/ContentPane" id="centerPane" data-dojo-props="region:'center'"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="mapDiv" data-dojo-type="dijit/layout/ContentPane"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;
&amp;nbsp; &amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:33:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303877#M27905</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2021-12-11T14:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303878#M27906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it certainly looks like his code is mostly utilizing printTask and printParameters. Have a look at his link on GitHub. You will want to look at &lt;A href="https://github.com/csergent45/gisTemplate/blob/master/simpleMap.html"&gt;https://github.com/csergent45/gisTemplate/blob/master/simpleMap.html&lt;/A&gt; and &lt;A href="https://github.com/csergent45/gisTemplate/blob/master/js/reactor.js"&gt;https://github.com/csergent45/gisTemplate/blob/master/js/reactor.js&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The print code is not that much, really. This does all I need for now. Having the PDF open automatically is one step better, but for now, I'm just glad this works. We use Server 10.3. I will definitely look at your code above. Looks like we have things covered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 23:44:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303878#M27906</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2015-10-26T23:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate: change map title dynamically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303879#M27907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris thanks for posting this code. The print task is still very useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 22:37:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-change-map-title-dynamically/m-p/303879#M27907</guid>
      <dc:creator>ClintonBallandis1</dc:creator>
      <dc:date>2018-09-26T22:37:27Z</dc:date>
    </item>
  </channel>
</rss>

