Geoprocessing widget - open html doc

169
1
03-22-2019 08:08 AM
BrianLomas
Occasional Contributor III

I'm using the geoprocessing widget for WAB to create a report in html. This html document is saved on the ArcGIS server. I would like the html document to automatically open as the completion to the geoprocressing widgets task. Does anyone have an idea on how to accomplish this?

I have tried the following two solutions with no luck...

f = codecs.open(url, 'r')
print f.read()

&

webbrowser.open(url, new=2) 

The webbrowser.open solution works great when running the tool from ArcCatalog but not from the GP tool. 

Thanks.

Tags (2)
0 Kudos
1 Reply
BrianLomas
Occasional Contributor III

I've found the following to be an adequate solution...

https://community.esri.com/thread/176433

Basically, this thread shows you how to output a link in the 'output' window for the user to click on.