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 that requires a name in the Business Name field.
Status check formulas use the oLicenseApp
object (an instance of the Hansen.CDR.BusinessLicense.iLicenseApplication
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 halts the licensing process if the license's business type
is set to either None or Other. Note that the formula uses the enumeration
value from the LicenseBusinessType
enumeration
instead of the business type name. If you have the correct access rights, you can
view this enumeration using the Schema Manager.
StateCheck = False
If (oLicenseApp.TypeOfBusiness = 0)
Or (oLicenseApp.TypeOfBusiness = 5) Then
StateCheck = True
End If
This formula requires a license that has a doing-business-as name to also have a business name:
StateCheck = False
If (oLicenseApp.DBAName <> "") And (oLicenseApp.BusinessName = "") Then
StateCheck = True
End If