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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Need help on creating new inventory journal form creation

(0) ShareShare
ReportReport
Posted on by 55

Hi All,

I am new to AX, my requirement is to create a new inventory journal type similar to InventJournalTransfer form, let say InventJournalTransferDemo.

For this I have created all the required forms, menu items (Transfer demo) etc.

Whenever I open the transfer demo form and try to create new line items it throw the error "Inventory transactions are not supported for this posting."

I have debugged the code and found through stackTrace that whenever I clicked on Lines button or create new button in the form it invokes "InventJournalMovement" form, but it should have invoked "InventJournalTransferDemo" form.

I am sure I am missing the calling of "InventJournalTransferDemo" form. but not sure where to call this form.

Please help me in this regard. It will be highly appreciated.

Thanks & Regards,

Pijush

*This post is locked for comments

I have the same question (0)
  • Dan Emreus Profile Picture
    1,162 on at

    How does you init method on the form looks like?

    It sounds like you have made a copy of InventJournalTransfer form and missed to remove logic neccessary for that form but not for yours.

    /Dan

  • PIJUSH SEN Profile Picture
    55 on at

    Thanks for the reply Dan.

    Yes, you are correct. I have copied the InventJournalTransfer form and renamed it. The new form's init method is not being called only.

    Whenever I clicked on "Lines" button in the InventJournalTable form the "InventJournalMovement" form is being called instead of "InventJournalTransferDemo" form.

    Below is the sequence of call:

    \Classes\FormFunctionButtonControl\Clicked
    \Classes\SysSetupFormRun\init
    \Forms\InventJournalMovement\Methods\init
    \Classes\InventJournalFormTrans\formInitPost

    So instead of "\Forms\InventJournalMovement\Methods\init", it should have "\Forms\InventJournalTransferDemo\Methods\init"

    I hope this help you to suggest me the solution.

    Thanks,

    Pijush

  • Suggested answer
    Dan Emreus Profile Picture
    1,162 on at

    Ok I see.

    There are some steps missing for you.

    I think the problem is that your InventJournalTable form has the wrong type for your form. Based on the Enum InventJournalType a new form is opened.

    To start with you need to create a new value in the InventJournalType. Than you need a new Menu item display, copy menu item InventJournalTableTransfer and than set your new value as parameter.

    Than you will have to create a new journal name that is connected with you new Enum-value.

    There are a lof of steps in order to create a new journal type but I hope you will get further to your goal by doing this.

    /Dan

     

     

     

  • Verified answer
    PIJUSH SEN Profile Picture
    55 on at

    Thanks again Dan for the detailed information provided. I had already created/configured most of the things you mentioned. But I was missing to add my code in "menuItemStrLines" method of "InventJournalStatic" class. Now it is working fine for me.

    Thanks for your kind help !

    Pijush !!

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans