FormObjectSet fos; int nextDS; ; for (nextDS = 1; nextDS <= rhrmOrderTransForm.dataSourceCount(); nextDS++) { fos = rhrmOrderTransForm.dataSource(nextDS); info(strFmt('DataSource name = %1',fos.name())); info(strFmt('tableId = %1',fos.cursor().tableId)); }