Not able to view Records of HubSpot Table in Module

Hello,

I am new to HubSpot and trying to create a module (of Landing Page and Site Pages as content types). This is a simple requirement of displaying records from a HubSpot Table. I have below code build to support this but not seeing any records displayed instead just seeing the heading of the Module. Can someone help me with this?

{% set moduleName = 'test-upcoming-schedules' %}
{% set cardImageMax = 374 %}
{% set bgImageMax = 1920 %}
{% include "../partials/u4-module-includes.html" %}
{% macro resourceCard () %}
<div class="resource-card {{ name | striptags|lower|replace(' ', '-') }} {{ medium }}">
 <div class="content">
 {# <span class="medium {{ medium }}">{{ medium }}</span> #}
 <h3 class="heading">{{ name }}</h3> 
 {# <p>{{ description }}</p> #}
 {# <span class="learn-more {{ medium }}">{{ link_text }}</span> #}
 </div>
</div> 
{% endmacro %}
 <div class="top-wrapper {{'has-button' if module.include_view_all}}">
 <h2 class="heading">{{ module.heading }}</h2> 
 </div>

 <div class="container"> 
 {% set table = hubdb_table_rows(module.tableName) %}

 {% for row in table %}
 {{ row.name }}
 {% endfor %}

 </div>
</section>

Hi @BTelugunti ,
I tested your code and it works on my end. Are you referencing the correct variable for your HubDB Table field in the hubdb_table_rows function?

I ask because by default HubSpot uses underscores and lower case in its variable names (ex: a field named Table Name would have a default variable of table_name, or a field named TableName would have a default variable of tablename)

Thank you for the quick response alyssamwilie. I am referring the same variable name. Please see my screen shot below with the definition on right side of it. When we see the preview of this module, we should see all the records right? no need to create a page using this module? If possible, can you please share your code with variable definitions to compare at my end?

Only other things I can think to check that might be causing your data not to come through:

  1. That your HubDB table has been Published
  2. That you have a column with the name “name”
  3. That your Resource table field has the table selected

Yes. I have all the mentioned three points set/defined as expected.

Closing this as I figured this out on my own. The .css is overlapping the table content which is displaying all the time for me on the screen :disappointed_face: Thank you