Hello everyone, For my map, I am trying to create a report widget that uses an InvokeURL call to retrieve parameters from a point layer on the map, and send these parameters to a report generation script that takes the variables and passes them to a tabular report page for clients to view. I have got an InvokeUrl process in the Ajax map which works as intended, but I am having difficulties in configuring the parameters in the widget for the Fusion viewer. I'm currently using Maestro 4.0.1.
Here is the XML for the InvokeUrl widget I am trying to create: <?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" upon customising this widget, however, 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> So, in short, any additional parameters after the first one appears to be replaced by clones of the first additional parameter. Before I decided to post here, I did troubleshooting and found some older posts about InvokeUrl errors. After trying the suggestions http://trac.osgeo.org/mapguide/ticket/832 here , http://trac.osgeo.org/mapguide/ticket/680 here , and http://osgeo-org.1560.n6.nabble.com/Invoke-URL-in-MapGuide-Studio-td4200680.html here , I am still faced with my same issue. I believe that the error might be in how I am writing the XML, but don't know what the correct way to format the widget is. The http://trac.osgeo.org/fusion/wiki/Widgets/InvokeURL page on using InvokeUrl over on trac does not offer too much information. Any advice on this would be greatly appreciated. Thanks very much for your time and apologies for such a long post. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Issue-when-Configuring-AdditionalParameter-in-an-InvokeURL-Widget-tp4992260.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
