If you need the edoc archivelink processes view and the ECM dropzone on a Business Central page where neither feature is integrated, you can develop an app with the wanted integration using Application Language (AL).
Here's how
-
Create a new AL project or extend an existing one. If needed, see the details on the Microsoft Learn website under Get started with AL (Business Central).
-
In the AL project, declare the edoc archivelink for Dynamics 365 BC app under dependencies in the app.json file to access the view and the ECM drop zone. If needed, see the details on the Microsoft Learn website under JSON files (Business Central).
-
Develop the following code in the AL project for each Business Central page that you want to extend with the view and ECM dropzone:
pageextension MyPageExtensionID "MyPageExtensionName" extends "ExtendedPageName"
{
layout
{
addfirst(factboxes)
{
part(edocArchivelinkDropZone; "Edoc Archivelink DropZone")
{
Caption = 'ECM dropzone';
ApplicationArea = All;
Visible = EdocArchivelinkDropZoneVisible;
}
part(edocArchivelinkAttachedDocuments; "Edoc ArchivelinkAt.Doc.FactBox")
{
ApplicationArea = all;
Visible = EdocArchivelinkAttachedDocumentsVisible;
}
}
}
var
EdocArchivelinkAttachedDocumentsVisible: Boolean;
edocArchivelinkDropZoneVisible: Boolean;
trigger OnOpenPage()
begin
CurrPage.edocArchivelinkDropZone.PAGE.SetCurrPageData(Rec, CurrPage.OBJECTID(FALSE));
edocArchivelinkDropZoneVisible := CurrPage.edocArchivelinkDropZone.PAGE.GetPageVisible();
EdocArchivelinkAttachedDocumentsVisible := CurrPage.edocArchivelinkAttachedDocuments.Page.GetPageVisible();
end;
trigger OnAfterGetCurrRecord()
begin
CurrPage.edocArchivelinkDropZone.PAGE.SetCurrPageData(Rec, CurrPage.OBJECTID(FALSE));
CurrPage.edocArchivelinkAttachedDocuments.PAGE.SetRecData(Rec);
end;
}
See also