Hi Tanu,
That is correct. The custom text elements do show up on the output maps, but not in the WAB print widget.
Unfortunately the print service is not public. Executing the Get Layout Templates from the REST endpoint returns the correct JSON eg
{
"results": [{
"paramName": "Output_JSON",
"dataType": "GPString",
"value": [
{
"layoutOptions": {
"hasAuthorText": false,
"hasCopyrightText": false,
"hasTitleText": true,
"hasLegend": true,
"customTextElements": [
{"Test": "Text"},
{"SubTitle": "Text"}
]
},
"pageSize": [
296.92659385318774,
209.97375328083996
],
"layoutTemplate": "A4_Landscape",
"activeDataFrameSize": [
273.05060000000003,
146.0503
]
},
and the script tool was pointing to the correct folder when I ran it.
I have used Fiddler to record the requests and get a 'no entry' sign next to the request in question which apparently means Session was aborted by the client, Fiddler, or the Server.
# | Result | Protocol | Host | URL | Body | Caching | Content-Type | Process | Comments | Custom |
---|
506 | 200 | HTTPS | cp-gis-iis.infprod.tca | /arcgis/rest/services/Geoprocessing_Services/WorkingTemplates/GPServer/Get%20Layout%20Templates%20Info/execute?f=json | 495 | private, must-revalidate, max-age=0 | text/plain;charset=utf-8 | iexplore:3740 | | |
I'm an amateur with Fiddler, so don't know how to delve deeper.
Having a look in the Chrome web traffic information it seems that the Get Layout Info task is timing out: n {message: "Timeout exceeded", response: Object, status: undefined, responseText: undefined, xhr: XMLHttpRequest…} It does take a long time for the print widget to populate the layout information. I have tried increased the times and pooling in the Service Properties, but to no avail. I have tried publishing different print services, but have the same issue with them all. Have you any ideas what might be causing this and how to solve it?
Thanks,
Helen