AX 数据库日志如何选择正确的表名和字段名?

之前在配置AX数据库日志的时候发现列出的表名跟AOT的表名完全不同,后来发现显示的是Lable,这样很多表名显示的Lable一样,就很难去区分。今天在网上找到下面一篇文章将AX代码稍微做了修改,让Form可以显示正确的AOT表名,方便大家筛选。

原文来自于: https://dynamicsax-fico.com/tag/database-log/

If you ever used the Dynamics AX database log you might have realized that it can be pretty hard to find the correct tables and fields that you need to log. One of the underlying reasons for those difficulties is that the elements that you can find in the database log window use labels that differ from the names that you can find in the AOT. Due to the use of labels, some of the elements that you want to have tracked do even appear double in the database log setup window (see the following screenshot for an

example).

18_00_000
To overcome this issue and to alleviate the identification of the correct tables and fields that should be logged from a financial perspective, I made the following changes:


1. The first change made ensures that the AOT table names rather than labels are referred to. This can be realized by making the following adjustment (see the next screenshots).


18_00_100 18_00_200 18_00_300 18_00_400 18_00_500


Through the changes illustrated in the previous two screens, I ensure that the ConfigKeyLabels refer to names rather than labels.


2. The second change that I made is including the AOT name in addition to the label name in the Logsetup section of the database logging wizard

18_00_600


This change allows identifying the AOT table names and the original labels used and helps ensuring that the correct tables and fields get logged.

18_00_700

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值