Saturday, December 29, 2018

Form Level Event Handler In D365

"Form" methods, we can write  "Pre" and "Post" event handlers for the existing/new/override methods. For the Form > Init() methods we can write the "Pre" and "Post" event handler.
 Create a new class for event handler and add the "Pre" or "Post" methods

[PostHandlerFor(formStr(LedgerJournalTransCustPaym), formMethodStr(LedgerJournalTransCustPaym, init))]
public static void LedgerJournalTransCustPaym_Post_init(XppPrePostArgs args)
{
        info("Write Your Code Here");
     
}

No comments:

Post a Comment