I want to create a simple application in ArcGIS Web AppBuilder which uses geoprocessing service to generate output file.

I have a simple Python script which generate a TIFF image from a complex map document. I created a script tool which successfuly generates an image.

My question is how to set up script tool parameters and geoprocessing service parameters to be able to configure geoprocessing widget in Web AppBuilder. My intention is to have a download link as an output.

  • 2
    I'd suggest you take a look at the help pages and download the configs for Utility Map Generator--it allows the user to download a PDF though the GP widget in WAB. – Paul Dec 7 '15 at 16:55
  • @Paul, Thank for the tip. The examples mentioned gave me the hint. – Marcin Dec 8 '15 at 14:45

I've managed to set it up . Here're the most important settings:

- output image is written to default scratch folder (outDir = arcpy.env.scratchFolder)
- script parameter: arcpy.SetParameter(0,tif_path)

Script tool:
- Parameter: Data Type - file; Type - Derived; Direction - Output

GP Service:
Default settings.

Web AppBuilder:
Geoprocessing widget's parameters are populated automatically after poining to the service.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.