18.01.2006, 15:05 | #1 |
Участник
|
Ни как не могу создать запрос
Код: public void init() { queryBuildDataSource queryBuildDataSource; ; super(); rassetTransDate = this.args().caller().rassetTransDate(); rassetStandardId = this.args().caller().assetStandard(); zeroBookValue = this.args().caller().zeroBookValue(); queryBuildDataSource = this.query().dataSourceName("RAssetTable").addDataSource(tableNum(RAssetStandards)); queryBuildDataSource.fetchMode(JoinMode::EXISTSJOIN); queryBuildDataSource.relations(false); queryBuildDataSource.addLink(fieldnum(RAssetTable, accountNum), fieldnum(RAssetStandards, assetId)); queryBuildDataSource.addRange(fieldnum(RAssetStandards, assetStandardId)).value(queryValue(rassetStandardId)); queryBuildDataSource.addSelectionField(fieldnum(RAssetTable, ROP_AbacusNum_3), SelectionField::Min); rassetSumTrans = RAssetSumCalc_Trans::newAssetPeriod((select firstonly RAssetTable).AccountNum, rassetStandardId, rassetTransDate); } Помогите плз, целый день мучаюсь. |
|