Hello,heres a scenario;
I have a query,which consists of some tables with some ranges and joins.In a form,I use this query,show it in a grid etc. no problem.
Now I want to add a button and a dateedit field to my form,and when the button is pressed, I want to refresh the query with the dateedit value.How can I achive that?
Currently tried the following but i get no results:
TransDate enddate;
Query q;
QueryBuildDataSource qdbs;
QueryBuildRange qbr;
enddate = TransDateEnd.dateValue();
q= InventTrans_1_ds.queryRun().query();
qdbs = q.dataSourceTable(tableNum(InventTrans));
qbr = qdbs.addRange(fieldNum(InventTrans,DatePhysical));
qbr.value("01\01\2014"); //hard coded for testing purposes.
InventTrans_1_ds.research(true);
*This post is locked for comments
I have the same question (0)