Calculating whether to add a review

You can use an AddOnCondition formula to calculate whether a review is added to a license. For example, you could write a formula that requires a background check.

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 Review object in your formula. For example, you might want to specify the review types that the formula applies to. To access review properties, select the Review node under TradeLicenseSignature in the Methods and Properties tree. You must also use the AssociatedRecordType node to indicate the type of record (AssociatedRecordType.Review).

For more information, and for sample code, click the Information tab in the Formula Editor.

Examples

This formula adds a review if the license is in the Foundation license category:


AddOnCondition = False
If oTradeLicense.LicenseCategory.Code.ToUpper = "FOUND" Then
  AddOnCondition = True
End If

This formula adds a review if there is nothing recorded for the license's location:


AddOnCondition = False
If oTradeLicense.Location="" Then
  AddOnCondition = True
End If