Hello,
In this Print Widget documentation , it says we can provide editable settings for the title:
How to make the "Title" to show as the map title in printed map? What should be added in the print layout template?
Thanks
Rose
More info:
In my print layout template, I have a dynamic titleText like this:
<dyn type="layout" property="metadata" attribute="title" emptyStr=""/>
But the title entered in Print Widget did not pass into the template.
Hi @RoseZhou2 ,
It should work.
Can you check the Get Layout Template Info task of your print service? You can access it using a URL with the following format:
https://webadaptorhost.domain.com/webadaptorname/rest/services/Utilities/PrintingTools/GPServer/Get Layout Templates Info Task
Execute the task, and see if the "hasTitleText" is true in the layout options.
Shengdi
@ShengdiZhang Thanks for your response!
I confirm that the "hasTitleText" is true in the layout options. I tested the same print service using a Web AppBuilder application, the entered "title" in the Print widget was shown up correctly in the printed PDF. It seems that it's an issue in ExB.
Regards
I tested the ExB print widget, using ESRI's default print service, and the map title changes when I enter a different name in the Title input box.
Would you mind sharing your print service with me (via Direct Message) so I can take a look?
Thanks,
Thanks @ShengdiZhang for looking into this!
I added a new Print widget in my application, then the map title changed based on what's user's input in the Print widget. So it must be cached somewhere.
But I encountered a new issue. The "Include legend" checkbox can't be turned on anymore. Please see the screen shot below. Not sure if it's related.
Shengdi,
Having the same issue, but noting my "hastitletext" : false, how do I change this?
Best,
Dan
Edit: was able to correct this by changing the DynText to reference the metadata:
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.