<?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: Problem accessing custom text elements in my print service in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445511#M17220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had an open ticket with them, but the choice of synchronous vs. asychronous wasn't suggested as a cause to my problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jun 2013 19:09:29 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2013-06-12T19:09:29Z</dc:date>
    <item>
      <title>Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445503#M17212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a copy of the basic exportmaptemplates to make my own custom layout.&amp;nbsp; I needed to add both subtitles and descriptive text to my layout.&amp;nbsp; I added two new text elements and gave them element names of subTitleText and descripText.&amp;nbsp; Just to have something to see on my map, because I'm going to change these programmatically, I've given them a text value the same as the element name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't receive any errors when I published this print service, so I'm thinking the service itself is OK?&amp;nbsp; I'm having some problems with the syntax of referencing these new elements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the JS API, and in Firebug, I can see the call getting made to the print service.&amp;nbsp; It includes the custom text elements by their element names, with the values that got assigned in my code.&amp;nbsp; I am getting an error in my JS code, but if I copy/paste the string that's getting submitted to the print URL, it does generate output.&amp;nbsp; It just doesn't include the new values I'm assigning for subTitleText and descripText.&amp;nbsp; It's still just the default string I put in as a placeholder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; {"mapOptions":{"showAttribution":true,"extent":{"xmin":-10391169.27082235,"ymin":4469925.719133955,"xmax":-10383726.21519309,"ymax":4476250.883224546,"spatialReference":{"wkid":102100}},"spatialReference":{"wkid":102100},"scale":36111.90964300888},"operationalLayers":[{"id":"streetMap","title":"streetMap","opacity":1,"minScale":591657527.591555,"maxScale":1128.497176,"url":"http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"},{"id":"countyLayer","title":"countyLayer","opacity":1,"minScale":0,"maxScale":0,"url":"https://ogitest.oa.mo.gov/ArcGIS/rest/services/BaseMap/county_simple/MapServer","visibleLayers":null,"layers":[]},{"id":"status_stateOwnParcelLayer","title":"status_stateOwnParcelLayer","opacity":1,"minScale":0,"maxScale":0,"url":"https://ogitest.oa.mo.gov/ArcGIS/rest/services/StateOwnedParcels/MapServer","visibleLayers":null,"layers":[]},{"id":"allParcelLayer","title":"allParcelLayer","opacity":1,"minScale":0,"maxScale":0,"url":"https://ogitest.oa.mo.gov/ArcGIS/rest/services/allParcels/MapServer","visibleLayers":null,"layers":[]},{"id":"stateOwnFeaturelayer","url":"https://ogitest.oa.mo.gov/ArcGIS/rest/services/StateOwnedParcels/MapServer/1","title":"stateOwnFeaturelayer","minScale":1155581,"maxScale":0,"layerDefinition":{"drawingInfo":{"renderer":{"type":"simple","label":"","description":"","symbol":{"color":[255,211,127,255],"outline":{"color":[110,110,110,255],"width":0.4,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}}}}},{"id":"mapDiv_graphics","minScale":0,"maxScale":0,"featureCollection":{"layers":[{"layerDefinition":{"name":"polygonLayer","geometryType":"esriGeometryPolygon"},"featureSet":{"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-10387278.9405581,4472649.14459539],[-10387279.6215167,4472629.95429174],[-10387325.6367082,4472631.12368592],[-10387325.6625458,4472633.30616325],[-10387325.8529157,4472641.81899572],[-10387325.6180643,4472650.3308426],[-10387278.9405581,4472649.14459539]]],"spatialReference":{"wkid":102100}},"symbol":{"color":[33,237,254,13],"outline":{"color":[33,237,254,255],"width":2.25,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}}]}}]}}],"exportOptions":{"outputSize":[800,1100],"dpi":96},"layoutOptions":{"titleText":"just something","customTextElements":{"descripText":"BEG 192.1 FT S SE COR KANSAS &amp;amp; KEARNEY STS S 50 FT E 160 FT N 50 FT W TO BEG11/29/22 (EX W 20 FT)","subTitleText":" 2331 N KANSAS AVE"},"scaleBarOptions":{"metricUnit":"Kilometers","metricLabel":"km","nonMetricUnit":"Miles","nonMetricLabel":"mi"},"legendOptions":{"operationalLayers":[]}}}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I misunderstanding how to include these custom text elements?&amp;nbsp; Should they not be nested within the layoutOptions the way I have them?&amp;nbsp; Sorry about the big long JSON string, that's just the way it came out when I copied from Firebug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 19:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445503#M17212</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2013-06-05T19:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445504#M17213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tracy, can't comment anything on that right now, but I had some issues with printing a legend with the PrintingTools service in 10.1 myself and all the problems I had were solved with the SP1. Have you installed the one?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 20:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445504#M17213</guid>
      <dc:creator>AlexeyTereshenkov</dc:creator>
      <dc:date>2013-06-06T20:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445505#M17214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know what else might have been fixed in SP1, but it is installed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 16:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445505#M17214</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2013-06-07T16:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445506#M17215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tracy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Custom text elements need to be defined as separate objects, then they need to be put in an array before assigning that array to the layoutOptions.customTextElements property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jsapi/printtemplate.html#layoutoptions" rel="nofollow noopener noreferrer" target="_blank"&gt;http://developers.arcgis.com/en/javascript/jsapi/printtemplate.html#layoutoptions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is a snippet of how JS code should look like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="font-family:courier new;"&gt;template.layoutOptions = {
&amp;nbsp; titleText: "just something",
&amp;nbsp; customTextElements: [
&amp;nbsp;&amp;nbsp;&amp;nbsp; { "descripText": "BEG 192.1 FT S SE COR KANSAS &amp;amp; KEARNEY STS S 50 FT E 160 FT N 50 FT W TO BEG11/29/22 (EX W 20 FT" },
&amp;nbsp;&amp;nbsp;&amp;nbsp; { "subTitleText": " 2331 N KANSAS AVE" }
&amp;nbsp; ]
};&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the equivalent JSON gets sent to a Printing service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="font-family:courier new;"&gt;"layoutOptions": {
&amp;nbsp; "titleText": "just something",
&amp;nbsp; "customTextElements": [
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "descripText": "BEG 192.1 FT S SE COR KANSAS &amp;amp; KEARNEY STS S 50 FT E 160 FT N 50 FT W TO BEG11/29/22 (EX W 20 FT)"
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "subTitleText": " 2331 N KANSAS AVE"
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; ]
}&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445506#M17215</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2021-12-11T19:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445507#M17216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's how I have it, except that I have a little punctuation problem.&amp;nbsp; I'm trying to update the customTextElements in onPrintStart, right before the print is submitted.&amp;nbsp; When I do, I end up generating&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
"layoutOptions":{"titleText":"my map title",
"customTextElements":[
{"legalDescriptionText":"BEG 82.5 FT E NE COR BENTON &amp;amp; WALNUT STS E 82.5 FT N 267 FT W 82.5 FT S TO BEG"},
{"subTitleText":" E WALNUT ST"}]
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a real hard time spotting the typo, but I &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;think&lt;/SPAN&gt;&lt;SPAN&gt; I'm missing an ending curly brace to close out value of layoutOptions.&amp;nbsp; Since I'm defining this programmatically, I haven't found the line yet where I can correct this.&amp;nbsp; I have posting on the JS forum too.&amp;nbsp; I'm still trying to decide if my service is OK. I'm having a really hard time testing it without programming something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found a posting to modify the template to dynamically alter the title, so the user could enter what they wanted.&amp;nbsp; This added the line&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
this.templates&lt;I&gt;.layoutOptions.titleText = printTitle;
&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I wanted to go back and also add customTextElements. I ended up with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(printer, "onPrintStart", function(){
//console.log("onPrintStart: fullLegalString = " + fullLegalString + "print_subTitle = " + print_subTitle);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var printTitle = dojo.byId("txtTitle").value;
&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; for (var i = 0; i &amp;lt; templates.length; i++) {
&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; this.templates&lt;I&gt;.layoutOptions.titleText = printTitle;
&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; this.templates&lt;I&gt;.layoutOptions.customTextElements =[
&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; {"legalDescriptionText": fullLegalString}, 
&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; {"subTitleText": print_subTitle} ];&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; });
&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Maybe instead of trying to define titleText and customTextElements separately, I should try defining the entire layoutOptions and concatenate it all together somehow.&amp;nbsp; Otherwise I'm still chasing down a curly brace (I think ...)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445507#M17216</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2021-12-11T19:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445508#M17217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm having a real hard time spotting the typo, but I &lt;SPAN style="font-style:italic;"&gt;think&lt;/SPAN&gt; I'm missing an ending curly brace to close out value of layoutOptions. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not an expert in JS, but i thought you'd have got an run-time error if you had any missing ending curly braces. I'm not sure which IDE you are using to write JS code. But as you know you can search the web with "Javascript lint" and use one of those online lint apps to find those syntactical errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And as always, as you did in the other case, you can use &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;console.log(this.templates&lt;SPAN style="font-style:italic;"&gt;.layoutOptions)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt; to make sure that object looks good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm still trying to decide if my service is OK. I'm having a really hard time testing it without programming something.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;in order to find out whether you service is ok, you can go to the REST end point of your printing service's task, paste the JSON generated by your app (&lt;I&gt;if you need to fix the missing braces or something like that, fix it, you use some sites like jsonlint.org to check the validity of the json) in ExportWebMap_As_JSON text box, specify the name of the Layout Template and click Execute. &lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing that I noticed (not a bug or error) is that in your code, you are updating layoutOptions for all templates! do you need &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; to do that? If I'm not mistaken, I think you should update layoutOptions only for the selected template, not all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 16:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445508#M17217</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-06-11T16:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445509#M17218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes I mean to have the same custom text elements for both templates.&amp;nbsp; I don't have this fully populated because I'm just working on a landscape printout, but I'll need a Portrait equivalent with the exact same content.&amp;nbsp; The user will have to determine which orientation works best for the particular screen content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I switched my print service from Asynchronous to Synchronous and that seems to have made the difference.&amp;nbsp; (Although I still think it's gremlins.)&amp;nbsp; In the instructions for authoring it suggested you can use either for your Execution Method.&amp;nbsp; I didn't find that was the case!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 18:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445509#M17218</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2013-06-11T18:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445510#M17219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I switched my print service from Asynchronous to Synchronous and that seems to have made the difference. (Although I still think it's gremlins.) In the instructions for authoring it suggested you can use either for your Execution Method. I didn't find that was the case!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hmm... that shouldn't make any difference. You should use async only when you think it may take longer to generate output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd recommend you to contact Esri Tech Support to submit an incident and have them check why async vs sync makes all the difference in your case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 18:36:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445510#M17219</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-06-12T18:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445511#M17220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had an open ticket with them, but the choice of synchronous vs. asychronous wasn't suggested as a cause to my problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 19:09:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445511#M17220</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2013-06-12T19:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445512#M17221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was told by ESRI that 'it shouldn't matter whether my print service was defined as synchronous or asynchronous'.&amp;nbsp; However, when I change my service to be synchronous, it started working for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 19:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445512#M17221</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2013-06-20T19:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445513#M17222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tracy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the web app you were building, were the items descripText and subTitleText being entered by the user at run-time just before the print is being created (maybe with text boxes or the HTML5/Javascript equivalent)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried using customTextElements to place a selected records data from a query onto the print template?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 11:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445513#M17222</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-06-05T11:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445514#M17223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my final solution, I had all those elements incorporated.&amp;nbsp; The user has the opportunity to enter in a title and subtitle.&amp;nbsp; If they don't, I have default strings based on some variables I declared earlier, like the name of the county.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Generally the workflow is that the user has identified a particular feature, and details about it is what they want to appear in a printout.&amp;nbsp; I'm storing several variables from that task initially.&amp;nbsp; If they choose to enter their own title/subtitle, those will be used instead of the variables I've stored.&amp;nbsp;&amp;nbsp;&amp;nbsp; For the custom text, I'm pulling data from multiple attributes and concatenating them into a single string.&amp;nbsp; That's what I'm using to populate the customTextElement that I'd previous defined in my custom print template.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 12:32:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445514#M17223</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-06-05T12:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem accessing custom text elements in my print service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445515#M17224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tracy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I've read and experimented with, it seems that the customTextElements are set at start-up when the application is reading through the available print templates in the print service.&amp;nbsp; Since the enduser has not set the information for the customTextElements yet, do you need to trap the exportwebmap_as_json before it goes to the print service so you can substitute the customTextElements set at start-up with the variables that the user has defined in the application since start-up?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I setup the customTextElement to read the value from a textbox where the user enters a value, but the print template was always only using the default value for this textbox that is available at start-up.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 19:03:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-accessing-custom-text-elements-in-my-print/m-p/445515#M17224</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-06-10T19:03:06Z</dc:date>
    </item>
  </channel>
</rss>

