Hi, I am trying to loop through columns, and then through rows coming from a HubDB table. Per the Hubspot docs, it seems like I should be able to set the current row and current column ID I'm in in each of my loops to call <current row>.<current column name>, but that is not working for some reason. My code is below:
{% set comp_table = hubdb_table(2686696) %}
{% set comp_table_rows = hubdb_table_rows(2686696) %}
<div class="bdt-table" id="bdt-table">
<div class="container" id="spec-container">
<div class="row">
<div class="col-xs-12">
<table>
{% for column in comp_table.columns %}
{% set current_col = column.name %}
<tr>
<td class="table-spec-name"> {{ column.label }} </td>
{% for row in hubdb_table_rows(2686696) %}
<td class="table-spec-name"> {{ row.current_col }} </td>
{% endfor %}
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
</div>
I really appreciate any help I can get with this, I have been trying to make this work for awhile and I'm really not getting anywhere. Thank you!