Hi,
In the Projtable form I want Projstatus button to be greyout when ever the projstatus is equal to Completed.
I have tried the below code in the active method.
But its not working. When I dedbugged it seems to be fine.
When set the condition as CtrlStages.visible(false); the button is getting disapperead .but allowedit is not working.
if (selectedProjTable.Status ==ProjStatus::Completed)
{
if(selectedProjTable)
{
/*while select role
join userrole
where role.RecId == userrole.SecurityRole
&&userrole.User == curUserId()*/
{
if(Global::isSystemAdministrator())//(role.Name == "System Administrator")
{
CtrlStages.allowEdit(false);
}
//if( !Global::isSystemAdministrator())//(role.Name != "System Administrator")
else
{
CtrlStages.allowEdit(true);
}
}
}
}
else
{
CtrlStages.enabled(false);
}
Please advise.
*This post is locked for comments