官术网_书友最值得收藏!

Updating custom report layouts using upgrade codeunits

In Microsoft Dynamics NAV 2016, a report has a built-in report layout by default; it can be a Word report layout, a Standard RDLC report layout, or both. You can update custom report layouts with the help of upgrade codeunits. It handles all the changes in the report datasets that affect the report layouts. Upgrade codeunits enable you to programmatically update multiple custom report layouts in the database to changes in report datasets, which cannot be resolved by users from the Microsoft Dynamics NAV client; however, there are certain changes to the dataset that the user is required to modify manually in the report layouts before they can be used. These types of change include, for example, deleted fields or field name conflicts as a result of renaming. Upgrade codeunits enable you to handle these breaking changes to report datasets and layouts without requiring end user interaction.

To design the report upgrade logic in an upgrade codeunit, you add the C/AL code that implements the report upgrade API (through .NET Framework interoperability) and a set of functions which are available in codeunit 9651: Document Report Mgt.. In the Microsoft Dynamics NAV application, codeunit 9651: Document Report Mgt. is the main component for running and maintaining customized report layouts.

We will talk more about this in Chapter 3, The C/AL and VB Programming.

Note

There are other C/AL upgrades such as the Try function, the FILTERPAGEBUILDER datatype, the HyperlinkHandler function type in test code, the Metadata Virtual table, the CLIENTTYPE option, and others, which are explained in Chapter 3, The C/AL and VB Programming, in detail.

主站蜘蛛池模板: 香格里拉县| 水富县| 东安县| 黄山市| 古交市| 九龙城区| 娄烦县| 合水县| 崇信县| 伊宁县| 正阳县| 灯塔市| 丘北县| 九台市| 金沙县| 依安县| 公安县| 弥勒县| 浦东新区| 陕西省| 灵台县| 天峻县| 辽中县| 菏泽市| 临猗县| 嘉兴市| 即墨市| 宁明县| 西安市| 巍山| 海林市| 镇江市| 兴城市| 汉沽区| 青海省| 华亭县| 南充市| 古蔺县| 菏泽市| 广东省| 金寨县|