If I have a web page form with 'submit' on this simple Javascript API sample, how would I call the Python script on clicking the submit button? any thoughts or ideas?
Julie,
Yes, you are on the right path. The parameters you are filling in have to be tied to the logic you will use to do the analysis you are trying to run. Otherwise they are just parameters.
If you are trying to run it in a web browser, you will need to publish the script to ArcGIS Server to be able to access it from the web.
Regards,
Tom
how do I do this?
' The parameters you are filling in have to be tied to the logic you will use to do the analysis you are trying to run.'
The function in the script accepts two paramaters and the toolbox lets you enter two parameters. how do I tie it together?
Hi Tom,
Please guide me through this.
I am using ArcGIS 10.2 and
- At the desired location, I created a new toolbox in ArcCatalog.
-Right clicked the toolbox and Added a python script.
-Pointed it to my python script.
-Created two parameter values
Am I in the right path?
My python script has a function that takes two parameters
def formInfo(Name, activeMile):
Now, when I run the toolbox I created, it let me fill two parameters but it doesn't look like it is passing it to the script. The tool gives the message that it ran successfully but it doesn't look like my script with the parameter.
In 10.2 , there is also an option to create a new 'Python Toolbox' should I be using this? any thoughts?
appreciate your help!!
The iBus app used queries to map services of feature classes. But I do have another app the calls a geoprocessing script. The python geoprocessing script creates a parcel map PDF when a link or button is clicked for the related parcel being displayed.
Good idea Tom, I will give that a try.
You did that with your ibus app right?
Thanks!!
You could publish your python script as a geoprocessing service on your ArcGIS Server.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.