PRB: Error dialog shown when sending reports to a foreign contact from a Dutch language NAV system
This Zetadocs technical note applies to:
A dialog similar to the following will be shown when sending some Zetadocs enabled reports to a foreign contact from a NAV Windows Client configured to use Dutch language:
This happens when the user sends from the page for the individual record. When the Zetadocs delivery dialog launches, the error dialog will appear.
This is due to the report changing its language when running on a foreign contact. The name of the report and table information switches between English and Dutch. When the Zetadocs code runs, it currently expects the report name to be in one consistent language, if it is not, the error dialog will appear.
The following steps can be performed to modify the report code to use a consistent language when executing Zetadocs functions (note that your NAV VAR will be required to perform these steps):
- Open the Microsoft Dynamics NAV Development Environment or Classic Client depending on your version of NAV.
- Open the Object Designer (Shift + F12)
- Navigate to the affected report, select it and click the Design button.
- In the View menu, click C/AL Globals.
- Add the following Variable to the Variables list:
- In the View menu, click C/AL Code
- Add the following line to the beginning of the OnPreReport() function:
ZdClientLang := CurrReport.LANGUAGE;
- Add the following line to the beginning of the OnPostReport() function
CurrReport.LANGUAGE := ZdClientLang;
- In the File menu, click Save. A dialog will pop up asking to confirm the save. Ensure that the Compiled flag is ticked and click OK.
Note that this workaround will result in the attachment names sent via Zetadocs to be in the language of the NAV Windows Client rather than the language of the contact.
Equisys is aware of this issue and will update this technical note when a solution has been found.
Last updated 26th February 2015 (NT/JV)
Keywords: Raamcontract can’t be evaluated into type Option Pagina Notities moet worden gesloten