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)

Infolog Show - Posted General Journal

(0) ShareShare
ReportReport
Posted on by

For the infolog, you can have a 'show' button which allows a user to drill down to a document. In my case I'm opening a General journal batch. The problem is when the General journal form first opens, only open journals will be shown so if the journal is posted the user must manually change the Show option to All.

Take the following job example and you will see the behavior I'm referring to (change '000410_010' to a posted journal):

LedgerJournalTable ledgerJournalTable = LedgerJournalTable::find('000410_010');

info('Test message', '', SysInfoAction_TableField::newBuffer(ledgerJournalTable));

I had the same issue when the journal is on the form, but overriding the jumpRef() method solved that. I'm hoping the fix is just as easy for the infolog.

Not a big deal as it's just an extra step for the user, but it would be nice if there was a solution for this. Any ideas?

Thanks,

Nehal

*This post is locked for comments

I have the same question (0)
  • Ihab Barghout Profile Picture
    605 on at

    Dear Nehal,

    If you have access and privileges to customize the LedgerJournalTable Form adding the below script at the end of the init method of the form will solve it.

    if(!element.args().menuItemName() && element.args().caller() == null)

       {

           AllOpenPostedField.selection(AllOpenPosted::All);

           journalFormTable.designSelectionChangeAllOpenPosted();

       }

    Regards,

    Ihab

  • Verified answer
    Nehal Mistry Profile Picture
    on at

    I found a way without having to customize the LedgerJournalTrans form. The only difference is the button label on the infolog will be 'General Journal' instead of 'Show', which is fine by me. Please see the code below:

    LedgerJournalTable ledgerJournalTable = LedgerJournalTable::find('000410_010');
    SysInfoAction_MenuFunction menuFunction = SysInfoAction_MenuFunction::newMenuItem('LedgerJournalTable3', MenuItemType::Display);
    menuFunction.parmCallerBuffer(ledgerJournalTable);
    info('Test message', '', menuFunction);

  • Suggested answer
    Community Member Profile Picture
    on at

    To change the description of the button, We must use the parmDescription() Method, like the following,

    SysInfoAction_MenuFunction menuFunction;

    menuFunction = SysInfoAction_MenuFunction::newMenuItem('InventJournalTableTransfer', MenuItemType::Display);
    menuFunction.parmCallerBuffer(inventJournalTable);
    menuFunction.parmDescription('Show');
    info(strFmt('Custom Invoice Journal created: %1', inventJournalTable.JournalId), '', menuFunction);

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