Calculating whether to add an inspection
You can use an AddOnCondition formula to calculate whether an inspection is added to a trade license.
AddOnCondition formulas use the oTradeLicense
object (an instance of the Hansen.CDR.TradeLicense.iTradeLicense
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.