Click or drag to resize

IRelationIsRequiredFilled Property

Are all the required fields filled out? Can we save the record? Checks if all properties that are required in this model is filled

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
bool IsRequiredFilled { get; }

Property Value

Type: Boolean
Boolean – true if all required fields are filled.

Implements

IModelBaseIsRequiredFilled
Examples

IsRequiredFilled

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objSO
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    set soRelation = objSO.database.GetRelation(1)
    if soRelation.isAvailable = true then
        msgbox "SORelation with relation_id = 1 is available"
    else
        msgbox "SORelation with relation_id = 1 is not available"
    end if
    if soRelation.isValid = true then
        msgbox "SORelation with relation_id = 1 is valid"
    else
        msgbox "SORelation with relation_id = 1 is not valid"
    end if
    if soRelation.isRequiredFilled = true then
        msgbox "All required fields for SORelation with relation_id = 1 are filled."
    else
        msgbox "There are still some required fields on SORelation with relation_id = 1 that are not filled."
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also