project BLF > class BGenericReportAdapter > method getTableNameList

function returns character

Description

Return the list of tables in the report resultset of the report that was last run with method openReport.


Parameters


icComponentNameinputcharacter
icReportNameinputcharacter
ocTableNameListoutputcharacter


Internal usage


BLF
method BGenericReportAdapter.openReport


program code (program5/bgenericreportadapter.p)

ocTableNameList = "":U.

/* Build up a ";" seperated list of each table in the dataset */
FOR EACH tDatasetInfo WHERE tDatasetInfo.tcComponentName = icComponentName
                         AND tDatasetInfo.tcReportName = icReportName NO-LOCK:
    ocTableNameList = ocTableNameList + tDatasetInfo.tcTableName + ";":U.
END.

ocTableNameList = TRIM(ocTableNameList, ";":U).