Select to view content in your preferred language

Can we start a Python script from a widget.

1106
1
01-07-2019 09:31 AM
MuralidharMoka
New Contributor II

Hi,

Can we start a Python script from a widget on a button Click.

Say I will have a button and Textbox for location of the file.

I saw an earlier post on this in the community, but there was not satisfactory answer.

Note: our python script is reading attributes data and writing excel files 

Thanks

Muralidhar Moka.

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

No python is a server script that has file system access and can not run on a client web application locally. The only way you can get Python code to run in a widget is to publish a Geoprocessor service that calls the Python script to your server and then access that GP service from your widget or the WAB GP widget.

0 Kudos