Resource: Property, Field : BuyerAgentMlsId
Description
BuyerAgentMlsId must be active.
Error Messages
1) ERROR, the selling agent must have a valid numeric key and be active.
Fields referenced within this rule
BuyerAgentMlsId
StandardStatus
Syntax with comments and error messages
//[ErrMsg1^ERROR, the selling agent must have a valid numeric key and be active.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk3^FALSE]
// Grandfather clause...
(/*[LogicBlk1]*/(.ENTRY. = .OLDVALUE.).AND..NOT.((LASTStandardStatus = .EMPTY..OR.LASTStandardStatus.IN.('I')).AND.StandardStatus.IN.('A','P'))).OR.
// If entry is not empty and has changed...
IIF((/*[LogicBlk2]*/(.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),
// If the Selling Agent has an ID and is active...
(/*[LogicBlk3]*/IIF((ROSTER("SA","MemberKeyNumeric") != .EMPTY.),(ROSTER("SA","MemberStatus").IN.('A')),.FALSE.)),
// Else ACCEPT entry.
.TRUE.)
Syntax only
((.ENTRY. = .OLDVALUE.).AND..NOT.((LASTStandardStatus = .EMPTY..OR.LASTStandardStatus.IN.('I')).AND.StandardStatus.IN.('A','P'))).OR.IIF(((.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),(IIF((ROSTER("SA","MemberKeyNumeric") != .EMPTY.),(ROSTER("SA","MemberStatus").IN.('A')),.FALSE.)),.TRUE.)
Rule Unique ID
9ec77f7c-e304-4220-9df0-dcbd83e1a5c6
Rule Number
29