Using the stock print widget in WAB, the prints fail with a red "Error, try again" message in the widget print queue. I am using an arcgis server print service that works in the web map viewer in AGOL. In WAB the template dropdown list is showing the templates from the custom print service so it is connected in some way. But it just won't print. Ideas?
Charles,
what does the browsers web console say when the failure occurs?
It says Cross-Origin Request Blocked, blah blah blah... CORS header
'Access-Control-Allow-Origin' missing. But I enabled it when I set up arc
server. It works with the stock map in map viewer, just not with my WAB app
or any of the web maps I have in my content.
On Wed, Aug 26, 2015 at 4:17 PM, Robert Scheitlin, GISP <geonet@esri.com>
I was reminded yesterday of an old comment I made on another discussion re: the print issue. I'm not sure if this will help, and I haven't tried it with WAB specifically, but it did work for our other JS-api custom printing.
Re: javascript Print Secured Service
For use, whether or not we were accessing secure services, we had to have a, more or less, empty procy just for the printing.
Thanks for your response, Rebecca. But that is a bit over my head
unfortunately. Unless you had time to walk me through it step by step...:-)
But curiously, the print widget is working with new apps that I create with
WAB, just not anything I had created previously (before changing the print
service URL to our arc server). So easier to just recreate the app.. but I
still can't get a decent print. First and foremost the legend symbology for
polygons is blanked out in the legend. And when I use the arc server URL
with print plus it totally fouls up the scale and tops out at 1:100. I know
that's Larry's but... all I need is the print plus layout working like it's
supposed to, with our logo and the ability to change scale units on the bar
(and the polys symbolized of course..). Is that too much to ask from the
web?
Charles, sorry, I haven't dove into Larry's print-plus enough lately to give any hints (but I see you thru the question our to him too). Besides setting up the proxy for general printing, I set up custom mxd's and published them as a gp service for our custom printing. I never was able to get a good looking legend to work as I wanted so I created a canned legend-graphic for those mxd's in the GP service. Probably not anything that will help iwith your question, but thought I'd throw it out there.
No because I can't really predict how many items/how much space the legend
is going to require in the user's map - we have dozens of potential map
products etc. and even at the pre-roll out teaser meeting they were
complaining about the lack of flexibility compared to the desktop based
systems they have now. So I like the way print plus seems to auto-size the
elements but I need that logo and just a little bit more flexibility. If
we hadn't spent so much on ESRI I would just get a vendor to do a one-off.
Or pay one of the three people who speak English and know something about
WAB (none of them with ESRI) to fix this thing or teach me the programming
I need to get it to work. Thanks again for your help - cob
On Thu, Aug 27, 2015 at 4:41 PM, Rebecca Strauch, GISP <geonet@esri.com>