<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hubl &amp;amp; HubDB Filtering Column Values in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315227#M15083</link>
    <description>&lt;P&gt;Something like this should work for you, note that you'll want to add the ? mark at the start of the queryparm call and you'll want to use the HubDB Column Name. You'll want to confirm what this is by going into the Hub DB, clicking on the column heading and going to edit and it will show you the column name there, copy that and replace&amp;nbsp;HUBDB-COL-NAME and you should be set!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;{% for row in hubdb_table_rows(2033946, '?HUBDB-COL-NAME=Practice Advancement') %}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bryan Schneidewind&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manager of Web Development&lt;/SPAN&gt;&lt;BR /&gt;&lt;A title="Weidert Group" href="https://www.weidert.com/" target="_self" rel="nofollow noopener noreferrer noopener noreferrer"&gt;Weidert Group&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 01:12:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-29T01:12:56Z</dc:date>
    <item>
      <title>Hubl &amp; HubDB Filtering Column Values</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315016#M15071</link>
      <description>&lt;P&gt;Hello! First, thank you for your time. I am working with a database full of classes (like school work) and I'm trying to display a certain type of class that has been categorized. Each row in my database is basically a class. There are a number of columns, but specifically; I have set 3 categories and I would like to display all the classes in the category "Practice Advancement."&lt;BR /&gt;&lt;BR /&gt;I have followed this tutorial (&lt;A href="https://app.hubspot.com/academy/5297945/tracks/34/354/1922" target="_blank"&gt;https://app.hubspot.com/academy/5297945/tracks/34/354/1922&lt;/A&gt;) and was successful in accomplishing the task to this effect:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://connect.woodard.com/2020-all-snh-sessions" target="_blank"&gt;https://connect.woodard.com/2020-all-snh-sessions&lt;/A&gt; -- (horay!)&lt;BR /&gt;&lt;BR /&gt;However, you can tell the list is crazy-long. So, long-story-long, I tried to filter out the classes by adding a filter to the loop:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;{% for row in hubdb_table_rows(2033946) %}&lt;/PRE&gt;&lt;P&gt;The above works (I promise). The below does not:&lt;/P&gt;&lt;PRE&gt;{% for row in hubdb_table_rows(2033946, 'session_category__contains=Practice Advancement') %}&lt;/PRE&gt;&lt;P&gt;By swapping out the line above, I break the loop and the page will not display much at all. Can anyone help me with the filter I applied, I used the documentation and noticed I could use "__contains" or "__eq"&amp;nbsp; . . . neither work. "Practice Advancement" might be the issue, but I don't know why as I'm following the direction from the video.&lt;BR /&gt;&lt;BR /&gt;Thank you again for any insight / help with this!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 14:59:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315016#M15071</guid>
      <dc:creator>ProGrahamer</dc:creator>
      <dc:date>2020-01-28T14:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hubl &amp; HubDB Filtering Column Values</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315227#M15083</link>
      <description>&lt;P&gt;Something like this should work for you, note that you'll want to add the ? mark at the start of the queryparm call and you'll want to use the HubDB Column Name. You'll want to confirm what this is by going into the Hub DB, clicking on the column heading and going to edit and it will show you the column name there, copy that and replace&amp;nbsp;HUBDB-COL-NAME and you should be set!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;{% for row in hubdb_table_rows(2033946, '?HUBDB-COL-NAME=Practice Advancement') %}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bryan Schneidewind&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manager of Web Development&lt;/SPAN&gt;&lt;BR /&gt;&lt;A title="Weidert Group" href="https://www.weidert.com/" target="_self" rel="nofollow noopener noreferrer noopener noreferrer"&gt;Weidert Group&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 01:12:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315227#M15083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T01:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hubl &amp; HubDB Filtering Column Values</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315351#M15095</link>
      <description>&lt;P&gt;Hello Bryan and thank you for the attempt. I was unable to fix the module with that suggestion. Here is the code I used per your input (both lines are attempts - neither worked) :&lt;/P&gt;&lt;PRE&gt;{% for row in hubdb_table_rows(2033946, '?session_category__contains=Practice Advancement') %}
{% for row in hubdb_table_rows(2033946, '?session_category=Practice Advancement') %}&lt;/PRE&gt;&lt;P&gt;Also, here is the setting for the COL in the database:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="column_name_settings.png" style="width: 451px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/23443i6E31A49EFE82488A/image-size/large?v=v2&amp;amp;px=999" role="button" title="column_name_settings.png" alt="column_name_settings.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 13:43:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315351#M15095</guid>
      <dc:creator>ProGrahamer</dc:creator>
      <dc:date>2020-01-29T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hubl &amp; HubDB Filtering Column Values</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315368#M15099</link>
      <description>&lt;P&gt;Try swapping&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;?session_category=Practice Advancement&lt;/PRE&gt;&lt;P&gt;to&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;?session_category=1&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 14:24:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315368#M15099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T14:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hubl &amp; HubDB Filtering Column Values</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315378#M15100</link>
      <description>&lt;P&gt;Didn't move the needle Bryan but I love the support so thank you!&lt;BR /&gt;&lt;BR /&gt;I'm going to go through the list and trial-n-error this sonofgun so help me. I'll keep you updated. I'm going to try every option twice from this list:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/methods/hubdb/v2/get_table_rows" target="_blank"&gt;https://developers.hubspot.com/docs/methods/hubdb/v2/get_table_rows&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 14:43:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315378#M15100</guid>
      <dc:creator>ProGrahamer</dc:creator>
      <dc:date>2020-01-29T14:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hubl &amp; HubDB Filtering Column Values</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315409#M15103</link>
      <description>&lt;P&gt;Can you post the full block of code, that last one should work (I have a similar approach working on a HS site)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 15:29:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315409#M15103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T15:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hubl &amp; HubDB Filtering Column Values</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315418#M15104</link>
      <description>&lt;P&gt;Good news Bryan!&lt;BR /&gt;&lt;BR /&gt;Ok, going back to the documentation didn't help. You were very close actually. I went back and removed the loop surrounding the for-loop. And in doing so I also (purposefully) threw an error in. The text editor found the error and displayed it. So I went through and troubleshot with the error and eventually came to this conclusion:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;{% for row in hubdb_table_rows(2033946, 'session_category=1') %}&lt;/PRE&gt;&lt;P&gt;Which does not work with the "?" or any of the filters supplied in documentations (operators). So, you and I fixed this, but there are problems with HubL in my opinon.&lt;BR /&gt;&lt;BR /&gt;Thank you so much Bryan! I'm going to mark your comment as solution as it did lead to my fix.&lt;BR /&gt;&lt;BR /&gt;Page with the filter working:&lt;BR /&gt;&lt;A href="https://connect.woodard.com/2020-all-snh-practice-avancement" target="_blank"&gt;https://connect.woodard.com/2020-all-snh-practice-avancement&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 15:37:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315418#M15104</guid>
      <dc:creator>ProGrahamer</dc:creator>
      <dc:date>2020-01-29T15:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hubl &amp; HubDB Filtering Column Values</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315420#M15105</link>
      <description>&lt;P&gt;Glad it worked out and happy to help!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 15:39:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubl-amp-HubDB-Filtering-Column-Values/m-p/315420#M15105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T15:39:51Z</dc:date>
    </item>
  </channel>
</rss>

