mercoledì 1 ottobre 2014

HOWTO: AX 2012, How to use Date range and Enum in query value

Use this piece of code for fiter datasource beetween two date:


qbds.addRange(fieldNum(EIRTenderRecordTable, StartDate))
        .value(SysQuery::range(_requisitionDate, dateNull()));

qbds.addRange(fieldNum(EIRTenderRecordTable, EndDate))
        .value(SysQuery::range(dateNull(), _requisitionDate));

Nessun commento:

Posta un commento

Dynamics AX Notes has a new home

I started this blog in January 2014, while working on Dynamics AX 2012. It was a notebook: a fix found at night, a snippet I didn't want...