Table 99000778 Standard Task, source in 29
Source29
src/Layers/W1/BaseApp/Manufacturing/Routing/StandardTask.Table.al68 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace Microsoft.Manufacturing.Routing;
table 99000778 "Standard Task"
{
Caption = 'Standard Task';
DataCaptionFields = "Code", Description;
LookupPageID = "Standard Tasks";
DataClassification = CustomerContent;
fields
{
field(1; "Code"; Code[10])
{
Caption = 'Code';
ToolTip = 'Specifies the standard task code.';
NotBlank = true;
}
field(2; Description; Text[100])
{
Caption = 'Description';
ToolTip = 'Specifies the description of the standard task.';
}
field(3; "Description 2"; Text[50])
{
Caption = 'Description 2';
DataClassification = CustomerContent;
ToolTip = 'Specifies additional description text.';
}
}
keys
{
key(Key1; "Code")
{
Clustered = true;
}
}
fieldgroups
{
}
trigger OnDelete()
var
StdTaskTool: Record "Standard Task Tool";
StdTaskPersonnel: Record "Standard Task Personnel";
StdTaskDescript: Record "Standard Task Description";
StdTaskQltyMeasure: Record "Standard Task Quality Measure";
begin
StdTaskTool.SetRange("Standard Task Code", Code);
StdTaskTool.DeleteAll();
StdTaskPersonnel.SetRange("Standard Task Code", Code);
StdTaskPersonnel.DeleteAll();
StdTaskDescript.SetRange("Standard Task Code", Code);
StdTaskDescript.DeleteAll();
StdTaskQltyMeasure.SetRange("Standard Task Code", Code);
StdTaskQltyMeasure.DeleteAll();
end;
}