Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Update a Treeview in a multiuser environment
Versions des environnements
Hallo!
I did a treeview (MS Treeview 6.0) where the users can add nodes, remove nodes, change the node text... and so on. Its fairly like Windows Explorer. Everything is saved i a table on an SQL server 2000.
It works very good if there only is ONE user, but if one user is manipulating the treeview, and in the same time an other user is doing the same thing, there will be some kind of conflict. The last user who is closing the tree and save the data on the server is writing over the changes that the other users has done.
Is there a common way to do, so all users allways has the same structure on the tree regardless who is changing the treeview.
In Internet Explorer you can see immediately on a network disc if any change is made, whithout doin anything yourself.
I dont know how to tackle this problem. One possibility is to make the tree readonly to everyone except the first user (like a worddocument on a network disc). But what happens if the user is going home whitout closing the tree. It is not a good solution. There must be some finished solution somewhere, because I dont think I am the first with this problem.
Does anyone has any hints or links to some document where I can read about this.
I am greatful for any answer that make me to go further.
It would be a pity if I cant use this wellworking treeview in a multiuser enviroment.
Thanks in advance
/Kjell
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement