Select to view content in your preferred language

2.5 to 3.1 Widget problem

768
3
03-15-2013 08:45 AM
EricStarn2
Emerging Contributor
Hello All,

I have a geoprocessing widget that I was using in the 2.5 version, worked as expected.
However, when I upgraded to v3.1 and moved the xml and mxml file over it had a problem.

The Problem:

All text and images that I had in the input container don't show up and the output container does not show up at all.
Geoprocess works, returns results as expected.

I went in and changed some of the code in the label tags in the mxml file but still nothing.

Am I missing some overhead issue with it or is it coded different then it was before.

Thanks

Eric
Tags (2)
0 Kudos
3 Replies
EricStarn2
Emerging Contributor
Here are my mxl and mxml file for the widget.

Not sure what my problem is. It displays results however does not show any of the Information that I put into the output "Results Tab".

Eric



<?xml version="1.0"?>
<configuration label="Storm Basin">
    <description/>
    <taskurl>http://gis.delhitownship.com/arcgis/rest/services/DPS/StormDrainService/GPServer/BasinService</taskurl>
    <inputparams>
        <param name="Input_point"
               geometrytype="point"
               label="Select location"
               required="true"
               type="featurerecordset"
               visible="true">
            <renderer type="simple">
                <defaultsymbol color="0x9ACD32"
                               size="10"
                               type="simplemarker">
                    <outline width="1" color="0x0000FF"/>
                </defaultsymbol>
            </renderer>
        </param>
    </inputparams>
    <outputparams>
        <param name="Selected_Basin"
               geometrytype="polygon"
               label="Basin"
               required="true"
               type="featurerecordset"
               visible="true">
               <!--popup visible="true">
                <title>{Name}</title>
                <description>
                 <![CDATA[This basin drains into the <b>{River}</b> which is a part of the <b>{RiverShed}</b> Watershed and is contained in the <b>{Watershed}</b> Watershed which flows into Lake Michigan.]]>
       </description>
               </popup-->
            <renderer type="simple">
                <defaultsymbol alpha="0.0"
                               type="simplefill">
                    <outline width="4" color="0x00FF00"/>
                </defaultsymbol>
            </renderer>
        </param>
        <param name="Selected_Hydropoly"
               geometrytype="polygon"
               label="Lakes & Ponds"
               required="true"
               type="featurerecordset"
               visible="true">
            <renderer type="simple">
                <defaultsymbol alpha="0.5"
                               color="0x0000FF"
                               type="simplefill">
                    <outline width="1" color="0x0000FF"/>
                </defaultsymbol>
            </renderer>
        </param>
  <param name="Selected_Storm"
               geometrytype="polyline"
               label="Storm Drain"
               required="false"
               type="featurerecordset"
               visible="true">
            <renderer type="simple">
                <defaultsymbol alpha="0.5"
                               color="0xFF4500"
                               type="simpleline">
                    <outline width="2" color="0xFF4500"/>
                </defaultsymbol>
            </renderer>
        </param>
        <param name="Selected_Drain"
               geometrytype="polyline"
               label="Storm Drains"
               required="false"
               type="featurerecordset"
               visible="true">
            <renderer type="simple">
                <defaultsymbol alpha="0.5"
                               color="0x0000FF"
                               type="simpleline">
                    <outline width="2" color="0x0000FF"/>
                </defaultsymbol>
            </renderer>
        </param>
  <param name="Selected_Outfall"
               geometrytype="point"
               label="Selected Outfall"
               required="true"
               type="featurerecordset"
               visible="true">
            <renderer type="simple">
                <defaultsymbol url="assets/images/i_hydro.png"
                         height="25"
                         width="25"
                        type="picturemarker">/>
                </defaultsymbol>
            </renderer>
        </param>
    </outputparams>
    <layerorder>Input_point,Selected_Outfall,Selected_Storm,Selected_Drain,Selected_Hydropoly,Selected_Basin</layerorder>
                <!--popups>
                 <fields>
                  <field name="Name"/>
                 </fields>
               </popups-->
</configuration>

<!--
    See Geoprocessing widget tag reference at
    http://links.esri.com/geoprocessingwidget
0 Kudos
EricStarn2
Emerging Contributor
MXML

       <viewer:states>
        <s:State name="input"/>
        <s:State name="output"/>
    </viewer:states>
<viewer:WidgetTemplate id="wTemplate" width="368" height="225" minWidth="200" minHeight="200"
         closed="wTemplate_closedHandler(event)"
         minimized="wTemplate_minimizedHandler(event)"
         open="wTemplate_openHandler(event)"
         width.input="401"
         width.output="400" height.output="400">
  <viewer:layout>
   <s:VerticalLayout/>
  </viewer:layout>
  <s:Label id="descriptionText"
     fontWeight="bold"
     includeInLayout="false"
     visible="false"/>
  <s:Scroller width="100%" height="66"
     includeIn="input"
     itemCreationPolicy="immediate">
   <supportClasses:InputParamDataGroup id="inputParamsDataGroup"
            width="100%" height="100%"/>
  </s:Scroller>
  <s:Scroller width="100%" height="16"
     includeIn="output"
     itemCreationPolicy="immediate">
   <supportClasses:OutputParamDataGroup id="outputParamsDataGroup"
             width="100%" height="100%"/>
  </s:Scroller>
  <s:Label id="myLabel"
     text.input="Click on above icon and then select a location on the map within &#xd;the township. Then click the submit button to display the storm &#xd;drain basin you are in."
     text.output="The map displays basin boundaries, water features,&#xd;underground storm sewer lines and the basin discharge&#xd;location. &#xd;&#xd;For additional information on the storm drain basin you are in, &#xd;left click within displayed basin."/>
  <s:Label id="missingRequiredFieldsText"
     color="0xFF0000"
     includeIn="input"
     includeInLayout="false"
     visible="false"/>
 
  <s:HGroup width="100%" verticalAlign="middle"
      height.output="11">
   <s:RichEditableText id="helpLink"
        editable="false"
        selectable="false"/>
   <mx:Spacer width="100%"/>
   <mx:Image id="busyAnimation"
       source="assets/images/loader.swf"
       visible="false"/>
   <s:Button id="clearOutputFeaturesButton"
       click="clearAllOutputFeatures()"
       includeIn="output"
       includeInLayout="false"
       label="{clearFeatureLabel}"
       visible="false"/>
   <s:Button click="runGPIfRequiredParamsComplete()"
       excludeFrom="output"
       label="{submitLabel}"/>
  </s:HGroup>
  <s:Label includeIn="output" paddingLeft="0"
     text="The basin discharge location&#xd;is displayed by the icon below:"
     verticalAlign="top"/>
  <s:Image includeIn="output" width="32" height="30" source="assets/images/i_hydro.png"/>
  <s:Label includeIn="output" paddingLeft="0"
     text="The underground storm sewer lines&#xd;are displayed by the icon below:"
     verticalAlign="top"/>
  <s:Image includeIn="output" width="32" height="30" source="assets/LineIconOrange.png"/>
  <s:Label includeIn="output" paddingLeft="0"
     text="The basin water features&#xd;are displayed by the icon below:"
     verticalAlign="top"/>
  <s:Image includeIn="output" width="32" height="30" source="assets/lake_iconBlue.png"/>
</viewer:WidgetTemplate>
</viewer:BaseWidget>
0 Kudos
RhettZufelt
MVP Notable Contributor
the mxml you provided is way different than the 3.1 Geoprocessing widget.

have you tried using the existing GeoprocessingWidget for 3.1 and just update the xml to your parameters?

R_
0 Kudos