Hi Martin ,
Its is "Certain things I don’t understand. that is right?
When I use debugger to check to whether It is fetching the value or not?
When I check on Rec Id its Shows < RecId = 0> and becomes Null. I have a query like this…
I have given a datasource added and it look like this ,
boolean ret;
Query q = new Query();
QueryRun qr = new QueryRun(this);
QueryBuildDataSource qbds1 ,qbds2,qbds3;
QueryBuildRange qbr1,qbr2,qbr3;
SysTableLookup sysTableLookup;
;
qbds1 = q.addDataSource(tablenum(ITTI_ElectricalMeterTypeMaster));
qbds2 = qbds1.addDataSource(tablenum(ITTI_ElectricalMeterMaster));
qbds3 = qbds2.addDataSource(tablenum(ITTI_ElectricalReadingOtherPlant));
qbds1.addLink(fieldnum(ITTI_ElectricalMeterTypeMaster,TypeIdentification),fieldnum(ITTI_ElectricalMeterMaster,TypeIdentification));
qbds1.relations(true);
qbds1.joinMode(joinmode::InnerJoin);
qbds1.fetchMode(queryFetchMode::One2Many);
qbds2.addLink(fieldnum(ITTI_ElectricalMeterMaster,MeterNumber),fieldnum(ITTI_ElectricalReadingOtherPlant,MeterNumber));
qbds2.relations(true);
qbds2.joinMode(joinmode::InnerJoin);
qbds2.fetchMode(queryFetchMode::One2Many);
qbds3.relations(true);
qbds3.joinMode(joinmode::InnerJoin);
qbds3.fetchMode(queryFetchMode::One2Many);
Now its shows the parent datasource is not connected
The data source is not embedded within a (parent) data source.
Please Kindly guide us.