【Aras二次开发】使用Item类ExtendedMethod集添加新的命名权限...
JavaScript
var innovator = new Innovator();
var permItem = innovator.newItem("Permission","add");
permItem.setAttribute("leaveLocked","0");
permItem.setProperty("name", "Part Permissions");
permItem.setIdentityAccess("All Employees", "get", true);
permItem.setIdentityAccess("CM", "get", true);
permItem.setIdentityAccess("CM", "update", true);
permItem.setIdentityAccess("CM", "delete", true);
resultItem = permItem.apply();
if (resultItem.isError()) {
top.aras.AlertError(resultItem.getErrorDetail());
return;
}
页:
[1]