Posts

Showing posts from 2019

Dynamics ax 2012: Sample code for fetching records in tmp table using query and Insert record set

public static server void constructData(ASMARMatricsReportingTmp     _tmp,                                         TransDate                    _asOfDate,                                         TransDate                    _startDate,                                         ASMDateCriteria              _dateCriteria,                                         str2500                      _salesPool,                                          str2500                      _customerAccount,                                         str2500                      _company,                                         QueryRun                     _queryRun,                                          MenuItemNameDisplay          _menuItemName) {     UserConnection               userConn;     CustTable                    custTable;     SalesTable                   salesTable, salesTableLocal;     CustInvoiceJour              custInvoiceJourLocal;     Query               

D365: Modifying check report along with the slip text

Today I came across a requirement to modify the standard check format in D365F&O. The requirement was to modify the design and also change the slip text that displays on the check report. Below are the steps for reference purpose that I followed to achieve the desired solution: STEPS: 1. Duplicated the Check_US report in my specified Model. 2. Modified the design accordingly. 3. Create the extension of the "ChequeController" class in order to call my newly created report and design, the code is as below: [ ExtensionOf ( classStr ( ChequeController ))] final class LevChequeController_LevridgeEquity_Extension {     /// <summary>     /// Determine the report menu item.     /// </summary>     /// <param name = "_chequeFormType">The check form type.</param>     /// <param name = "_bankChequeLayout">The bank cheque layout table buffer.</param>     /// <returns>The menu item name</retur