PCTableConstraintRelationFacade::saveColumnSelectionServer Method [AX 2012]

Saves a column selection as a constraint relation which points to an attribute on a sub-component through intermediate sub-components.

server protected static PCTableConstraintColumnCategoryAttribute saveColumnSelectionServer(
    RefRecId _tableConstraintRecId, 
    container _packedPath, 
    PCTableConstraintColumnDefinitionRecId _columnDefinitionRecId, 
    PCTableConstraintColumnCatAttrRecId _existingConstraintRelationRecId)

Run On

Server

Parameters

_tableConstraintRecId
Type: RefRecId Extended Data Type
The table constraint record ID.
_packedPath
Type: container
The packed path of a sub-component attribute.
_columnDefinitionRecId
Type: PCTableConstraintColumnDefinitionRecId Extended Data Type
The column definition which should be assigned to the attribute.
_existingConstraintRelationRecId
Type: PCTableConstraintColumnCatAttrRecId Extended Data Type
The record ID of an existing constraint relation which should be updated or deleted.

Return Value

Type: PCTableConstraintColumnCategoryAttribute Table
The new or updated constraint relation.

Passing in 0 as the record ID for the column will delete an existing table constraint relation.

Show: