最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

AX 2012: Enable Disable Buttons on PurchTable SalesTable Forms

网络文摘 William 2796浏览 0评论

To enable/disable buttons on PurchTable/SalesTable form, you can customize their respective interaction classes:

1. ClassesPurchTableInteraction
2. ClassesPurchTableInteractionHelper
3. ClassesSalesTableInteraction
4. ClassesSalesTableInteractionHelper

Let’s say, for example, I want to enable the Configure line button under Product and Supply menu:

Untitled

All you need to do is to find and customize the right method which controls the enabling/disabling of the button. In this case it is SalesTableInteractionHelper.parmButtonConfigureLineEnabled():

Untitled

After compiling, you can see the button enabled!

Untitled

Warning:

In the example above, I am returning true without any condition to enable the button. This has been done just for demonstration purpose. You should be controlling the enabling of the button based on any condition that suits your business requirement.


发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址