makos,
в чем трудность?
PHP код:
void clicked()
{
Query q;
QueryBuildDataSource qbDS;
;
super();
if(InventSum_ds.queryRun())
q = InventSum_ds.queryRun().query();
else
q = InventSum_ds.query();
qbDS = q.dataSourceTable(tableNum(InventTable));
if(! qbDS)
{
qbDS = q.dataSourceTable(tableNum(InventSum));
qbDS = qbDS.addDataSource(tableNum(InventTable));
qbDS.fetchMode(QueryFetchMode::One2One);
qbDS.joinMode(JoinMode::InnerJoin);
qbDs.relations(true);
qbDS = q.dataSourceTable(tableNum(InventDim));
qbDS.fetchMode(QueryFetchMode::One2One);
InventSum_ds.research();
}
}