Page 5234 HR Confidential Comment Sheet
- App
- Base Application
- Namespace
- Microsoft.HumanResources.Employee
- Versions
- 17-28
- Source table
- 5219
Versions171819202122232425262728
Source29
Source in 29
src/Layers/W1/BaseApp/HumanResources/Employee/HRConfidentialCommentSheet.Page.al70 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.HumanResources.Employee;
page 5234 "HR Confidential Comment Sheet"
{
AutoSplitKey = true;
Caption = 'Confidential Comment Sheet';
DataCaptionExpression = Caption(Rec);
DelayedInsert = true;
LinksAllowed = false;
MultipleNewLines = true;
PageType = List;
SourceTable = "HR Confidential Comment Line";
layout
{
area(content)
{
repeater(Control1)
{
ShowCaption = false;
field(Date; Rec.Date)
{
ApplicationArea = Comments;
}
field(Comment; Rec.Comment)
{
ApplicationArea = Comments;
}
field("Code"; Rec.Code)
{
ApplicationArea = BasicHR;
Visible = false;
}
}
}
}
actions
{
}
trigger OnNewRecord(BelowxRec: Boolean)
begin
Rec.SetUpNewLine();
end;
var
Employee: Record Employee;
ConfidentialInfo: Record "Confidential Information";
#pragma warning disable AA0074
Text000: Label 'untitled';
#pragma warning restore AA0074
procedure Caption(HRCommentLine: Record "HR Confidential Comment Line"): Text
begin
if ConfidentialInfo.Get(HRCommentLine."No.", HRCommentLine.Code, HRCommentLine."Table Line No.") and
Employee.Get(HRCommentLine."No.")
then
exit(HRCommentLine."No." + ' ' + Employee.FullName() + ' ' +
ConfidentialInfo."Confidential Code");
exit(Text000);
end;
}