PBARuleTableConstraintClass::validateAttachTableConstraintToModel Method [AX 2012]

Validates if a specified table constraint can be attached to a specified product model.

server public static boolean validateAttachTableConstraintToModel(
    PBAId _pbaId, 
    PBAGroupIdGroup _pbaGroupId, 
    PBARuleTableConstraintId _pbaRuleTableConstraintId)

Run On

Server

Parameters

_pbaId
Type: PBAId Extended Data Type
_pbaGroupId
Type: PBAGroupIdGroup Extended Data Type
_pbaRuleTableConstraintId
Type: PBARuleTableConstraintId Extended Data Type

Return Value

Type: boolean
true if the table constraint can be attached to the product model; otherwise false.

The attachment can be performed if:

  1. The user inputs a non-existing group.

  2. The selected group is already attached and is an array group.

  3. Not all table constraint columns have a corresponding PBA variable.

  4. Any of the variables in the table constraint are already attached to the product model.

  5. The table constraint is non-existing.

Show: