Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Enabling Recipient name in Payment journal form

Posted on by 180

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

  • Maverick Profile Picture
    Maverick 180 on at
    RE: Enabling Recipient name in Payment journal form

    Thanks a lot Ievgen, that was really helpful

  • Verified answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Enabling Recipient name in Payment journal form

    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
    Maverick 180 on at
    RE: Enabling Recipient name in Payment journal form

    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.

  • Maverick Profile Picture
    Maverick 180 on at
    RE: Enabling Recipient name in Payment journal form

    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

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Enabling Recipient name in Payment journal form

    Hi Maverick,

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

    Best regards,

    Ludwig

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans