Select to view content in your preferred language

Fire Python Script in Flex Viewer App

796
2
12-26-2012 04:55 AM
MichaelVolz
Esteemed Contributor
To All Flex Viewer Developers:

I was wondering if it is possible to fire a python script in a Flex Viewer app.

I am proficient in python which I would like to try to use to insert layout elements into a print template that would be used with the new print templates that ESRI has made available with v10.1.  I would like to take the results of a selected item in the map and create a template on the fly that would populate items in the layout portion of the template that would be unique to the selected feature on the map.  I need this functionality because the upgraded printing presents the map as What You See Is What You Get (WYSIWYG) and widgets that can display information do not get passed to the map so this information is lost.

Any help or feedback is greatly appreciated.
Tags (2)
0 Kudos
2 Replies
GISDev1
Deactivated User
You can publish a Python script as a geoprocessing service on your ArcGIS Server 10.1 instance. You could then fire this geoprocessing and send it inputs from the Flex App. to run the script. I would need more details on exactly what it is you want to do, to help you further.
0 Kudos
MichaelVolz
Esteemed Contributor
GISDev01:

I am using the Enhanced Search Widget that is configured for the user to input certain parameters that are used to select a GIS feature.  I would then like to get the attributes of this selected feature to be added to the print that has been enhanced by ESRI at v10.1.  The enhanced printing using templates to format the desired printout from the Flex Viewer application.  I would like to pass values from the selected feature to a template for printing just before the available print templates are presented to the user.  The template would have these items formatted with python's ability to modify the layout of an mxd.

If I cannot bundle this into the printing task, can I create a geoprocessing service that would create a template from the enduser's selection from the Enhanced Search Widget and make it available to the enduser in a drop-down list of templates?
0 Kudos