This is done in the delete method of the backing entity.
The check takes place outside TTS:
// Check to see if the associated dimension attribute value has been used // in a way that would prevent deletion. if (!DimensionValidation::canDeleteEntityValue(this)) { throw error(strFmt("@SYS134392", this.PersonnelNumber)); }And the update takes place within TTS:
// Update the associated dimension attribute value. DimensionAttributeValue::updateForEntityValueDelete(this);
Examples of this can be found several places in standard AX, for example on the tables:
- ProjTable
- HcmWorker