<?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: customTextElements and esri/widgets/Print in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532115#M49594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I trying to do is use the esri/widgets/print in 4.10 with the&amp;nbsp;a&amp;nbsp;&lt;SPAN style="color: #c41a16; background-color: #f8f8f8;"&gt;esri/tasks/support/PrintTemplate so I can use the layoutOption and CustomTextElements.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new &lt;SPAN&gt;esri.widgets.print&lt;/SPAN&gt;({&lt;BR /&gt; view: view,&lt;BR /&gt; templateOptions: {&lt;BR /&gt; title: "Buncombe County, NC",&lt;BR /&gt; author: "Buncombe County",&lt;BR /&gt; copyright: "Buncombe County",&lt;BR /&gt; legendEnabled: false,&lt;BR /&gt; &lt;BR /&gt; layoutOptions:&lt;BR /&gt; {&lt;BR /&gt; customTextElements: [{&lt;BR /&gt; "info": "1234"&lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; // specify your own print service&lt;BR /&gt; printServiceUrl: "https://--/arcgis/rest/services/ExportWebMap_VT/GPServer/Export%20Web%20Map"&lt;BR /&gt; }),&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2019 20:01:05 GMT</pubDate>
    <dc:creator>ViktoriaMagnis</dc:creator>
    <dc:date>2019-05-21T20:01:05Z</dc:date>
    <item>
      <title>customTextElements and esri/widgets/Print</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532113#M49592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to use&amp;nbsp;customTextElements with the&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;CODE class="" style="color: #c41a16; background: none; border: 0px; font-size: 0.875em;"&gt;esri/widgets/Print ?&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;CODE class="" style="color: #c41a16; background: none; border: 0px; font-size: 0.875em;"&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;CODE class="" style="color: #c41a16; background: none; border: 0px; font-size: 0.875em;"&gt;Thanks&amp;nbsp;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;CODE class="" style="color: #c41a16; background: none; border: 0px; font-size: 0.875em;"&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;CODE class="" style="color: #c41a16; background: none; border: 0px; font-size: 0.875em;"&gt;Vicki&amp;nbsp;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 18:18:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532113#M49592</guid>
      <dc:creator>ViktoriaMagnis</dc:creator>
      <dc:date>2019-05-16T18:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: customTextElements and esri/widgets/Print</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532114#M49593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vicki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;There are a number of thread on this. Here is the one I think you need to concentrate on.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/184166-how-to-print-selected-attributes-on-parcels-in-wab-application"&gt;https://community.esri.com/thread/184166-how-to-print-selected-attributes-on-parcels-in-wab-application&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 18:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532114#M49593</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-05-16T18:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: customTextElements and esri/widgets/Print</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532115#M49594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I trying to do is use the esri/widgets/print in 4.10 with the&amp;nbsp;a&amp;nbsp;&lt;SPAN style="color: #c41a16; background-color: #f8f8f8;"&gt;esri/tasks/support/PrintTemplate so I can use the layoutOption and CustomTextElements.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new &lt;SPAN&gt;esri.widgets.print&lt;/SPAN&gt;({&lt;BR /&gt; view: view,&lt;BR /&gt; templateOptions: {&lt;BR /&gt; title: "Buncombe County, NC",&lt;BR /&gt; author: "Buncombe County",&lt;BR /&gt; copyright: "Buncombe County",&lt;BR /&gt; legendEnabled: false,&lt;BR /&gt; &lt;BR /&gt; layoutOptions:&lt;BR /&gt; {&lt;BR /&gt; customTextElements: [{&lt;BR /&gt; "info": "1234"&lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; // specify your own print service&lt;BR /&gt; printServiceUrl: "https://--/arcgis/rest/services/ExportWebMap_VT/GPServer/Export%20Web%20Map"&lt;BR /&gt; }),&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 20:01:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532115#M49594</guid>
      <dc:creator>ViktoriaMagnis</dc:creator>
      <dc:date>2019-05-21T20:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: customTextElements and esri/widgets/Print</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532116#M49595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Yes the 4.x API supports layoutOptions and customTextElements:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;layoutOptions&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  titleText&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"My Print"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
  authorText&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Sam"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
  copyrightText&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"My Company"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
  scalebarUnit&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Miles"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;// the following text elements must&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;// exist in your print service&lt;/SPAN&gt;
  customTextElements&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
     &lt;SPAN class="string token"&gt;"description"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"My description"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
     &lt;SPAN class="string token"&gt;"location"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"My Location"&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532116#M49595</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T23:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: customTextElements and esri/widgets/Print</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532117#M49596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using that code but it's still not working&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;widgetPrint = new Expand({&lt;BR /&gt; content: new Print({&lt;BR /&gt; printTemplate: PrintTemplate,&lt;BR /&gt; view: view,&lt;BR /&gt; templateOptions: {&lt;BR /&gt; title: "Buncombe County, NC",&lt;BR /&gt; author: "Buncombe County",&lt;BR /&gt; copyright: "Buncombe County",&lt;BR /&gt; legendEnabled: false&lt;BR /&gt;},&lt;BR /&gt; layoutOptions: {&lt;BR /&gt; titleText: "My Print",&lt;BR /&gt; authorText: "Sam",&lt;BR /&gt; copyrightText: "My Company",&lt;BR /&gt; scalebarUnit: "Miles",&lt;BR /&gt; // the following text elements must&lt;BR /&gt; // exist in your print service&lt;BR /&gt; customTextElements: [{&lt;BR /&gt; "info": "My description"&lt;BR /&gt; &lt;BR /&gt; }]&lt;BR /&gt; },&lt;BR /&gt; // specify your own print service&lt;BR /&gt; printServiceUrl: "https://--/arcgis/rest/services/ExportWebMap_VT/GPServer/Export%20Web%20Map"&lt;BR /&gt; }),&lt;BR /&gt; view: view,&lt;BR /&gt; expandTooltip: "print map",&lt;BR /&gt; group: "top-left"&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 17:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532117#M49596</guid>
      <dc:creator>ViktoriaMagnis</dc:creator>
      <dc:date>2019-05-22T17:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: customTextElements and esri/widgets/Print</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532118#M49597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Vicki,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;Sorry to have misguided you on this. The print widget does not have a PrintTemplate so you can not set the&amp;nbsp;&lt;SPAN&gt;PrintTemplate.&lt;/SPAN&gt;&lt;/SPAN&gt;layoutOptions.&amp;nbsp;As far as I know, to use customTextElements then you have to use the PrintTask and PrintTemplate, not the PrintWidget.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 19:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customtextelements-and-esri-widgets-print/m-p/532118#M49597</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-05-22T19:01:01Z</dc:date>
    </item>
  </channel>
</rss>

