Forum  Commercial Foru...  Commercial Foru...  Multi User On Same Tree
Previous Previous
 
Next Next
New Post 3/18/2010 4:14 PM
Unresolved
  derekmhart@yahoo.com
685 posts
1st Level Poster


Multi User On Same Tree 
Modified By derekmhart@yahoo.com  on 3/18/2010 6:56:37 PM)

I have a treeview that users can add nodes to. In some scenarios the users might be on the same tree. So the trees will not be in sync. I need to know some of the best theories to handle this, including:

1) Get the time stamp when the data was pulled from the database. If it differs when it tries to write back to the database, take the necessary steps.

2) Have a timer running to check the timestamp and if there is a difference, warn the user. Maybe do not allow the creation/deletion/addition of nodes if this is different.

If a difference is found, and a user adds a node, for example, I could interrupt that process and refresh the tree, and then allow the node to be added. This is a VWG "postback" so it will be smooth, but I am wondering if that is the best approach.

I am concerned about the overhead of timers. I think there is also some kind of server side push technology I have read about with VWG.

And I know there must be tons of theory on this.

Ideas?

 
New Post 3/18/2010 6:42 PM
  dubem1
1044 posts
1st Level Poster




Re: Multi User On Same Tree 
Modified By dubem1  on 3/18/2010 8:44:06 PM)

Hello

I am sorry to have to say this but VWG team members are not there to tell you how to code your app. If you need some general programming advice then in my opinion you should post in the public forum.  When you post in the commercial forum, a VWG must answer in the next 24 hour. So when you post non related VWG question, they still have to answer you because of the 24h SLA but I guess their precious time must be used to answer VWG related question first. In my opinion, posts in commercial forum should be related to specific VWG questions.  All other questions must be post in the public forum so anybody can answer you.

Google is also a very good friend when you need some programming advice

Just a thought

Martin

 
New Post 3/18/2010 11:31 PM
  derekmhart@yahoo.com
685 posts
1st Level Poster


Re: Multi User On Same Tree 

Thank you for sharing.

And Gizmox, please give me your opinion on my original question, the overhead of VWG timers, and constantly pulling data to the web page, and if there is any VWG server push to client technology that might help with this process.

 
New Post 3/19/2010 11:09 AM
  palli
11189 posts
1st Level Poster




Re: Multi User On Same Tree 

Hi Derek,

The general answer to the timer overhead question is that it depends on how many timers you have, how rapidly you need them to fire and how much delay you have while processing the server side request, or polling in your case.

Having a timer that fires every 5 seconds does not add much overhead, but having a timer firing 10 times per second does. So, this is something you will need to experiment with and decide what fits your scenario.

You are correct that there are ways to implement server push technologies, called Comet, but this has not been implemented into Visual WebGui yet, although it is on the plan. You can find one user contributed solution posted on the resources section and you will find a link to that code sample, as well as some general info and other links on the Wiki Comet page.

If your polling for new data takes considerable amount of time, you might also look into implementing something similar to Asynchronous loading of contents ... code sample I posted a while ago on the wiki.

Hope this helps,

Palli

 

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  Multi User On Same Tree
Assessment Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS