Lookup QueryBuildRange
TransDate startDate, EndDate; startDate = mkDate(1,9,2017); endtDate = mkDate(1,10,2017); queryBuildRange.value(queryRange(StartDate, EndDate)); (ya da) queryBuildRange.value(queryRange(mkDate(1,9,2017), mkDate(1,10,2017)));
Başka bir örnek;
public void lookup() { Query query = new Query(); QueryBuildDataSource queryBuildDataSource; QueryBuildRange queryBuildRange; QueryBuildRange queryBuildRange2; QueryBuildRange queryBuildRange3; SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(SalesTable), this); if(DateFrom.dateValue() && DateTo.dateValue()) { sysTableLookup.addLookupfield(fieldNum(SalesTable, CustAccount)); queryBuildDataSource = query.addDataSource(tableNum(SalesTable)); queryBuildDataSource.addGroupByField(fieldNum(SalesTable, CustAccount)); queryBuildRange = queryBuildDataSource.addRange(fieldNum(SalesTable, createdDateTime)); queryBuildRange.value(SysQuery::range(this.dboConvertDateToDateTime(DateFrom.DateValue()), dateNull())); queryBuildRange = queryBuildDataSource.addRange(fieldNum(SalesTable, createdDateTime)); queryBuildRange.value(SysQuery::range(dateNull(), this.dboConvertDateToDateTime(DateTo.dateValue()))); queryBuildRange = queryBuildDataSource.addRange(fieldNum(SalesTable, InventSiteId)); queryBuildRange.value(editInventSiteId.text()); sysTableLookup.parmQuery(query); sysTableLookup.performFormLookup(); }
Hiç yorum yok:
Yorum Gönder