Calculating whether to add an inspection
You can use an AddOnCondition formula to calculate whether an inspection is added to an application. For example, you could write a formula that requires a fireplace inspection for any new, single-family dwelling that includes a fireplace.
AddOnCondition formulas use the oPlanningApp
object (an instance of the Hansen.CDR.Planning.iPlanningApplication
class) to set AddOnCondition
to either True or
False.
You can also use properties and methods of the Inspection
object in your
formula. For example, you might want to specify the inspection types that the formula
applies to. To access inspection properties, select the node under in the tree. You must also use the node to indicate the type of record
(AssociatedRecordType.Inspection
).
For more information, and for sample code, click the Information tab in the Formula Editor.