|
|
|
|
Re: [CDO] To know if a Resource is being modified by others [message #1059356 is a reply to message #1059279] |
Fri, 17 May 2013 15:49 |
Marc Gil Messages: 81 Registered: July 2009 |
Member |
|
|
Thanks Eike,
Finally I solved it using IListeners, and when a commit happens I do what I need.
The scenario is the following:
- User A has the resourceNode X opened, for instance, with the CDO Editor.
- User B tries to rename or delete the resourceNode X.
I wanted that User B receives an alert indicating there are users that has this resource opened, in order to prevent some errors. One solution is that A has opened the resourceNode in lock mode, so B could not rename it. Another solution is that B renames the resource, and then A receives a message alerting that the editor is going to be closed. Of course, all the non saved changes will be lost... I have implemented both of them.
Cheers,
Marc
|
|
|
Re: [CDO] To know if a Resource is being modified by others [message #1059365 is a reply to message #1059356] |
Fri, 17 May 2013 16:34 |
|
Am 17.05.2013 17:49, schrieb Marc Gil:
> Thanks Eike,
>
> Finally I solved it using IListeners, and when a commit happens I do what I need.
>
> The scenario is the following:
> - User A has the resourceNode X opened, for instance, with the CDO Editor.
> - User B tries to rename or delete the resourceNode X.
>
> I wanted that User B receives an alert indicating there are users that has this resource opened, in order to prevent
> some errors. One solution is that A has opened the resourceNode in lock mode, so B could not rename it.
+1
> Another solution is that B renames the resource, and then A receives a message alerting that the editor is going to be
> closed. Of course, all the non saved changes will be lost... I have implemented both of them.
Why doesn't the receiving editor just handle the rename such that it can stay open?
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.01979 seconds