Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-18 Thread Kenneth Skovhede, GEOGRAF A/S
Yes, I understand. Forget my ramblings :). Regards, Kenneth Skovhede, GEOGRAF A/S Bruno Scott skrev: The "CreateSession" is allways called with or without my patch The check for existing items is always empty excepts if i call the mapviewerajax with an existing session. Bruno __

Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Bruno Scott
Kenneth Skovhede, GEOGRAF A/S wrote: > > If you get a new sessionid, that means that the "CreateSession" is being > called. > Then the check for existing items will look in the new session, which is > always empty? > The "CreateSession" is allways called with or without my patch The check fo

Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Bruno Scott
zspitzer wrote: > > are you using username & password or passing in a session id in the url? > Hi Zac Actually my own page got the username and password in the url In this page i create the session, sets the centerx,centery and scale of the weblayout Initialize the selection Then i op

Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Kenneth Skovhede, GEOGRAF A/S
If you get a new sessionid, that means that the "CreateSession" is being called. Then the check for existing items will look in the new session, which is always empty? Regards, Kenneth Skovhede, GEOGRAF A/S Zac Spitzer skrev: are you using username & password or passing in a session id in t

Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Zac Spitzer
are you using username & password or passing in a session id in the url? z On Thu, Dec 18, 2008 at 12:13 AM, Bruno Scott wrote: > > By pressing F5, the sessionid get renewed > I tested it in IE and firefox > -- > View this message in context: > http://www.nabble.com/Problem-opening-a-webLayout-

Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Bruno Scott
By pressing F5, the sessionid get renewed I tested it in IE and firefox -- View this message in context: http://www.nabble.com/Problem-opening-a-webLayout-with-predefined-selection-tp21035935p21052889.html Sent from the MapGuide Users mailing list archive at Nabble.com.

Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Kenneth Skovhede, GEOGRAF A/S
If you press F5, the selection won't be reset with your patch? Regards, Kenneth Skovhede, GEOGRAF A/S Bruno Scott skrev: Hi kenneth What do you meen by "Reload button"? The actual behavior is When a user Hit the F5 key ( or refresh the browser ), everything is lost, the selection, the curre

Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Bruno Scott
Hi kenneth What do you meen by "Reload button"? The actual behavior is When a user Hit the F5 key ( or refresh the browser ), everything is lost, the selection, the current zoom... and When a user use the Refresh Map Action, the zoom, the selection , the layers on/off are kept in the same state

Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Kenneth Skovhede, GEOGRAF A/S
Nice idea. You could do the same with the runtime map, which would ease the pre-creation/modification of maps. If the user presses the reload button, the map would stay the same, as would the selection. Is this a problem, and do you have and idea for a workaround? Regards, Kenneth Skovhede,

Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Bruno Scott
I could propose a patch to fix that problem The idea would be to verify if the Session://...MapDefinition exist If it already exist, do not overwrite Something like this bool mapStateIdExist = true; MgResourceIdentifier mapStateId = new MgResourceIdentifier("Session:" + se

[mapguide-users] Problem opening a webLayout with predefined selection

2008-12-16 Thread Bruno Scott
I have started with the Community code sample "Dynamically setting initial map position and scale " And i have added codes to initialize the selection. But when it redirect to the ajaxviewer, the selection is not there... I've found these line in the mapviewernet/MapFrame.apsx page