Unless I am misunderstanding your question, this does not really sound like a 
problem the MVC design pattern, but rather a typical client-server app problem. 
To ensure that all of your clients always have the most up to date info, you 
really only have a few options.
 
Push updates from the server to the clients using something like FDS
Poll the server constantly to see if any changes have occurred since your last 
poll and pull down the latest data if so
 
Either solution, you would then just update your cairngorm model with the data 
received in the result event (in the pulling case via a service) and if your 
controls are bound to your model then they would update automatically after the 
data transfer completed.
 
Of course there are tons of other considerations that come into play in this 
scenario like conflict resolution, which can be solved with a complex 
merge/purge based solution or a last in wins kind of thing. All problems that 
just about every client server app has to face when dealing with multiple 
clients modifying the same data.
 
Just some things to think about. If I am off base from your question, just let 
me know.
 
Karl
 
Cynergy

________________________________

From: [email protected] on behalf of Yiðit Boyar
Sent: Wed 2/21/2007 3:45 PM
To: [email protected]
Subject: Re: [flexcoders] Cairngorm - design question, need suggestions-best 
practices



hi all;
i just can not believe there is no reply to my post.  has not anyone faces the 
same question ?
or lazy solutions enough for you? or our group started to overflow and not 
answer needs...
 maybe a newsgroup/forum is needed..



----- Original Message ----
From: Yiðit Boyar <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, February 20, 2007 9:35:55 PM
Subject: [flexcoders] Cairngorm - design question, need suggestions-best 
practices



hi all;
i'll buld an application in which the same data (or sth related) is shown in 
many views; so i will user cairngorm. (php&mysql&amfphp)
but the problem is that other clients may change the data(base) so my model 
values must be updated in these cases.
this seems to be a common problem with MVC so can you please share your 
solutions and best practices ?
the first thing that comes to my mind is to check database for changes 
periodically, and most possibly this is the only way; 
but many procedures can be used in this also; so i need suggestions before 
starting coding.
thanks..

yigit


________________________________

Expecting? Get great news right away with email Auto-Check. 
<http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html>
 
Try the Yahoo! Mail Beta. 
<http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html>
  


________________________________

Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel 
<http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw-->
  to find your fit. 

 

Reply via email to