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 Chris, thank you for your help. I used your logic above but it was complaining about something else. I got this one to work the way I would like it to. However, it still allows input although it does not save the result. How can I completely restrict edit/input? var contextItem = document.thisItem; var reqs = contextItem.newItem("part", "get"); var identity = aras.getIdentityList(); var vField1 = getFieldByName("part_desc"); if (identity != "DBA5D86402BF43D5976854B8B48FCDD1"); vField1.disabled = true; vField1.readOnly = true; return;
Reply
  • Hi Chris, thank you for your help. I used your logic above but it was complaining about something else. I got this one to work the way I would like it to. However, it still allows input although it does not save the result. How can I completely restrict edit/input? var contextItem = document.thisItem; var reqs = contextItem.newItem("part", "get"); var identity = aras.getIdentityList(); var vField1 = getFieldByName("part_desc"); if (identity != "DBA5D86402BF43D5976854B8B48FCDD1"); vField1.disabled = true; vField1.readOnly = true; return;
Children
No Data