Skip to content

IsCommittedParentChangeAllowed - DataDictionary

Called to determine if the server's parent is allowed to be switched

Type: Function
Return Data Type: Boolean

Parameters

Parameter Type Description
iServer Integer Main File of Parent Server DDO to check

Syntax

Function IsCommittedParentChangeAllowed Integer iServer Returns Boolean

Call Example

Get IsCommittedParentChangeAllowed iServer to BooleanVariable

Description

Called to determine if the server's parent is allowed to be switched. It assumes you first check IsCommitted to see if the record is actually committed; prior to being committed, you can always switch parent records.

Sample

This is a good place to augment to check if ParentNoSwitchIfCommitted but you wish to allow conditional switching of parent records.

Function IsCommittedParentChangeAllowed Integer iServer Returns Boolean
    Boolean bChangeAllowed bTransFound

    Forward Get IsCommittedParentChangeAllowed iServer To bChangeAllowed

    If (not(bChangeAllowed) AND iServer = Customer.File_Number) Begin
        // ... do something
    End

    Function_Return bChangeAllowed
End_Function

See Also

AllowParentFind | ParentNoSwitchIfCommitted

Return Value

Returns True if a committed parent switch is allowed.