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)

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

I have the same question (0)
  • Maverick Profile Picture
    182 on at
    RE: Enabling Recipient name in Payment journal form

    Thanks a lot Ievgen, that was really helpful

  • Verified answer
    Mea_ Profile Picture
    60,284 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
    182 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
    182 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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Community Member Profile Picture

Community Member 2

#2
Mea_ Profile Picture

Mea_ 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans