If you need the ECM drop zone on a Dynamics NAV page where the drop zone is not integrated, you can develop your own integration using the application language (C/AL).
Here's how
-
Start your NAV development environment.
-
Open the default page that you want to extend with the ECM drop zone and make the following adjustments:
-
Declare the global Boolean variable EdocArchivelinkDropZoneVisible.
-
Create the element in the FactBoxArea container:
-
Select the Part entry for Type and the Page entry for SubType.
-
Enter the following under Name: EdocArchivelinkDropZone
-
-
Open the properties overview of the element under View > Properties.
-
Update the entries for the following properties:
-
Enter the value EdocArchivelinkDropZoneVisible for Visible.
-
Enter the value Edoc Archivelink DropZone for PagePartID.
-
-
Close the dialog.
-
Open the C/AL editor for the page to be customized with F9 or C/AL Code.
-
Customize the following:
-
Place the following lines of code in the OnOpenPage() trigger:
CurrPage.EdocArchivelinkDropZone.PAGE.SetCurrPageData(Rec, CurrPage.OBJECTID(FALSE)); EdocArchivelinkDropZoneVisible := CurrPage.EdocArchivelinkDropZone.PAGE.GetPageVisible(); -
Place the following line of code in the OnAfterGetCurrRecord() trigger:
CurrPage.EdocArchivelinkDropZone.PAGE.SetCurrPageData(Rec, CurrPage.OBJECTID(FALSE));
-
-
Save the changes and compile the page.
See also