Hi all
I'm hoping to get confirmation on this subject please. Using the bulk record set operation, "query::insert_recordset" in the report data provider class I was wanting to aggregate a few fields but can't get it right. I get the error: "There is mismatch between source and target fields for insert_Recordset."
One user suggested using this mapping:
fieldsMapping.insert(
<Target Table fieldStr>,
[ds.uniqueId(), strFmt("SUM(%1)", <Source table fieldStr>)])
e.g.
strFmt("SUM(%1)", fieldStr(InventTrans, CostAmountPhysical))
but, unfortunately this doesn't work either.
I've seen many examples where the aggregations are performed after the initial 'query::insert_recordset' using set based operators: 'insert_recordset' and 'update_recordset' but I was hoping to include the aggregations in the initial query. Has anybody managed to do this or have confirmation on whether it is supported or not?
Thanks in advance
Stephen
*This post is locked for comments
I have the same question (0)