Status check formulas
Formulas can be used for more complex status checks. For example, you could write a formula that requires a priority level in the Priority field or phone numbers in both the Mobile and Other Phone fields.
Status check formulas use the oTradeLicense
object (an instance of the Hansen.CDR.TradeLicense.iTradeLicense
class) to set StateCheck
to either True or False. If the formula
returns True, Infor Public Sector halts the licensing process. If the formula returns False, Infor Public Sector
doesn't halt the licensing process. For more information about this object and for
sample code, click the Information tab in the Formula Editor.
Examples
This formula requires an address for the license:
StateCheck = False
If oLicenseApp.Address.AddressKey = 1 Then
StateCheck = True
End If
This formula requires a license to have a license category:
StateCheck = False
If oTradeLicense.LicenseCategory.Code Then
StateCheck = True
End If