Powered By Blogger

Calling a new form method from Extension – using CoC – D365 FO

 

I had a scenario where I had to call a new method in  one of the fields from Vendor Payment Journal Line.
The new method exists in Extension class of  Vendor Payment journal.(which is a form method). This has to be called in modified method of the field ‘Ledger Dimension’.
The steps are as follows
[ExtensionOf(formDataFieldStr(LedgerJournalTransVendPaym, LedgerJournalTrans , LedgerDimension))]
final class LedgerJournalTransVendPaymField_Extension
{
    public void modified()
    {
         next modified();
        element.newMethod();
     }
}

No comments:

Post a Comment

DisableStandredButton

 My requirement is to disable the delete button for journals that were posted:- After Posting the button is enabled fig:- Line level also th...