[Mapguide-trac] [mapguide-trac] #2089: Maestro: InvokeURL Fusion widget incorrectly saving AdditionalParameter values

MapGuide Open Source trac_mapguide at osgeo.org
Wed Aug 1 09:03:32 PDT 2012


#2089: Maestro: InvokeURL Fusion widget incorrectly saving AdditionalParameter
values
-------------------------+--------------------------------------------------
   Reporter:  geomapper  |       Owner:  jng                                            
       Type:  defect     |      Status:  new                                            
   Priority:  high       |   Milestone:  Maestro-4.0-maintenance                        
  Component:  Maestro    |     Version:  2.2.0                                          
   Severity:  major      |    Keywords:  maestro, fusion, invokeurl, additionalparameter
External_id:             |  
-------------------------+--------------------------------------------------
 When trying to configure an InvokeURL widget in fusion with multiple
 AdditionalParameter objects, upon clicking "Save" the widget automatically
 overwrites the AdditionalParameter values with copies of the first
 AdditionalParameter.

 For example, when I configure the following InvokeURL widget in Maestro:

 {{{
 <?xml version="1.0"?>
 <WidgetType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="UiWidgetType">
   <Name>Report Generator</Name>
   <Type>InvokeURL</Type>
   <Location />
   <Extension>
     <Url>http://localhost/Scripts/FormGenerator.php</Url>
     <DisableIfSelectionEmpty>true</DisableIfSelectionEmpty>
     <Target />
     <LayerSet>
           <Layer>Testlayer</Layer>
         </LayerSet>
     <AdditionalParameter>
           <Key>Selected</Key>
           <Value>$CurrentSelection</Value>
         </AdditionalParameter>
     <AdditionalParameter>
           <Key>DesiredField</Key>
           <Value>MASTERID</Value>
         </AdditionalParameter>
     <AdditionalParameter>
           <Key>LayerName</Key>
           <Value>TestLayer_Name</Value>
         </AdditionalParameter>
     <AdditionalParameter>
           <Key>URL</Key>
           <Value>http://localhost/TestFiles/reporttable.asp</Value>
         </AdditionalParameter>
     <AdditionalParameter>
           <Key>DestinationKeyName</Key>
           <Value>MASTERID</Value>
         </AdditionalParameter>
   </Extension>
   <ImageUrl>images/icons.png</ImageUrl>
   <ImageClass>options</ImageClass>
   <Label>Report TEST</Label>
   <Tooltip>Report TEST</Tooltip>
   <StatusText>Report TEST</StatusText>
   <Disabled>false</Disabled>
 </WidgetType>

 }}}

 Whenever I click "Save" the widget
 automatically changes itself to look like this:


 {{{
 <?xml version="1.0"?>
 <WidgetType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="UiWidgetType">
   <Name>Report Generator</Name>
   <Type>InvokeURL</Type>
   <Location />
   <Extension>
     <Url>http://localhost/Scripts/FormGenerator.php</Url>
     <DisableIfSelectionEmpty>true</DisableIfSelectionEmpty>
     <Target />
     <LayerSet>
       <Layer>Testlayer</Layer>
     </LayerSet>
     <AdditionalParameter>
       <Key>Selected</Key>
       <Value>$CurrentSelection</Value>
     </AdditionalParameter>
     <AdditionalParameter>
       <Key>Selected</Key>
       <Value>$CurrentSelection</Value>
     </AdditionalParameter>
     <AdditionalParameter>
       <Key>Selected</Key>
       <Value>$CurrentSelection</Value>
     </AdditionalParameter>
     <AdditionalParameter>
       <Key>Selected</Key>
       <Value>$CurrentSelection</Value>
     </AdditionalParameter>
     <AdditionalParameter>
       <Key>Selected</Key>
       <Value>$CurrentSelection</Value>
     </AdditionalParameter>
   </Extension>
   <ImageUrl>images/icons.png</ImageUrl>
   <ImageClass>options</ImageClass>
   <Label>Report TEST</Label>
   <Tooltip>Report TEST</Tooltip>
   <StatusText />
   <Disabled>false</Disabled>
 </WidgetType>
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2089>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list