How to disable Item Property Edit

オフライン
Hello, my question is, there's a property in an ItemType that can be input or edited by certain identity (for example, property "Tester" can only be assigned by a Test manager, but can not be filled by other roles, only viewable to others) Permission settings is feasible only for ItemType as whole, how should I do configuration for certain item properties? Thank you for the reply. Regards
Parents
  • Hi Christopher, I following the above example and running this method attached to on From populate but I keep getting an error. I want to disable edit for everyone else except "PLM Aministrator" ****** aras.getIdentityList(); if (Identity != "PLM Administrator") { getFieldByName("dept_discipline").getElementsByTagName("input")[0].setAttribute("disabled", "1"); } else { ("disabled", "0"); } ****** The error I get is "even handler failed with message identity is not defined (function onformpopulated userhandler) What am I missing?
Reply
  • Hi Christopher, I following the above example and running this method attached to on From populate but I keep getting an error. I want to disable edit for everyone else except "PLM Aministrator" ****** aras.getIdentityList(); if (Identity != "PLM Administrator") { getFieldByName("dept_discipline").getElementsByTagName("input")[0].setAttribute("disabled", "1"); } else { ("disabled", "0"); } ****** The error I get is "even handler failed with message identity is not defined (function onformpopulated userhandler) What am I missing?
Children
No Data