Table information

The Genero BDL API for GGC provides functions for retrieving information about tables.

Table 1. Functions for retrieving information about tables
Function Description
getColumnCount(
   tableName  STRING )
  RETURNS INTEGER 
Get the number of columns in a table.
getColumnName(
   tableName  STRING, 
   idx INTEGER  )
  RETURNS STRING
Get a table column name.
getColumnValue(
   tableName  STRING,
   columnName STRING,
   row  INTEGER )
  RETURNS STRING
Get the column value of a table, tree, or screen record at the specified row.
getColumnValues(
   tableName  STRING,
   columnName STRING )
  RETURNS DYNAMIC ARRAY OF STRING
Get column values of a table, tree, or screen record.
getCurrentColumn(
   tableName  STRING )
  RETURNS INTEGER 
Get the current column in a table.
getCurrentRow(
   tableName  STRING )
  RETURNS INTEGER
Get the current row of the table.
getTableOffset(
  tableName  STRING)
  RETURNS INTEGER
Get the table's current offset value.
getTableSize(
  tableName  STRING)
  RETURNS INTEGER
Get the table size.
getTablePageSize(
   name  ) RETURNS INTEGER
Get the number of visible rows of the table or tree.