Correcting the InventTableModule Update Method

Before we start, in the current release of Dynamics AX R2, there is a tweak that we need to make to the AXInventModuleTable class in order to enable the Excel Add-In to update the data.

NOTE: This is part of the Creating an Excel template for Updating Product Costs and Prices blog series where we show how to create a template within Excel to update product costs and prices. If you want to see all of the other posts in this series, click here.

How to do it…

To create change that you have to make to the AXInventModuleTable class in order to enable the update from the Excel Add-In, follow these steps:

  1. Open up the AOT explorer, expand out the Classes group and find the save method.
  2. Replace the code in the save method with this:

    public void save()

    {

    //axInventTable.save();

    super();

    }

  3. After you have finished, save the changes, and also it may be a good idea to run an incremental CIL build.
Advertisements

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

%d bloggers like this: