Dear Experts
I have different columns in grid for Amount I want total at bottom of grid and grid is bound to custom table (ARM_INVOICEDETAIL) and their is no query in AOT how can i take sum of each column.
Thanks
Afridi
I found Below query on Martin Page
// Copy the query
Query query = new Query(SalesLine_ds.queryRun().query());
QueryBuildDataSource qbds = query.dataSourceTable(tableNum(SalesLine));
QueryRun qr;
Salesline summedTrans;
// Sum LineAmountMst
qbds.addSelectionField(fieldNum(SalesLine, LineAmount), SelectionField::Sum);
qr = new QueryRun(query);
// Run the query
qr.next();
// Get the data
summedTrans = qr.get(tableNum(SalesLine));
// Set the new sum to the control
RealEdit.realValue(summedTrans.LineAmount);
txtitemid.text("1000");
*This post is locked for comments