hi,
I have a white board with shapes. I want to use baton to block the edition of shape while another user is editing. Presently i created 1 baton for each shape, but on baton change event i can"t compare ShapeID since i only access only userID (comparing holderID and myUserID from connect session) . So when a user is editing, another user couldn't do it.
How can i compare by shapeID instead of holderD ? I want 1 baton per shape.
Thanks
vinc
Views
Replies
Total Likes
Hello there,
I am just going to add my thoughts to this thread.
A baton is linked to a Collection Node, could we have on baton per Item id ?
Or attach a batton to particular item to work out who has the right to edit this particular item.
That would be quite useful to handle our Equation shape for example or implement a lock unlock shape system.
Talking about lock unlock if the user holding a baton disconnect i guess the baton become grabable again.
Thanks,
Greg
Views
Replies
Total Likes
Hi Greg,
It's an interesting thought - what someone could try is building a multiple-baton component, which has multiple items (one item per baton). It could use a SharedObject as the underlying data model.
nigel
Views
Replies
Total Likes
Hi nigel,
I could give it a go but i have one question, i thought there were some server side code to 'help' baton management.
If a baton has timeout of 0 and the user who holds it disconnect what happen ?
Thanks
Views
Replies
Total Likes
Hi Greg,
There is a tiny bit of server "help" - we set UserDependentItems to true, which means that the case you mention (a user disconnecting while holding) is taken care of - the item gets retracted when they leave. This is actually similar to how the UserCollection works. UserDependentItems is one of my favorite features!
nigel
Views
Replies
Total Likes