Here is how you can make a list of datasources from a query object.
Query query;
QueryBuildDataSource qbds;
Counter child;
List listDataSources = new List(types::Class);
ListEnumerator le;
;
query = new Query(QueryStr(CustBillOfExchangeJourUpdate));
for (child = 1; child <= query.dataSourceCount(); child++)
{
listDataSources.addEnd(query.dataSourceNo(child));
}
le = listDataSources.getEnumerator();
while (le.moveNext())
{
qbds = le.current();
info (TableId2Name(qbds.table()));
}
No comments:
Post a Comment