Page 5448 Automation Extension Depl., source in 29
Source29
src/Layers/W1/BaseApp/Modules/System/ExtensionManagement/AutomationExtensionDepl.Page.al109 lines, Copyright (c) Microsoft Corporation. MIT
namespace System.Apps;
page 5448 "Automation Extension Depl."
{
APIGroup = 'automation';
APIPublisher = 'microsoft';
Caption = 'ExtensionDeploymentStatus', Locked = true;
DelayedInsert = true;
DeleteAllowed = false;
Editable = false;
EntityName = 'extensionDeploymentStatus';
EntitySetName = 'extensionDeploymentStatus';
InsertAllowed = false;
ModifyAllowed = false;
PageType = API;
RefreshOnActivate = true;
SourceTable = "NAV App Tenant Operation";
layout
{
area(content)
{
repeater(Group)
{
field(name; AppName)
{
ApplicationArea = All;
Caption = 'name', Locked = true;
ToolTip = 'Specifies the name of the App.';
}
field(publisher; Publisher)
{
ApplicationArea = All;
Caption = 'publisher', Locked = true;
ToolTip = 'Specifies the name of the App Publisher.';
}
field(operationType; OperationType)
{
ApplicationArea = All;
Caption = 'operationType', Locked = true;
ToolTip = 'Specifies the deployment type.';
}
field(status; Rec.Status)
{
ApplicationArea = All;
Caption = 'status', Locked = true;
ToolTip = 'Specifies the deployment status.';
}
field(schedule; Schedule)
{
ApplicationArea = All;
Caption = 'schedule', Locked = true;
ToolTip = 'Specifies the deployment Schedule.';
Width = 12;
}
field(appVersion; Version)
{
ApplicationArea = All;
Caption = 'appVersion', Locked = true;
ToolTip = 'Specifies the version of the App.';
Width = 6;
}
field(startedOn; Rec."Started On")
{
ApplicationArea = All;
Caption = 'startedOn', Locked = true;
ToolTip = 'Specifies the deployment start date.';
}
}
}
}
actions
{
area(processing)
{
}
}
trigger OnAfterGetRecord()
var
ExtensionManagement: Codeunit "Extension Management";
begin
if Rec."Operation Type" = 0 then
OperationType := OperationType::Install
else
OperationType := OperationType::Upload;
ExtensionManagement.GetDeployOperationInfo(Rec."Operation ID", Version, Schedule, Publisher, AppName, Rec.Description);
if Rec.Status = Rec.Status::InProgress then
ExtensionManagement.RefreshStatus(Rec."Operation ID");
end;
trigger OnOpenPage()
begin
Rec.SetCurrentKey("Started On");
Rec.Ascending(false);
end;
var
Version: Text;
Schedule: Text;
Publisher: Text;
AppName: Text;
OperationType: Option Upload,Install;
}