hi expert, i wan to disabled some controls (creditmax, and MandatoryCreditLimit) disabled for some users, for this i just do following code in init method of custTable.
SecurityRole role;
role.Name == 'MycustomRole';
if(role)
{
custTable_ds.object(fieldNum(CustTable, creditmax)).enabled(false);
custTable_ds.object(fieldNum(CustTable, MandatoryCreditLimit)).enabled(false);
}
else
{
custTable_ds.object(fieldNum(CustTable, creditmax)).enabled(true);
custTable_ds.object(fieldNum(CustTable, MandatoryCreditLimit)).enabled(true);
}
it working ,but for all user the above mentioned controls are disabled, while i just want for specific user role,
how it can be.
*This post is locked for comments