Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,88 +22,187 @@ page 2510 "Marketplace Extn Deployment"
{
area(Content)
{
field(ActiveUsers; ActiveUsersLbl)
group(DisclaimerStep)
{
Visible = Step = Step::Disclaimer;
ShowCaption = false;
Editable = false;
Style = Strong;
ToolTip = 'There might be other users working in the system.';
}
field(Warning; WarningLbl)
{
ShowCaption = false;
Editable = false;
ToolTip = 'Installing extensions during business hours will disrupt other users.';
}
field(RefreshInfo; RefreshInfoLbl)
{
ShowCaption = false;
Editable = false;
ToolTip = 'After installation, your session will refresh, and you can set up your extension.';
}
field(PreviewInfo; PreviewInfoLbl)
{
ShowCaption = false;
Editable = false;
MultiLine = true;
Style = Strong;
ToolTip = 'You are about to install a preview version of the extension.';
Visible = InstallPreview;
}
field(ImportantInfo; ImportantInfoLbl)
{
ShowCaption = false;
Editable = false;
Style = Strong;

group(DisclaimerHeader)
{
ShowCaption = false;
InstructionalText = 'Extension Installation';

field(DisclaimerText; DisclaimerLbl)
{
ApplicationArea = All;
ShowCaption = false;
Editable = false;
MultiLine = true;
ToolTip = 'Third-party extension disclaimer.';
}

field(LearnMoreCompliance; LearnMoreComplianceLbl)
{
ApplicationArea = All;
ShowCaption = false;
Editable = false;
Style = StrongAccent;
ToolTip = 'Learn what to consider when installing third-party apps.';

trigger OnDrillDown()
begin
Hyperlink(LearnMoreComplianceURLLbl);
end;
}

field(LearnMoreInstalling; LearnMoreInstallingLbl)
{
ApplicationArea = All;
ShowCaption = false;
Editable = false;
Style = StrongAccent;
ToolTip = 'Learn more about installing/uninstalling apps.';

trigger OnDrillDown()
begin
Hyperlink(InstallAppsURLLbl);
end;
}
}
}
field(ImportantDisclaimer; ImportantDisclaimerLbl)

group(InstallationStep)
{
Visible = Step = Step::Installation;
ShowCaption = false;
Editable = false;
MultiLine = true;
Style = None;
ToolTip = 'Installing applications may require dependencies to be installed.';

field(ActiveUsers; ActiveUsersLbl)
{
ApplicationArea = All;
ShowCaption = false;
Editable = false;
Style = Strong;
ToolTip = 'There might be other users working in the system.';
}
field(Warning; WarningLbl)
{
ApplicationArea = All;
ShowCaption = false;
Editable = false;
ToolTip = 'Installing extensions during business hours will disrupt other users.';
}
field(RefreshInfo; RefreshInfoLbl)
{
ApplicationArea = All;
ShowCaption = false;
Editable = false;
ToolTip = 'After installation, your session will refresh, and you can set up your extension.';
}
field(PreviewInfo; PreviewInfoLbl)
{
ApplicationArea = All;
ShowCaption = false;
Editable = false;
MultiLine = true;
Style = Strong;
ToolTip = 'You are about to install a preview version of the extension.';
Visible = InstallPreview;
}
field(ImportantInfo; ImportantInfoLbl)
{
ApplicationArea = All;
ShowCaption = false;
Editable = false;
Style = Strong;
}
field(ImportantDisclaimer; ImportantDisclaimerLbl)
{
ApplicationArea = All;
ShowCaption = false;
Editable = false;
MultiLine = true;
Style = None;
ToolTip = 'Installing applications may require dependencies to be installed.';
}
field(HelpLink; InstallAppsURLLbl)
{
ApplicationArea = All;
ShowCaption = false;
ToolTip = 'Read more about installing and uninstalling apps.';
Editable = false;
MultiLine = true;
Style = None;

trigger OnDrillDown()
begin
Hyperlink(InstallAppsURLLbl);
end;
}
field(Language; LanguageName)
{
ApplicationArea = All;
Caption = 'Language';
ToolTip = 'Specifies the language of the extension.';
Editable = false;

trigger OnAssistEdit()
var
Language: Codeunit Language;
begin
Language.LookupApplicationLanguageId(LanguageID);
LanguageName := Language.GetWindowsLanguageName(LanguageID);
end;
}
}
field(HelpLink; InstallAppsURLLbl)
}
}

actions
{
area(Processing)
{
action(Back)
{
ShowCaption = false;
ToolTip = 'Read more about installing and uninstalling apps.';
Editable = false;
MultiLine = true;
Style = None;
ApplicationArea = All;
Image = PreviousRecord;
Caption = 'Back';
ToolTip = 'Go back to the previous step.';
InFooterBar = true;
Enabled = Step <> Step::Disclaimer;
Visible = Step <> Step::Disclaimer;

trigger OnDrillDown()
trigger OnAction()
begin
Hyperlink(InstallAppsURLLbl);
if Step = Step::Installation then
Step := Step::Disclaimer;
CurrPage.Update();
end;
}
field(Language; LanguageName)

action(Continue)
{
Caption = 'Language';
ToolTip = 'Specifies the language of the extension.';
Editable = false;
ApplicationArea = All;
Image = NextRecord;
Caption = 'Continue';
ToolTip = 'Continue to the next step.';
InFooterBar = true;
Visible = Step = Step::Disclaimer;

trigger OnAssistEdit()
var
Language: Codeunit Language;
trigger OnAction()
begin
Language.LookupApplicationLanguageId(LanguageID);
LanguageName := Language.GetWindowsLanguageName(LanguageID);
Step := Step::Installation;
CurrPage.Update();
end;
}
}
}

actions
{
area(Processing)
{
action(Install)
{
ApplicationArea = All;
Image = Approve;
Caption = 'Install';
ToolTip = 'Install the extension.';
InFooterBar = true;
Visible = Step = Step::Installation;

trigger OnAction()
begin
Expand Down Expand Up @@ -144,6 +243,7 @@ page 2510 "Marketplace Extn Deployment"
LanguageID := GlobalLanguage();
LanguageName := LanguageManagement.GetWindowsLanguageName(LanguageID);
Clear(InstallSelected);
Step := Step::Disclaimer;
end;

trigger OnOpenPage()
Expand All @@ -159,11 +259,16 @@ page 2510 "Marketplace Extn Deployment"
InstallSelected: Boolean;
InstallPreview: Boolean;
AppID: Guid;
Step: Option Disclaimer,Installation;
ActiveUsersLbl: Label 'Note: There might be other users working in the system.';
WarningLbl: Label 'Installing extensions during business hours will disrupt other users.';
ImportantInfoLbl: Label 'Important';
ImportantDisclaimerLbl: Label 'When installing an AppSource app, it may require additional apps to be installed as dependencies. Make sure to review the provider''s terms of use and privacy policy review before proceeding. For more information on installing and uninstalling apps, see the link below.';
RefreshInfoLbl: Label 'After installation, your session will refresh, and you can set up your extension.';
PreviewInfoLbl: Label 'Note: A preview key was provided for the installation. A preview version of the extension is about to be installed. If a higher public version exists for your environment, it will be installed instead of the preview version.';
DisclaimerLbl: Label 'This extension/app is provided to you by a third-party publisher and not Microsoft. The extension/app may require additional apps to be installed as dependencies. Please review the providers'' terms and privacy policy before proceeding and note that the third-party publisher may not meet the same compliance and security standards as Dynamics 365 Business Central.';
LearnMoreComplianceLbl: Label 'Learn what to consider when installing third-party apps';
LearnMoreComplianceURLLbl: Label 'https://go.microsoft.com/fwlink/?linkid=2342556', Locked = true;
LearnMoreInstallingLbl: Label 'Learn more about installing/uninstalling apps';
InstallAppsURLLbl: Label 'https://go.microsoft.com/fwlink/?linkid=2260926', Locked = true;
}
Loading