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
ServerParameters
- _pbaId
- Type: PBAId Extended Data Type
- _pbaGroupId
- Type: PBAGroupIdGroup Extended Data Type
- _pbaRuleTableConstraintId
- Type: PBARuleTableConstraintId Extended Data Type
Return Value
Type: booleantrue if the table constraint can be attached to the product model; otherwise false.
The attachment can be performed if:
-
The user inputs a non-existing group.
-
The selected group is already attached and is an array group.
-
Not all table constraint columns have a corresponding PBA variable.
-
Any of the variables in the table constraint are already attached to the product model.
-
The table constraint is non-existing.
Show: