web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Is it possible to add the column "Available physical" to the Transfer Order lines?

(0) ShareShare
ReportReport
Posted on by 139

I am fairly new to Microsoft AX, and I would like to ask if it is possible to add an Available physical item, for example on the Lines tab of the Transfer Orders whenever you add an Item, the available physical column would show up and display the available physical inventory for the selected item.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sefa Duman Profile Picture
    1,167 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Hi Sean,

    AX has classes and tables for calculating on hand inventory. It must be noted that inventory dimensions are vital in the inventory calculation. Firstly I recommend you to read this blog post to understand onhand calculation:

    community.dynamics.com/.../ax2012-x-code-to-get-on-hand-on-an-item

    You have to add new display method to your form for showing on hand and add a new field to your form. This method should be like this:

    public display InventQty displayAvailPhysical()

    {

      InventOnhand   inventOnhand;

      InventDimParm  inventDimParm;

      inventDimParm.initFromInventDim(InventDim::find(this.InventDimId));

      inventOnhand = InventOnhand::newParameters(this.ItemId, this.inventDim(), inventDimParm);

      return inventOnHand.availPhysical();

    }

    Don't forget setting the datasource and datamethod property.

    Best regars,

    Sefa.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Hello Sean The Michael,

    Why is it necessary to display this info in the transfer order form?

    Out of the box you can get this information with one click.

    Simply select inventory - onhand and you can see the available physical qty.

    0045.transferorder.png

    Best regards,

    Ludwig

  • Sean The Michael Profile Picture
    139 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Thank you for the information sir, I will review what you have posted, thank you.

  • Sean The Michael Profile Picture
    139 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Thank you for the input sir, but our instructor said that the available physical inventory must be displayed for checking of the inventory of the selected item.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Hi Sean The Michael,

    If this one click is too much then take a look at the field and the method in the on-hand view and how this is implemented.

    You should be able to 'borrow' from the code that is already there.

    Best regards,

    Ludwig

  • Sean The Michael Profile Picture
    139 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Thank you sirs for all the input, but I am still trying to resolve this because even though I have successfully created the column, the data does not show the output, even after setting the Data Source and Data Fields

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    You need to add the method to the data source of the form, or to the actual table. If you added it to the form level, it doesn't work.

  • Sean The Michael Profile Picture
    139 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    I have done that, yet it is still not working for me.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    The issue could be that the record is not refreshed after you have put in item id and inventdim settings. If you click F5, does it help?

    What if you debug it? Do you have ItemId and InventDim and InventDimParm going in to the InventOnhand::newParameters call?

    What if you create a job that calls the on hand query with same parameters that your display method - does it return anything?

  • Sean The Michael Profile Picture
    139 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Will do, thanks for the input sir.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans