<?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: How to select specific rows in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-select-specific-rows/m-p/176734#M4631</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9900"&gt;@wmflan39&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes you can do that by below code, for ascending order&lt;/P&gt;&lt;PRE&gt;{% set queryparams = "color_name=Red&amp;amp;orderBy=sort_column_name" %}&lt;/PRE&gt;&lt;P&gt;for descending order add - sign before column name&lt;/P&gt;&lt;PRE&gt;{% set queryparams = "color_name=Red&amp;amp;orderBy=-sort_column_name" %}&lt;/PRE&gt;&lt;P&gt;We hope its work for you.&lt;/P&gt;&lt;P&gt;Did our post help answer your query? Help the community by marking it as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Team TRooInbound&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2018 16:00:20 GMT</pubDate>
    <dc:creator>TRooInbound</dc:creator>
    <dc:date>2018-02-05T16:00:20Z</dc:date>
    <item>
      <title>How to select specific rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-select-specific-rows/m-p/176639#M4625</link>
      <description>&lt;P&gt;Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My 100-row table contains 5 groups of 20 rows each, with column types: 'Red', 'Orange', 'Yelllow', Green', 'Blue'. I wish to display only the data from the 'Red' row on the Red page, 'Blue' rows on the Blue page, etc.&lt;/P&gt;&lt;P&gt;Beginning with this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{% set table_id =&amp;lt;id&amp;gt; %}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{% for row in hubdb_table_rows(&amp;lt;id&amp;gt;) %}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I accomplish this filtering for each of the 5 pages?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WmFlanigan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2018 15:25:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-select-specific-rows/m-p/176639#M4625</guid>
      <dc:creator>wmflan39</dc:creator>
      <dc:date>2018-02-04T15:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to select specific rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-select-specific-rows/m-p/176665#M4628</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9900"&gt;@wmflan39&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can add filter in&amp;nbsp;&lt;SPAN&gt;hubdb_table_rows method, just like below code&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{% set table_id =&amp;lt;id&amp;gt; %}
{% set queryparams = "color_name=Red" %}

{% for row in hubdb_table_rows(&amp;lt;id&amp;gt;, &amp;lt;queryparams&amp;gt;) %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope its works for you&lt;/P&gt;&lt;P&gt;Team TRooInbound &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 11:00:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-select-specific-rows/m-p/176665#M4628</guid>
      <dc:creator>TRooInbound</dc:creator>
      <dc:date>2018-02-05T11:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to select specific rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-select-specific-rows/m-p/176723#M4630</link>
      <description>&lt;P&gt;TRooInbound,&lt;/P&gt;&lt;P&gt;Thank you so much! This solves the problem (I'm no hubl nerd).&lt;/P&gt;&lt;P&gt;Can I combine query parameters to a) select color_name=red AND sort by sort_number descending?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WmF&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 14:56:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-select-specific-rows/m-p/176723#M4630</guid>
      <dc:creator>wmflan39</dc:creator>
      <dc:date>2018-02-05T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to select specific rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-select-specific-rows/m-p/176734#M4631</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9900"&gt;@wmflan39&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes you can do that by below code, for ascending order&lt;/P&gt;&lt;PRE&gt;{% set queryparams = "color_name=Red&amp;amp;orderBy=sort_column_name" %}&lt;/PRE&gt;&lt;P&gt;for descending order add - sign before column name&lt;/P&gt;&lt;PRE&gt;{% set queryparams = "color_name=Red&amp;amp;orderBy=-sort_column_name" %}&lt;/PRE&gt;&lt;P&gt;We hope its work for you.&lt;/P&gt;&lt;P&gt;Did our post help answer your query? Help the community by marking it as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Team TRooInbound&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 16:00:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-select-specific-rows/m-p/176734#M4631</guid>
      <dc:creator>TRooInbound</dc:creator>
      <dc:date>2018-02-05T16:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to select specific rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-select-specific-rows/m-p/176738#M4632</link>
      <description>&lt;P&gt;Excellent, TRooInbound! Again, you have been very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WmF&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 16:12:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-select-specific-rows/m-p/176738#M4632</guid>
      <dc:creator>wmflan39</dc:creator>
      <dc:date>2018-02-05T16:12:32Z</dc:date>
    </item>
  </channel>
</rss>

