AX 2012: Enable Disable Buttons on PurchTable SalesTable Forms

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

1. Classes\PurchTableInteraction
2. Classes\PurchTableInteractionHelper
3. Classes\SalesTableInteraction
4. Classes\SalesTableInteractionHelper

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.

Advertisements

One thought on “AX 2012: Enable Disable Buttons on PurchTable SalesTable Forms

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s