Calculating whether to schedule an inspection
You can calculate whether an inspection can be scheduled using a schedule condition formula. For example, you could write a formula that classifies an inspection type as unable to be scheduled in applications at the Issued milestone. You specify a schedule condition formula for an inspection type when you when you define the inspection type.
Schedule condition formulas use the oBuildingApplication
object (an instance of the Hansen.CDR.Building.iBuildingApplication
class) and the oInspection
object (an instance of the Hansen.CDR.Building.iInspection
class) to set IsInspectionScheduleable
to either True or False. If
the formula returns True, the inspection can be
scheduled. If the formula returns False, Infor Public Sector doesn't update the inspection schedule
information. For more information about this object and for sample code, click the
Information tab in the
Formula Editor.
Example
This formula classifies an inspection type as unable to be scheduled in applications at the Issued milestone.
IsInspectionScheduleable = True
If (oBuildingApplication.ProcessState.Code.ToUpper =
"ISSUED") Then
IsInspectionScheduleable = False
End If