Month: January 2015

AX 2012: Workflow execution account is not valid

Posted on Updated on

While performing Workflow Infrastructure Configuration, you might face the following exception:

Untitled

Exception:

The user account entered for the workflow execution account is not valid. Confirm that the account exists and is enabled.

Resolution:

Please perform the following steps to resolve the issue:

1. Click System administration > Setup > System > System service accounts.
2. Specify the Workflow execution account in the form.
3. Click OK.

Untitled

 

Once you have specified the workflow execution account then you should be able to perform the Workflow infrastructure configuration using the wizard.

Untitled

AX 2012: Enable Disable Buttons on PurchTable SalesTable Forms

Posted on Updated on

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.