Page 7600 Base Calendar Card
- App
- Base Application
- Namespace
- Microsoft.Foundation.Calendar
- Versions
- 17-28
- Source table
- 7600
Versions171819202122232425262728
Source29
Source in 29
src/Layers/W1/BaseApp/Foundation/Calendar/BaseCalendarCard.Page.al115 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.Foundation.Calendar;
page 7600 "Base Calendar Card"
{
Caption = 'Base Calendar Card';
PageType = ListPlus;
SourceTable = "Base Calendar";
layout
{
area(content)
{
group(General)
{
Caption = 'General';
field("Code"; Rec.Code)
{
ApplicationArea = Suite;
Caption = 'Code';
ToolTip = 'Specifies a code for the base calendar you are setting up.';
trigger OnValidate()
begin
CurrPage.BaseCalendarEntries.PAGE.SetCalendarSource(Rec);
end;
}
field(Name; Rec.Name)
{
ApplicationArea = Suite;
}
field("Customized Changes Exist"; format(Rec."Customized Changes Exist"))
{
ApplicationArea = Suite;
Caption = 'Customized Changes Exist';
ToolTip = 'Specifies that the base calendar has been used to create customized calendars.';
}
}
part(BaseCalendarEntries; "Base Calendar Entries Subform")
{
ApplicationArea = Suite;
}
}
area(factboxes)
{
systempart(Control1900383207; Links)
{
ApplicationArea = RecordLinks;
Visible = false;
}
systempart(Control1905767507; Notes)
{
ApplicationArea = Notes;
Visible = false;
}
}
}
actions
{
area(navigation)
{
group("&Base Calendar")
{
Caption = '&Base Calendar';
Image = Calendar;
action("&Where-Used List")
{
ApplicationArea = Suite;
Caption = '&Where-Used List';
Image = Track;
ToolTip = 'View a list of the BOMs that the selected items are components of.';
trigger OnAction()
var
CalendarMgt: Codeunit "Calendar Management";
WhereUsedList: Page "Where-Used Base Calendar";
begin
CalendarMgt.CreateWhereUsedEntries(Rec.Code);
WhereUsedList.RunModal();
Clear(WhereUsedList);
end;
}
}
}
area(processing)
{
group("F&unctions")
{
Caption = 'F&unctions';
Image = "Action";
action("&Maintain Base Calendar Changes")
{
ApplicationArea = Suite;
Caption = '&Maintain Base Calendar Changes';
Image = Edit;
RunObject = Page "Base Calendar Changes";
RunPageLink = "Base Calendar Code" = field(Code);
ToolTip = 'View or edit a base calendar. You would typically enter any nonworking days that you want to apply to a base calendar that you are setting up, to change their status from working to nonworking. You can also use this window to edit a base calendar that has already been set up.';
}
}
}
}
trigger OnAfterGetRecord()
begin
Rec.CalcFields("Customized Changes Exist");
CurrPage.BaseCalendarEntries.PAGE.SetCalendarSource(Rec);
end;
}