New topic: 

Updating every session/instance?

<http://forums.realsoftware.com/viewtopic.php?t=46644>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        Zack.H          Post subject: Updating every 
session/instance?Posted: Tue Jan 22, 2013 2:42 pm                         
Joined: Sun Jun 15, 2008 1:50 am
Posts: 47                Alright so I'm currently working on a project where 
multiple users would be using/editing the same data that another is.

And I've ran into a problem which I'm trying to resolve, 
I have code where I update a list box on one web page but it doesn't update on 
the other (If I have two windows open to the app)

I'm wondering if there's a way I can update every open page's controls when a 
change is made to that specific control?

Sorry if this doesn't quite make sense I don't really know how to explain it.   
                             Top                neonash7777          Post 
subject: Re: Updating every session/instance?Posted: Tue Jan 22, 2013 4:05 pm   
                              
Joined: Mon Nov 29, 2010 7:01 pm
Posts: 368                Zack.H wrote:Alright so I'm currently working on a 
project where multiple users would be using/editing the same data that another 
is.

And I've ran into a problem which I'm trying to resolve, 
I have code where I update a list box on one web page but it doesn't update on 
the other (If I have two windows open to the app)

I'm wondering if there's a way I can update every open page's controls when a 
change is made to that specific control?

Sorry if this doesn't quite make sense I don't really know how to explain it.

I'm assuming you mean something like how multiple users can be editing/viewing 
the same google doc at the same time, right? Have you tried iterating through 
the sessions?

Something like:
For i as integer = 0 to app.sessioncount - 1
 dim s as session = app.sessionAtIndex(i)
  //SEE IF THIS SESSION HAS THE PAGE/ELEMENT WE NEED TO UPDATE
Next   
                             Top                Zack.H          Post subject: 
Re: Updating every session/instance?Posted: Tue Jan 22, 2013 4:11 pm            
             
Joined: Sun Jun 15, 2008 1:50 am
Posts: 47                neonash7777 wrote:Zack.H wrote:Alright so I'm 
currently working on a project where multiple users would be using/editing the 
same data that another is.

And I've ran into a problem which I'm trying to resolve, 
I have code where I update a list box on one web page but it doesn't update on 
the other (If I have two windows open to the app)

I'm wondering if there's a way I can update every open page's controls when a 
change is made to that specific control?

Sorry if this doesn't quite make sense I don't really know how to explain it.

I'm assuming you mean something like how multiple users can be editing/viewing 
the same google doc at the same time, right? Have you tried iterating through 
the sessions?

Something like:
For i as integer = 0 to app.sessioncount - 1
 dim s as session = app.sessionAtIndex(i)
  //SEE IF THIS SESSION HAS THE PAGE/ELEMENT WE NEED TO UPDATE
Next

Pretty much, this is my first time working with the web side of realstudio and 
so far it's been a great experience.

Thanks for that I'll check it out.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
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

rbforumnotifier@monkeybreadsoftware.de

Reply via email to