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 chenze, Yes, the IDs returned are group Identities that the current user is a member of.  Once verifying that the user is not a Test Manager you can disable the field with a line like getFieldByName("YOUR_FIELD_NAME").getElementsByTagName("input")[0].setAttribute("disabled", "");. Chris
    Christopher Gillis Aras Labs Software Engineer
Reply
  • Hi chenze, Yes, the IDs returned are group Identities that the current user is a member of.  Once verifying that the user is not a Test Manager you can disable the field with a line like getFieldByName("YOUR_FIELD_NAME").getElementsByTagName("input")[0].setAttribute("disabled", "");. Chris
    Christopher Gillis Aras Labs Software Engineer
Children
No Data