New topic: Controlling Sessions from other sessions
<http://forums.realsoftware.com/viewtopic.php?t=47951> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message neonash7777 Post subject: Controlling Sessions from other sessionsPosted: Wed May 22, 2013 3:16 pm Joined: Mon Nov 29, 2010 7:01 pm Posts: 445 So i created a method in the App class Sub MessageSession(s as session, msg as String) try s.MsgBox(msg) catch end End Sub And calling it works great! But now I want to create method that pops up a chat window on the session you want to message, but even though I pass the proper session and I even set the session context, the chat window always appears in the current session and not the session that I pass. Sub addChat(s as session, wdc as WDChat) try dim context as new WebSessionContext(s) Dim wd as new WDChat wdc.respondingChats.Append(wd) wd.respondingChats = wdc.respondingChats wd.Show Catch End End Sub The problem is that the App.AddChat is being called by session A so when I create and show the new chat window it appears in session A, but I need it to show up in the session B (the one I pass as a parameter). But even setting the webSessionContext does not fix this. I though that any method running on the App class or threads would have a Nil session that I could set with WebSessionContect, but this does not appear to be the case. Is this possible? Am I doing something wrong? Is this a bug? Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
