17 May 2021

How to override lookup form control methods using extensions / events in d365FO

 How to stop standard lookup and override the new lookup method.

FormControlCancelableSuperEventArgs formControlCancelSuper = e as FormControlCancelableSuperEventArgs;

        SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(ProjCategory), sender);

      

        sysTableLookup.parmQuery(query);

        sysTableLookup.performFormLookup();

        formControlCancelSuper.CancelSuperCall();

No comments:

Post a Comment

Give me the commetns and solutions

Ledger Voucher creation Framework and x++ code to create ledger voucher

 Please click her for MS reference file Below is the out of the box example reference and code. SalesInvoiceJournalPostSubBill_Extension->...