Hi Community Experts,
I have developed a below form using Custom view as DataSource. On this form I have requirement to filter record in grid on click of Tile button with different ranges.
I have tried below code, but it is not working. Please guide me with the better solution to develop this kind of form or else let me know if anything is wrong in the query range code.
public void executeQuery() { Query Query; this.query().dataSourceTable(tableNum(AllSOLinesView)).clearRanges(); if(delaysSoLinesClicked) { this.query().dataSourceTable(tableNum(NCABAllSOLinesView)).addRange(fieldNum(NCABAllSOLinesView,ShippingDateConfirmed)).value(queryValue(today())); } else if(UnConfirmedSoLinesClicked) { this.query().dataSourceTable(tableNum(NCABAllSOLinesView)).addRange(fieldNum(NCABAllSOLinesView,ShippingDateConfirmed)).value(queryValue("1900-01-01 00:00:00.000")); } else { super(); } }