Resource: Office, Field : OfficeAOR
Description
Error Messages
1) ERROR,the user and office AOR must match to alter this field.
Fields referenced within this rule
Syntax with comments and error messages
//[ErrMsg1^ERROR,the user and office AOR must match to alter this field.|LogicBlk1^TRUE|LogicBlk2^FALSE|LogicBlk3^TRUE|LogicBlk4^FALSE]
// If the the entry is not empty and has changed...
IIF((/*[LogicBlk1]*/(.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),
// Then check if user permission access is CRMLS administrator or...
(/*[LogicBlk2]*/.USERCLASS..IN.('BANGG','BANGP','BANGQ')).OR.
// user permission access is AOR administrator and user AOR match office AOR.
((/*[LogicBlk3]*/.USERCLASS..IN.('BANGM','BANGN')).AND.(/*[LogicBlk4]*/ROSTER("UserData","MemberAOR") = .ENTRY.)),.TRUE.)
Syntax only
IIF(((.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),(.USERCLASS..IN.('BANGG','BANGP','BANGQ')).OR.((.USERCLASS..IN.('BANGM','BANGN')).AND.(ROSTER("UserData","MemberAOR") = .ENTRY.)),.TRUE.)
Rule Unique ID
3ae38c2e-5489-4d92-a5b0-5257165102c3
Rule Number
3