03.06.2006, 07:12 | #1 |
Участник
|
Query.pack() "съедает" qbds.addRelation, в отличии от qbds.relations(true).
Код: static void Job1(Args _args) { Query query, q; QueryRun queryRun; QueryBuildDataSource qbds; DictRelation dr; ; query = new Query(); qbds = query.addDataSource(TableNum(InventTable)); dr = new DictRelation(tableNum(InventTableModule)); dr.loadTableRelation(TableNum(InventTable)); qbds = qbds.addDataSource(tableNum(InventTableModule)); qbds.addRelation(dr); info(query.dataSourceNo(1).toString()); q = new Query(query.pack()); info(q.dataSourceNo(1).toString()); qbds.relations(true); q = new Query(query.pack()); info(q.dataSourceNo(1).toString()); } |
|