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)

Counting journal post using x++

(0) ShareShare
ReportReport
Posted on by 2,426

Good evening,

In inventory management --> Journals --> Counting Journal.

1.Created one journal and created 2 lines.

2.Created one class and attached to Action menu item.and placed in Journal Lines form Action pane.

3.I have created one class to post automatically when that button is clicked from Journal lines form.

Then journal should post.

(There is post button but i am performing some update .as well we are disabling Post button.

 So that the new button will do only posting).

4.The class is working fine.

But when i am trying to post

then error populates as The journal is locked by current userid .and posting is cancelled.

Can any one tell me how can be done posting while the journal line form is opened.

Regards.

Have a great day.

*This post is locked for comments

I have the same question (0)
  • Ajit Profile Picture
    8,755 on at
    RE: Counting journal post using x++

    Are you adding your custom class in batch for posting the journal?

  • Konrad U Profile Picture
    804 on at
    RE: Counting journal post using x++

    Since the journal is open in use and capable of being modified it is not post capable. Not sure why you would want to do that. If you want to do individual count adjustments you can do that elsewhere without a problem.

  • AX 2012 r3 Profile Picture
    2,426 on at
    RE: Counting journal post using x++

    Hi Sukrut,

    Thank you for your quick reply.

    i am not re inventing the whole functionality.

    Actually the new button is for Approve purpose.

    If once the user selects only particular lines and click approve (New Button).

    then it should update customized approve field in InventJournalTrans and post the journal with only the selected lines.

    The remaining unselected lines should be deleted.

    Now you please suggest.

    I am not going to disturb standard functionality.

    That is the reason for creating new class.

    Regards.

    Have a great day.

  • AX 2012 r3 Profile Picture
    2,426 on at
    RE: Counting journal post using x++

    Hi,

    if i post through job.

    It is posting perfect

    but when i open the lines journal and trying to post that it is throwing error.

    Regards.

    Have a great day

  • AX 2012 r3 Profile Picture
    2,426 on at
    RE: Counting journal post using x++

    Hi,

    How can be unlocked.

    Can you please suggest

    i should update ledgerjournaltable (locked - No)

    then is should perform that post.

    Is that what you are saying.

    If  not please suggest alterntive solution.

  • AX 2012 r3 Profile Picture
    2,426 on at
    RE: Counting journal post using x++

    i will click that button by opening lines form .

    How standard is working if the form is opened you can be able to post.

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

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans