Hi again,
I'm trying out the simple edit interface, and one thing that's a tad weird is that once someone edits something they seem to keep the lock and there's no easy way of releasing it.
I thought about setting up a trigger so when they quit simple edit mode or logout the lock gets released. There doesn't seem to be a 'quit simple edit' event, and when I tried the user logout trigger example given in the trigger manual, it didn't work. I do have triggers enabled because they work if I try to do a different type of trigger, like changing the status when an asset is updated.
Not sure what I'm doing wrong.
[quote]Hi again,
I'm trying out the simple edit interface, and one thing that's a tad weird is that once someone edits something they seem to keep the lock and there's no easy way of releasing it.
I thought about setting up a trigger so when they quit simple edit mode or logout the lock gets released. There doesn't seem to be a 'quit simple edit' event, and when I tried the user logout trigger example given in the trigger manual, it didn't work. I do have triggers enabled because they work if I try to do a different type of trigger, like changing the status when an asset is updated.
Not sure what I'm doing wrong.[/quote]
Have you tried printing the release locks button?
%release_locks_button% should work, and let you release the locks by clicking the button.
[quote]I have tried printing the release locks button?
%release_locks_button% should work, and let you release the locks by clicking the button.[/quote]
Doh!
Sometimes things are too obvious.
I suppose I was trying to find a fancy triggers answer, but a release locks button will do. Thanks.
Your trigger idea should work as well, did you create it as documented in the triggers manual? if it doesn't work you will also hopefully have some errors in your logs