Upgrading ForNAV reports and layouts from OnPrem to Universal Code

To upgrade ForNAV reports and layouts from OnPrem to Universal Code:

  1. Download the ForNAV Report Pack (Universal Code) for OnPrem – ForNAV and install it using PowerShell.

     

  2. Open the ForNAV Designer and click Extensions, Upgrade reports and layouts to universal code.
  3.  

    If Business Central contains any ForNAV OnPrem reports or layouts, you see the following dialog:

     

    If you click No, a list with all ForNAV OnPrem reports or layouts is displayed in the browser.

     

  4. To start the upgrade, click Yes in the dialog.

     

  5. Select a backup folder:

 

When you have selected the backup folder, the upgrade starts.

 

Note that:

  • The extensions containing the current OnPrem ForNAV reports and custom OnPrem layouts will be stored in the Old subdirectory in the backup folder.
  • The extensions containing the current OnPrem ForNAV reports and custom OnPrem layouts will be converted to Universal code, uploaded to Business Central and stored in the New subdirectory in the backup folder.

 

If one of the extensions is a global extension or Show my code is set to false, the upgrade will fail and you must upgrade the extension manually using the ForNAV Converter.

—–

The JavaScript functions – SetRange, SetFilter, and Get – only work under some conditions for universal code. To resolve this, the best thing to do is to replace the calls with property values on the JavaScript records.

If a report is converted from Classic, we cannot guarantee that the AL-code works without changes. If the report has AL-section triggers with logic having side-effects where the code sets values on global variables, which are used directly or indirectly in the dataset, these values might not be reflected in the dataset.