D365FO – Filter a form date field showing only today’s records

 Do you want to filter a form date field showing only today’s records? You can use AddRange Method and “T” value like shown below

public void init()
   {
       super();

       QueryBuildDataSource    qbds   = vendinvoicejour_ds.queryBuildDataSource();
            qbds.addRange(fieldNum(ots_SlabSheetsOpenSalesOrdersCalculation, DateElab)).value('t');        
   }

Comments