Select to view content in your preferred language

Geoprocessing Widget for Multiple Models

566
0
10-17-2011 04:56 PM
KennethMorris
Emerging Contributor
I am currently working on a geoprocessing widget that I would like to be the interface to multiple underlying models.

The model structure is inherently the same (same input / output parameters) but some internal calculations necessitate multiple variations.

Below is the code for the widget that works perfectly on its own.

<?xml version="1.0"?>
<configuration label="Model">
    <description/>
    <taskurl>http://128.196.53.161/ArcGIS/rest/services/webGIS/Project_Models/GPServer/Model</taskurl>
    <helpurl>http://sampleserver1.arcgisonline.com/arcgisoutput/Elevation_ESRI_Elevation_World/Viewshed.htm</helpurl>
    <inputparams>
        <param name="County_State_Choice"
        defaultvalue=""NAME"='Pima'AND"STATE_NAME"='Arizona'
               label="County State Choice"
               required="true"
               type="string"
               visible="true">
        </param>
        <param name="Per_Change_Choice"
               defaultvalue="60"
               label="Per_Change_Choice"
               required="true"
               type="string"
               visible="true">
        </param>
        <param name="Per_Change_Choice2"
               defaultvalue="60"
               label="Per_Change_Choice2"
               required="true"
               type="string"
               visible="true">
        </param>
    </inputparams>
    <outputparams>
        <param name="output_shp"
               geometrytype="polygon"
               label="output.shp"
               required="true"
               type="featurerecordset"
               visible="true">
            <renderer type="simple">
                <defaultsymbol alpha="0.5"
                               color="0xFF00FF"
                               type="simplefill">
                    <outline width="1" color="0x000000"/>
                </defaultsymbol>
            </renderer>
        </param>
    </outputparams>
    <layerorder>Input_Observation_Point,Viewshed_Result</layerorder>
</configuration>



Now I would like to be able to implement a drop down / choice list that allows the user to change the variable of interest (and therefore the model running in the background) in the same widget window that the user fills in the input paramaters.

Is this possible? Any suggestions would be greatly appreciated.

- Rick
Tags (2)
0 Kudos
0 Replies