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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Enabling Recipient name in Payment journal form

(0) ShareShare
ReportReport
Posted on by 182

Hi Guys,

In LedgerJournalTransVendPaym Form, there is a Recipient name field

(LedgerJournalTrans_BankNegInstRecipientName) which will get enabled only when Account Type is Ledger. If the account type is Bank, customer or vendor, the Recipient name field is disabled.

I want to enable the Recipient name field even when we select account types other than Ledger. How can I do that? I tried going through all the table methods, data source methods, field methods but couldn't find the logic to enable the field. Please help.

Thanks in advance,

Maverick

*This post is locked for comments

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Maverick,

    For what reasons do you need this field enabled? What is the business requirement behind?

    Best regards,

    Ludwig

  • Maverick Profile Picture
    182 on at

    Hi Ludwig,

    I want this requirement for the purpose of cheque printing. Usually recipient name is taken from some master table for the selected accounts. Only in case of ledger account, we would be able to enter the recipient name. My requirement is that I want to enable the recipient name for all cases and if name is entered in recipient name field, that name is to be printed in the cheque. If recipient name field is empty, default name from the master table is to printed.

    Thanks,

    Maverick

  • Maverick Profile Picture
    182 on at

    Thanks Crispin,

    I have already checked the active method and also searched for the code segments with allowedit or enabled. But unable to find anything referring to BankNegInstRecipientName.

  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    Hi Maverick,

    Check enableFieldsActive() method of LedgerJournalFormTrans class. There you will see next code:

        if (ctrlRecipientName)
        {
            ctrlRecipientName.visible(BankParameters::find().AllowBankLedgerCheck);
            ctrlRecipientName.allowEdit(ledgerJournalTrans.AccountType == LedgerJournalACType::Ledger);
        }


     You need to change it. Please note that  LedgerJournalTransVendPaym  form works with LedgerJournalFormTrans_Payment class that is derived from LedgerJournalFormTrans, so all changes should be done in LedgerJournalFormTrans_Payment after super().

  • Maverick Profile Picture
    182 on at

    Thanks a lot Ievgen, that was really helpful

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans