Skip to content

KVSMTCInstall#

Procedures#

InstallMasterLayoutAllCompanies(Integer) :#

Summary: Installs the master layout for a specific report into all companies. Use EventSubscriber for OnAfterInstallMasterLayoutForReport and then this method.

procedure InstallMasterLayoutAllCompanies(ReportId: Integer): 

Parameters:

  • ReportId: The ID of the report for which the master layout is being installed.

Events#

OnBeforeInstallMasterLayoutDefaults(Boolean) :#

Summary: Event that is triggered before the master layout is installed.

[IntegrationEvent(false, false)]
local procedure OnBeforeInstallMasterLayoutDefaults(var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCInstall", 'OnBeforeInstallMasterLayoutDefaults', '', false, false)]
local procedure DoSomethingOnBeforeInstallMasterLayoutDefaults(var IsHandled: Boolean)
begin
end;

Parameters:

  • IsHandled: Indicates whether the installation of the master layout has been handled by the subscriber.

OnBeforeInstallMasterLayoutAllCompanies(Integer, Boolean) :#

Summary: Event that is triggered before the master layout for a specific report is installed.

[IntegrationEvent(false, false)]
local procedure OnBeforeInstallMasterLayoutAllCompanies(ReportId: Integer; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCInstall", 'OnBeforeInstallMasterLayoutAllCompanies', '', false, false)]
local procedure DoSomethingOnBeforeInstallMasterLayoutAllCompanies(ReportId: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • Description: The description of the report layout selection.
  • MasterLayoutTempBlob: The temporary blob that contains the master layout data.
  • ReportId: The ID of the report for which the master layout is being installed.
  • IsHandled: Indicates whether the installation of the master layout for the report has been handled by the subscriber.

OnInstallMasterLayoutDefaults_OnAfterInstallMasterLayoutAllCompanies() :#

Summary: Event that is triggered after the master layout for a specific report has been installed.

[IntegrationEvent(false, false)]
local procedure OnInstallMasterLayoutDefaults_OnAfterInstallMasterLayoutAllCompanies(): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCInstall", 'OnInstallMasterLayoutDefaults_OnAfterInstallMasterLayoutAllCompanies', '', false, false)]
local procedure DoSomethingOnInstallMasterLayoutDefaults_OnAfterInstallMasterLayoutAllCompanies()
begin
end;

Parameters:

  • Description: The description of the report layout selection.
  • MasterLayoutTempBlob: The temporary blob that contains the master layout data.