on 08-12-2008 3:39 AM
Hi,
i am trying to duplicate/edit a project and depending on the usergroup that's logged in 2 fields - one of them is a extension and other a collection extension need to be either enabled or disabled. Have managed to lock/unlock (using IAPI LockManager) the fields based on the group of the user. when i lock the field the extension field gets disabled, but the collection extension fields buttons like Add, delete gets disabled but not the actual field. I am still able to edit the collection extension field on lock. how can i get it disabled or read only. what IAPI would help?
Regards,
Patsy
Try Including each collection attribute in the script along with the collection name.
Let us know...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In order to lock individual collection fields, you must iterate over the collection and invoke the lockField(), for each member attribute you wish to lock.
iterator = mycolln.iterator();
for(member : iterator) {
IapiDocumentLockManager.lockField(session, member, "foo");
IapiDocumentLockManager.lockField(session, member, "bar");
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.