SET_REQUIRED

Resource: Property, Field : OccupantType

Description

When property type is residential income or land, OccupantType is required.

Error Messages

1) ERROR, the property type is 'residential income' or 'land', indicate that the field is required.

Fields referenced within this rule

OccupantType 

PropertyType 

StandardStatus 

Syntax with comments and error messages

//[ErrMsg1^ERROR, the property type is 'residential income' or 'land', indicate that the field is required.|LogicBlk1^TRUE|LogicBlk2^TRUE]
// The grandfather clause is met or...
(/*[LogicBlk1]*/(.ENTRY. != .EMPTY.).OR.(.OLDVALUE. != .EMPTY.).OR.((LASTStandardStatus = .EMPTY..OR.LASTStandardStatus.IN.('I')).AND.(StandardStatus.IN.('A')))).AND.
// the property type is 'residential income' or 'land' and the entry is empty.
(/*[LogicBlk2]*/.NOT.(PropertyType.IN.('Rinc','Land')).AND.(.ENTRY. = .EMPTY.))

Syntax only

((.ENTRY. != .EMPTY.).OR.(.OLDVALUE. != .EMPTY.).OR.((LASTStandardStatus = .EMPTY..OR.LASTStandardStatus.IN.('I')).AND.(StandardStatus.IN.('A')))).AND.(.NOT.(PropertyType.IN.('Rinc','Land')).AND.(.ENTRY. = .EMPTY.))

Rule Unique ID

3f6f4c7e-5c05-43aa-8e25-fcaa8db72fbb

Rule Number

156