![]() |
#3 |
NavAx
|
Код: fieldId fid; tableid tid; Query q; QueryRun qr; QueryBuildDataSource qbds; Amount sumres = 0; common someTable; ; tid = tableNum(LedgerTrans); fid = fieldNum(LedgerTrans, recid); q = new Query(); qbds = q.addDataSource(tid); qbds.addSelectionField(fid, SelectionField::Sum); qr = new QueryRun(q); qr.next(); someTable = qr.get(tid); sumres = someTable.(fid); |
|