edoc NAV archivelink Administration Guide
Breadcrumbs

Integrate the ECM drop zone on a Dynamics NAV page

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

  1. Start your NAV development environment.

  2. Open the default page that you want to extend with the ECM drop zone and make the following adjustments:

  3. Declare the global Boolean variable EdocArchivelinkDropZoneVisible.

  4. Create the element in the FactBoxArea container:

    1. Select the Part entry for Type and the Page entry for SubType.

    2. Enter the following under Name: EdocArchivelinkDropZone

  5. Open the properties overview of the element under View > Properties.

  6. Update the entries for the following properties:

    1. Enter the value EdocArchivelinkDropZoneVisible for Visible.

    2. Enter the value Edoc Archivelink DropZone for PagePartID.

  7. Close the dialog.

  8. Open the C/AL editor for the page to be customized with F9 or C/AL Code.

  9. Customize the following:

    1. Place the following lines of code in the OnOpenPage() trigger:

      CurrPage.EdocArchivelinkDropZone.PAGE.SetCurrPageData(Rec, CurrPage.OBJECTID(FALSE));
      EdocArchivelinkDropZoneVisible := CurrPage.EdocArchivelinkDropZone.PAGE.GetPageVisible();
      
    2. Place the following line of code in the OnAfterGetCurrRecord() trigger:

      CurrPage.EdocArchivelinkDropZone.PAGE.SetCurrPageData(Rec, CurrPage.OBJECTID(FALSE));
      
  1. Save the changes and compile the page.


See also