75) COC - Create a coc of the table modified method
/// <summary>
/// The <c>AvaEntAssetChecklistVariableOptionsDbt_Extension</c> contains the TransMountain extending logic for the <c>EntAssetChecklistVariableOptions</c> table.
/// </summary>
[ExtensionOf(tableStr(EntAssetChecklistVariableOptions))]
final class AvaEntAssetChecklistVariableOptionsDbt_Extension
{
/// <summary>
/// Processes the modified field event for TransMountain fields.
/// </summary>
/// <param name = "_fieldId">reference to field id</param>
public void modifiedField(FieldId _fieldId)
{
EntAssetChecklistVariableOptions entAssetChecklistVariableOptions;
next modifiedField(_fieldId);
// Default must be marked for only one check list line for the varaible.
if (_fieldId == fieldNum(EntAssetChecklistVariableOptions, AvaDefault))
{
if (this.AvaDefault)
{
update_recordset EntAssetChecklistVariableOptions
setting AvaDefault = NoYes::No
where entAssetChecklistVariableOptions.Variable == this.Variable
&& entAssetChecklistVariableOptions.LineNumber != this.LineNumber;
}
}
}
}
Comments
Post a Comment