简体   繁体   English

Datagrid markChanged X ++(AX Dynamics 2012)

[英]Datagrid markChanged X++ (AX Dynamics 2012)

In a form there's datasource, the datasource content is a table . 在某种形式的数据源中, 数据源的内容是一个 this table is the datasource of a grid. 该表是网格的数据源。 then I have markChange override method on the table to do business logic when I'm selecting record/s on the grid. 那么当我在网格上选择记录时,我在表上有markChange覆盖方法可以执行业务逻辑。

Now the question is, if my form datasource is a Query how could I do the markChange event? 现在的问题是,如果我的表单 数据源是一个Query ,我该怎么做markChange事件?

If you add a query to your datasources node of your form it should expand with all the tables in the query. 如果将查询添加到表单的数据源节点,则查询应随查询中的所有表一起扩展。

On the first table you can just override the markChanged method and it will be triggered when you select a record using the checkbox. 在第一个表上,您可以仅覆盖markChanged方法,并且使用复选框选择记录时将触发该方法。

The markChanged is triggered on the first table though, not on the others. 不过, markChanged是在第一个表上触发的,而不是在其他表上触发的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM