Select to view content in your preferred language

Web AppBuilder Print widget and Layers

7655
18
04-28-2016 07:42 AM
FlorianCADOZ
Regular Contributor

Hi everyone,

I've got a problem with the print widget ! When I try to "print" a pdf (or something else) the graphicLayers are shown but not the Layers...

When I use a proxy, layer are just forgotten, and when i tried without, i get an error (screen joined)

I really have no idea how to do ...

Thank you in advance

Tags (1)
0 Kudos
18 Replies
RobertScheitlin__GISP
MVP Emeritus

Florian,

  Do you see errors in the browsers web console? Have setup the serverUrl(s) for the map service machines that the print uses?

0 Kudos
FlorianCADOZ
Regular Contributor

Hello Robert,

No error in the console but the problem doesn't come with the imported graphicsLayer. So I guess this occurs because of the HTTPS of the queried services I try to print and that are displayed as Layers.

"Have setup the serverUrl(s) for the map service machines that the print uses?"

hun ... I didn't know that I have to configure something in the print widget... What should I do exactly ?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Florian,

  Did you set the serverUrls in the proxy.config to use https in their url? Is you print service using http or https?

0 Kudos
FlorianCADOZ
Regular Contributor

Robert,

huuum .. no, i didn't do anything like that ...
I'm discovering the associated doc : Use proxy—Web AppBuilder for ArcGIS | ArcGIS

I didn't need that until now !

So I have to modify the main config.json with a print service url and the config.json of the print widget ?

I my happiness could be there ? Print Widget not working for layers that require a proxy url

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Florain,

  I was not saying that you need to secure your print service. Actually if you do secure your print service you will have another issue. I was just asking if your had already secured your print service as that is a big issue.

0 Kudos
FlorianCADOZ
Regular Contributor

Oh ... a ... I really don't know ...
The URL that seems to be used is this one : https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%...

But I don't know where I have to setup this url !

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Florian,

  So it looks like the first thing you need to do is configure the print widget to use your own print service instead of the generic esri utilities one.

RickeyFight
MVP Regular Contributor

Florian,

Until you get yours up and running, you could use this one.

https://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%...

RebeccaStrauch__GISP
MVP Emeritus

For printing, I usually have to set up a proxy, although it is basically an "empty" proxy.  it has to do with the length of what needs to be sent (push vs get?)

this is an older thread, can't find the one I wanted, but I have some info javascript Print Secured Service