[mapguide-users] is it possible to make onslelect action?

Kori Maleski kmale at telus.net
Mon Sep 25 11:59:02 EDT 2006


Ivan,

 

I believe it is how you are handling the NEW MGSelection.

 

Here is code I posted previously:

 

 

Dim l_sSelect As String 
Dim l_sMapName As String 
Dim l_sSession As String 

l_sMapName = Request("MAPNAME") 
l_sSession = Request("SESSION") 
l_sSelect = Request("SELECTION") 

'MapGuideApi.InitializeSockets() 
'InitializeWebTier() 

Dim l_oCred As New MgUserInformation(l_sSession) 
'connect to the site and get a feature service and a resource service
instances 

Dim l_oSite As New MgSiteConnection() 
l_oSite.Open(l_oCred) 

Dim l_oFeatureSrvc As MgFeatureService =
l_oSite.CreateService(MgServiceType.FeatureService) 
Dim l_oResourceSrvc As MgResourceService =
l_oSite.CreateService(MgServiceType.ResourceService) 

'Create a temporary map runtime object, locate the layer 
Dim l_oMap As New MgMap() 
l_oMap.Open(l_oResourceSrvc, l_sMapName) 

Dim l_oSel As MgSelection = New MgSelection(l_oMap, l_sSelect) 
Dim l_cSelLayers As MgReadOnlyLayerCollection = l_oSel.GetLayers()

 

 

There is a difference between how the AJAX and DWF viewer handle it.

AJAX holds the selection server side.  DWF holds it client side.

The selection has to be passed to the page in the case of the DWF.

 

Hope this helps.

 

Cheers,

 

 

Kori Maleski
GIS Consultant
403.651.3714 (Mobile)

 

 

  _____  

From: Ivan Miličević [mailto:ivan at ineo.hr] 
Sent: September 25, 2006 9:19 AM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] is it possible to make onslelect action?

 

Hi Kori.

 

This is my problem.

 

When I open app in ajax viewer and select something, in menu on taskbar I
select "report for locations" and this event opens lokacije0.aspx. This
works perfectly.

 

When I do same thing wit dwf viewer application hangs (in lokacije0.aspx). I
put comment's in file and I wolud like that you take a look on it. What I do
wrong?

 

Sorry about my english, i hope so  that you understand problem. Ajax is
working but DWF's not.

 

Thank you very much for your time.

 

Ivan.

 

  _____  

From: Kori Maleski [mailto:kmale at telus.net] 
Sent: 20. rujan 2006 7:49
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] is it possible to make onslelect action?

 

It is possible.  Do you have DWF Composer installed?

 

The OnSelectionChanged event will fail when DWF Composer is installed along
side DWF Viewer when the Composer is installed AFTER the Viewer.

Try reinstalling the DWF Viewer and see if you can get it to work.

 

If it doesn't let me know what edits you made.

 

 

Cheers,

 

 

Kori Maleski
GIS Consultant
403.651.3714 (Mobile)

 

 

  _____  

From: Ivan Miličević [mailto:ivan at ineo.hr] 
Sent: September 14, 2006 3:20 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] is it possible to make onslelect action?

 

With dwf viewer? I was able to open page in taskframe but with AJAX. Is it
possible with DWF viewer?

 

Thanks for any help.

-------------------- 
Ivan Miličević, voditelj razvoja
iNEO d.o.o. 
091 502 9672 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide_users/attachments/20060925/8666ea8c/attachment.html


More information about the Mapguide_users mailing list