Dears,
I develop one Form with multiple data sources. I have data source called CustInvoiceTrans on my Form. I'm trying to filter the data with InvoiceDate(FromDate and ToDate). For that I use executeQuery() method with below logic and once filter values passed the button Clicked have following code. But My gird is not filtering. Please advice.
public void executeQuery() //on custinvoiceTran datasoucre
{
QueryBuildRange qbr1;
qbr1 = SysQuery::findOrCreateRange(this.query().dataSourceTable(tableNum(CustInvoiceTrans)), fieldNum(CustInvoiceTrans, InvoiceDate));
if (FromDateCtrl.dateValue() !=systemDateGet() && ToDateCtrl.dateValue() !=systemDateGet())
{
qbr1.value(SysQuery::range(FromDateCtrl.dateValue(),ToDateCtrl.dateValue()));
}
else
{
qbr1.value(SysQuery::valueUnlimited());
}
super();
}
void clicked()
{
super();
CustInvoiceTrans_1_DS.executeQuery();
}
Thanks
Faqru
*This post is locked for comments
I have the same question (0)