Query query;
QueryBuildDataSource qbds;
QueryBuildRange qbr;
int i,j;
int countDS, countRange;
query = New Query(queryStr(CustBalanceList));
countDS = query.dataSourceCount();
for(i =1; i<= countDS; i++)
{
qbds = query.dataSourceNo(i);
countRange = qbds.rangeCount();
for(j=1; j<= countRange;j++)
{
qbr = qbds.range(j);
info(strFmt("Datasource: %3, field: %1, values: %2", qbr.fieldName(), qbr.value(), qbr.dataSource().name()));
}
}
QueryBuildDataSource qbds;
QueryBuildRange qbr;
int i,j;
int countDS, countRange;
query = New Query(queryStr(CustBalanceList));
countDS = query.dataSourceCount();
for(i =1; i<= countDS; i++)
{
qbds = query.dataSourceNo(i);
countRange = qbds.rangeCount();
for(j=1; j<= countRange;j++)
{
qbr = qbds.range(j);
info(strFmt("Datasource: %3, field: %1, values: %2", qbr.fieldName(), qbr.value(), qbr.dataSource().name()));
}
}