<?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: Modifying the Print dijit's  Hyperlink in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/modifying-the-print-dijit-s-nbsp-hyperlink/m-p/19304#M1753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; The code is great.&amp;nbsp;&amp;nbsp; I appreciate the example too.&amp;nbsp; I've been using 'print-complete' quite a bit.&amp;nbsp; I've been trying to see if I can access the url value associated with print complete.&amp;nbsp; So far, no luck.&amp;nbsp; I've tried using the example from ESRI below, but that returns and undefined object.&amp;nbsp; Has anyone else had luck getting the url value?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;require([&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;], function( ... ) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; printer.on('print-complete',function(evt){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('The url to the print image is : ' + evt.value.url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2013 14:25:32 GMT</pubDate>
    <dc:creator>DavidMarquardt</dc:creator>
    <dc:date>2013-11-19T14:25:32Z</dc:date>
    <item>
      <title>Modifying the Print dijit's  Hyperlink</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/modifying-the-print-dijit-s-nbsp-hyperlink/m-p/19302#M1751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working with the Print widget tool.&amp;nbsp; I'm trying to access and modify the Print Image Hyperlink.&amp;nbsp; This link appears after the print job is done, allowing the user to open a new window with the resulting image.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;While I can access the styling aspects of this hyperlink in css with .esriPrintout, I haven't found a similar parameter to use for scripting.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideally, I want to bypass the hyperlink:&amp;nbsp; having the new window with the image open automatically.&amp;nbsp; If this isn't possible, I???d like to have the hyperlink positioned on the side of the print button, rather than replace it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My questions are???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a parameter in scripting that deals with this hyperlink?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Should I be working with PrintTask, instead of with just the Print dijit? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone seen an esri print sample that doesn't use the hyperlink? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 18:08:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/modifying-the-print-dijit-s-nbsp-hyperlink/m-p/19302#M1751</guid>
      <dc:creator>DavidMarquardt</dc:creator>
      <dc:date>2013-11-07T18:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the Print dijit's  Hyperlink</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/modifying-the-print-dijit-s-nbsp-hyperlink/m-p/19303#M1752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If my understanding of your problem is right, you might be able to use jQuery to edit the action/style of the hyperlink of the print dijit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my function that create my print dijit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function createPrintDijit(printTitle)
 {
&amp;nbsp; var map = getMap();
&amp;nbsp; var layoutTemplate, templateNames, mapOnlyIndex, templates;
&amp;nbsp; 
&amp;nbsp; // create an array of objects that will be used to create print templates
&amp;nbsp; var layouts = [
&amp;nbsp; {
&amp;nbsp; "name": "print_layout_cadrin_letter_us",
&amp;nbsp; "label": "8.5x11 portrait (PDF)",
&amp;nbsp; "format": "pdf",
&amp;nbsp; "options": {
&amp;nbsp; "legendLayers": [], // empty array means no legend
&amp;nbsp; "titleText": ""
&amp;nbsp; }
&amp;nbsp; }];
&amp;nbsp; 
&amp;nbsp; // create the print templates, could also use dojo.map
&amp;nbsp; var templates = [];
&amp;nbsp; dojo.forEach(layouts, function(lo)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var t = new esri.tasks.PrintTemplate();
&amp;nbsp;&amp;nbsp; t.layout = lo.name;
&amp;nbsp;&amp;nbsp; t.label = lo.label;
&amp;nbsp;&amp;nbsp; t.format = lo.format;
&amp;nbsp;&amp;nbsp; t.layoutOptions = lo.options;
&amp;nbsp;&amp;nbsp; templates.push(t);
&amp;nbsp; });
&amp;nbsp; 
&amp;nbsp; printer = new esri.dijit.Print({
&amp;nbsp;&amp;nbsp; "map": map,
&amp;nbsp;&amp;nbsp; "templates": templates,
&amp;nbsp;&amp;nbsp; url : "http://"+cartotest+"/arcgis/rest/services/ExportWebMap/GPServer/Export%20Web%20Map"
&amp;nbsp; }, dojo.byId("print_button"));
&amp;nbsp; 
&amp;nbsp; printer.startup();
&amp;nbsp; printer.on('print-complete',function(evt){
&amp;nbsp;&amp;nbsp; console.log('Job completed'); // Here you can try to edit the hyperlink or add a new action with jQuery
&amp;nbsp; });
&amp;nbsp; printer.on('error',function(){
&amp;nbsp;&amp;nbsp; console.log('PRINT TIME-OUT ERROR');
&amp;nbsp; });
&amp;nbsp; printer.on('print-start',function(){
&amp;nbsp;&amp;nbsp; console.log('The job is starting.');
&amp;nbsp; });
 }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:46:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/modifying-the-print-dijit-s-nbsp-hyperlink/m-p/19303#M1752</guid>
      <dc:creator>YvanBérard</dc:creator>
      <dc:date>2021-12-10T20:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the Print dijit's  Hyperlink</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/modifying-the-print-dijit-s-nbsp-hyperlink/m-p/19304#M1753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; The code is great.&amp;nbsp;&amp;nbsp; I appreciate the example too.&amp;nbsp; I've been using 'print-complete' quite a bit.&amp;nbsp; I've been trying to see if I can access the url value associated with print complete.&amp;nbsp; So far, no luck.&amp;nbsp; I've tried using the example from ESRI below, but that returns and undefined object.&amp;nbsp; Has anyone else had luck getting the url value?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;require([&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;], function( ... ) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; printer.on('print-complete',function(evt){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('The url to the print image is : ' + evt.value.url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 14:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/modifying-the-print-dijit-s-nbsp-hyperlink/m-p/19304#M1753</guid>
      <dc:creator>DavidMarquardt</dc:creator>
      <dc:date>2013-11-19T14:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the Print dijit's  Hyperlink</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/modifying-the-print-dijit-s-nbsp-hyperlink/m-p/19305#M1754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;no harm in hacking on the widget, but i just wanted to throw it out there that &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/printtask-amd.html"&gt;PrintTask&lt;/A&gt;&lt;SPAN&gt; is the object in API for developers who want to get more fine grained control of their UI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 14:30:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/modifying-the-print-dijit-s-nbsp-hyperlink/m-p/19305#M1754</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-11-20T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the Print dijit's  Hyperlink</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/modifying-the-print-dijit-s-nbsp-hyperlink/m-p/19306#M1755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever figure how to get the output url? I'm trying to avoid taking on the print task if possible, as the print dijit basically gets me where I need except for this detail..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 21:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/modifying-the-print-dijit-s-nbsp-hyperlink/m-p/19306#M1755</guid>
      <dc:creator>NhuMai</dc:creator>
      <dc:date>2016-12-09T21:21:26Z</dc:date>
    </item>
  </channel>
</rss>

