[mapguide-users] fusion bug with InvokeURL?

Andrew DeMerchant andrew.demerchant at gemtec.ca
Wed Jun 11 17:51:59 EDT 2008


Works perfectly!! Thanks so much, Paul...

Andrew



Paul Spencer wrote:
> Hi Andrew,
>
> this problem stems from the fact that we don't pass the selection xml 
> around from client to server all the time - I decided that the 
> selection can be saved on the server just fine and restored at a later 
> time.
>
> I did find a reasonably simple way to work around this before but I 
> can't find the code.  But it did involve a server-side change in the 
> code that is being called by InvokeURL, essentially you need to check 
> if the value of Select literally equals $CurrentSelection and instead 
> of doing something like:
>
> $selection = new MgSelection($map, $selectionXml);
>
> you would do
>
> $selection = new MgSelection($map);
> $selection->Open($resourceService, $mapName);
>
> (sorry, this in php)
>
> Please let us know if you attempt this and if it works - then I can 
> put it in the wiki
>
> Cheers
>
> Paul
>
> On 11-Jun-08, at 1:34 PM, Andrew DeMerchant wrote:
>
>> I've been trying to migrate (or look into migrating) my projects to 
>> Fusion. They all use an InvokeURL script to pass selected data to 
>> another URL. The problem I'm having with this in fusion seems to be 
>> totally Fusion's fault. It seems that Fusion's InvokeURL widget is 
>> defective. My very first parameter is supposed to be 
>> $CurrentSelection - which is supposed to give me an xml selection 
>> string. In fusion, all that it does is return a 
>> string...."$CurrentSelection". Quite useless....My first parameter in 
>> my InvokeURL widget is: Key = Selected, Value = 
>> $CurrentSelect....this should give me something like 
>> "myurl.asp?Select=xmlblah". Instead, I get 
>> "myurl.asp?Select=$CurrentSelection". Is there a known workaround for 
>> this?
>>
>> Andrew
>>
>> -- 
>> <logo.gif>
>> Andrew DeMerchant
>> Computer Technologist
>> ph.1-877-2GEMTEC x.163
>> fax 506-453-9470
>> GEMTEC Limited
>> 191 Doak Road
>> Fredericton, NB, Canada
>> E3C 2E6
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>

-- 
	*Andrew DeMerchant*
*Computer Technologist*
ph.1-877-2GEMTEC x.163
fax 506-453-9470

/GEMTEC Limited <http://www.gemtec.ca>
/191 Doak Road
Fredericton, NB, Canada
E3C 2E6

-------------- next part --------------
Skipped content of type multipart/related


More information about the mapguide-users mailing list