def generate_table_rows
        table_rows = []

        if @args[:columns] && @args[:columns].length > 0
          # manage case with custom columns
          table_rows = generate_table_rows_from_columns_functions(@args[:columns])
        elsif @records && @records.length > 0
          # manage case without custom columns
          table_rows = generate_table_rows_from_columns_functions(@records.first.attributes.keys)
        end

        return table_rows
      end
def generate_table_rows
        table_rows = []

        if @args[:columns] && @args[:columns].length > 0
          # manage case with custom columns
          table_rows = generate_table_rows_from_columns_functions(@args[:columns])
        elsif @records && @records.length > 0
          # manage case without custom columns
          table_rows = generate_table_rows_from_columns_functions(@records.first.attributes.keys)
        end

        return table_rows
      end
This function generate the rows fr the table.