Hi Asad,
You need to use another Indicator field for TCDataLocked .
element isManager:Indicator;
var identity = Identity.Retrieve(Context.GetCurrentIdentityUUID());
var occupationCode=identity.Person.CurrentCommon.Person.OccupationCode.GetDescription();
if(occupationCode=="Manager")
{
this.isManager=true;
}else{
this.isManager=false;
}
Hope this helps.
Fred.