project BLF > class BGenericReportAdapter > method isTableAvailable

function returns logical

Description

This function returns if the specified table is available.


Parameters


icComponentNameinputcharacterBusiness component
icReportNameinputcharacterThe name of the report.
icTableNameinputcharacterThe name of the table to check if it is available.


Internal usage


BLF
method TGenericReportAdapter.CreateSession


program code (program1/bgenericreportadapter.p)

/* Check is there already a dataset populated for this report */
FOR FIRST tDatasetInfo WHERE 
          tDatasetInfo.tcComponentName = icComponentName AND 
          tDatasetInfo.tcReportName    = icReportName    AND
          tDatasetInfo.tcTableName     = icTableName:
    RETURN VALID-HANDLE(tDatasetInfo.thDataset) AND 
           VALID-HANDLE(tDatasetInfo.thDataset:get-buffer-handle(icTableName):table-handle) AND
           tDatasetInfo.tlTableAvailable.
END.

return false.