I have a problem with addGroupByField methods of data sources.
I have a data source that query TableA innerJoin InventDim by inventDimId,
but if I group TableA’s columns, then the fields of inventDim table is not show on the grid of the form.
this is my override method of
public void executeQuery() { //of data source (TableA) {
this.query().clearGroupBy();
qbds = this.query().dataSourceName(“TableA”);
qbds.addGroupByField(fieldNum(TableA, BatchNo));
qbds.addGroupByField(fieldNum(TableA, PalletNo));
qbds.addGroupByField(fieldNum(TableA, SiteId));
super();
}
but once I remove those 3 lines of addGroupByField, the fields of InventDim correctly show data in InventDim.
I was wondering if there is any thing wrong on my code?
many thanks.
Vincent