<?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 Error in my HubL code; please help! in Tips, Tricks &amp; Best Practices</title>
    <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Error-in-my-HubL-code-please-help/m-p/538018#M2318</link>
    <description>&lt;P data-unlink="true"&gt;&lt;FONT face="verdana,geneva"&gt;On our one of our staging pages&amp;nbsp;(*link removed due to security reasons)&lt;/FONT&gt;&lt;FONT face="verdana,geneva"&gt;&amp;nbsp; I use accordions to present product listings from our 'lenses' HubDB ID 5307563. All column 1 and most of column 2 accordions work as expected, sample code per:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div&amp;gt;{% set table_id = 5307563%}&amp;lt;/div&amp;gt;
&amp;lt;div&amp;gt;{% for row in hubdb_table_rows(5307563,'class__contains=Pinhole') %} &amp;lt;img src="https://f.hubspotusercontent40.net/hubfs/20881091/images/{{ row.filename }}.jpg" data-constrained="true" style="float: right; display: inline-block; width: 200px; padding-top: 20px;"&amp;gt;
&amp;lt;p&amp;gt;Model: {{ row.model_no }}&amp;lt;br&amp;gt;MTF: &amp;lt;a href="https://f.hubspotusercontent40.net/hubfs/20881091/pdfs/mtf-{{ row.filename }}.pdf" rel="noopener"&amp;gt;{{ row.filename }}&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;Focal Length (mm): {{ row.focal_length }}&amp;lt;br&amp;gt;Aperature (f): {{ row.aperature }}&amp;lt;br&amp;gt;Back Focal Length (mm): {{ row.back_focal }}&amp;lt;br&amp;gt;Sensor: {{row.sensor }}&amp;lt;br&amp;gt;Field of View (deg): {{ row.field_of_view }}&amp;lt;/p&amp;gt;
&amp;lt;div&amp;gt;Request: &amp;lt;a href="/data-sheet-request?interest=lenses&amp;amp;amp;document_filename=pds-{{ row.filename }}.pdf&amp;amp;amp;document_title={{ row.name }}&amp;amp;amp;part_number={{ row.name }}"&amp;gt;{{ row.name }}&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;hr&amp;gt;{% endfor %}&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;where rows are selected by 'class'. The last 2 accordion sections in column 2 (CS - 3MP &amp;amp; M14 - VF) cheerfully refuse to display the required content. Sample code:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div&amp;gt;{% set table_id = 5307563%}&amp;lt;/div&amp;gt;
&amp;lt;div&amp;gt;{% for row in hubdb_table_rows(5307563,'class__contains=CS - 3MP') %} &amp;lt;img src="https://f.hubspotusercontent40.net/hubfs/20881091/images/{{ row.filename }}.jpg" data-constrained="true" style="float: right; display: inline-block; width: 200px; padding-top: 20px;"&amp;gt;
&amp;lt;p&amp;gt;Model: {{ row.model_no }}&amp;lt;br&amp;gt;MTF: &amp;lt;a href="https://f.hubspotusercontent40.net/hubfs/20881091/pdfs/mtf-{{ row.filename }}.pdf" rel="noopener"&amp;gt;{{ row.filename }}&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;Focal Length (mm): {{ row.focal_length }}&amp;lt;br&amp;gt;Aperature (f): {{ row.aperature }}&amp;lt;br&amp;gt;Back Focal Length (mm): {{ row.back_focal }}&amp;lt;br&amp;gt;Sensor: {{row.sensor }}&amp;lt;br&amp;gt;Field of View (deg): {{ row.field_of_view }}&amp;lt;/p&amp;gt;
&amp;lt;div&amp;gt;Request: &amp;lt;a href="/data-sheet-request?interest={{ row.product }}&amp;amp;amp;document_filename=pds-{{ row.filename }}.pdf&amp;amp;amp;document_title={{ row.name }}&amp;amp;amp;part_number={{ row.name }}"&amp;gt;{{ row.name }}&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;hr&amp;gt;{% endfor %}&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Rows with classes 'CS - 3MP' and 'M14 - VF' exist in the HubDB, yet these refuse to display. I have taken several steps to trouble-shoot but nothing works.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Is there anything obvious in what I'm doing wrong?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;WmFlanigan&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Dec 2021 21:12:56 GMT</pubDate>
    <dc:creator>wmflan39</dc:creator>
    <dc:date>2021-12-07T21:12:56Z</dc:date>
    <item>
      <title>Error in my HubL code; please help!</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Error-in-my-HubL-code-please-help/m-p/538018#M2318</link>
      <description>&lt;P data-unlink="true"&gt;&lt;FONT face="verdana,geneva"&gt;On our one of our staging pages&amp;nbsp;(*link removed due to security reasons)&lt;/FONT&gt;&lt;FONT face="verdana,geneva"&gt;&amp;nbsp; I use accordions to present product listings from our 'lenses' HubDB ID 5307563. All column 1 and most of column 2 accordions work as expected, sample code per:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div&amp;gt;{% set table_id = 5307563%}&amp;lt;/div&amp;gt;
&amp;lt;div&amp;gt;{% for row in hubdb_table_rows(5307563,'class__contains=Pinhole') %} &amp;lt;img src="https://f.hubspotusercontent40.net/hubfs/20881091/images/{{ row.filename }}.jpg" data-constrained="true" style="float: right; display: inline-block; width: 200px; padding-top: 20px;"&amp;gt;
&amp;lt;p&amp;gt;Model: {{ row.model_no }}&amp;lt;br&amp;gt;MTF: &amp;lt;a href="https://f.hubspotusercontent40.net/hubfs/20881091/pdfs/mtf-{{ row.filename }}.pdf" rel="noopener"&amp;gt;{{ row.filename }}&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;Focal Length (mm): {{ row.focal_length }}&amp;lt;br&amp;gt;Aperature (f): {{ row.aperature }}&amp;lt;br&amp;gt;Back Focal Length (mm): {{ row.back_focal }}&amp;lt;br&amp;gt;Sensor: {{row.sensor }}&amp;lt;br&amp;gt;Field of View (deg): {{ row.field_of_view }}&amp;lt;/p&amp;gt;
&amp;lt;div&amp;gt;Request: &amp;lt;a href="/data-sheet-request?interest=lenses&amp;amp;amp;document_filename=pds-{{ row.filename }}.pdf&amp;amp;amp;document_title={{ row.name }}&amp;amp;amp;part_number={{ row.name }}"&amp;gt;{{ row.name }}&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;hr&amp;gt;{% endfor %}&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;where rows are selected by 'class'. The last 2 accordion sections in column 2 (CS - 3MP &amp;amp; M14 - VF) cheerfully refuse to display the required content. Sample code:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div&amp;gt;{% set table_id = 5307563%}&amp;lt;/div&amp;gt;
&amp;lt;div&amp;gt;{% for row in hubdb_table_rows(5307563,'class__contains=CS - 3MP') %} &amp;lt;img src="https://f.hubspotusercontent40.net/hubfs/20881091/images/{{ row.filename }}.jpg" data-constrained="true" style="float: right; display: inline-block; width: 200px; padding-top: 20px;"&amp;gt;
&amp;lt;p&amp;gt;Model: {{ row.model_no }}&amp;lt;br&amp;gt;MTF: &amp;lt;a href="https://f.hubspotusercontent40.net/hubfs/20881091/pdfs/mtf-{{ row.filename }}.pdf" rel="noopener"&amp;gt;{{ row.filename }}&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;Focal Length (mm): {{ row.focal_length }}&amp;lt;br&amp;gt;Aperature (f): {{ row.aperature }}&amp;lt;br&amp;gt;Back Focal Length (mm): {{ row.back_focal }}&amp;lt;br&amp;gt;Sensor: {{row.sensor }}&amp;lt;br&amp;gt;Field of View (deg): {{ row.field_of_view }}&amp;lt;/p&amp;gt;
&amp;lt;div&amp;gt;Request: &amp;lt;a href="/data-sheet-request?interest={{ row.product }}&amp;amp;amp;document_filename=pds-{{ row.filename }}.pdf&amp;amp;amp;document_title={{ row.name }}&amp;amp;amp;part_number={{ row.name }}"&amp;gt;{{ row.name }}&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;hr&amp;gt;{% endfor %}&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Rows with classes 'CS - 3MP' and 'M14 - VF' exist in the HubDB, yet these refuse to display. I have taken several steps to trouble-shoot but nothing works.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Is there anything obvious in what I'm doing wrong?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;WmFlanigan&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 21:12:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Error-in-my-HubL-code-please-help/m-p/538018#M2318</guid>
      <dc:creator>wmflan39</dc:creator>
      <dc:date>2021-12-07T21:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in my HubL code; please help!</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Error-in-my-HubL-code-please-help/m-p/538378#M2319</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9900"&gt;@wmflan39&lt;/a&gt;&amp;nbsp;I would like to add some top experts to this matter to share their ideas,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/98311"&gt;@psdtohubspot&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;&amp;nbsp;any recommendations to&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9900"&gt;@wmflan39&lt;/a&gt;&amp;nbsp;matter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Pam&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 22:02:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Error-in-my-HubL-code-please-help/m-p/538378#M2319</guid>
      <dc:creator>PamCotton</dc:creator>
      <dc:date>2021-12-07T22:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error in my HubL code; please help!</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Error-in-my-HubL-code-please-help/m-p/539571#M2329</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9900"&gt;@wmflan39&lt;/a&gt;&amp;nbsp;it's kind of hard to understand what's going on here. Are you able to make a reduced test case? And possibly the structure/schema of the hubdb table?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 14:21:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Error-in-my-HubL-code-please-help/m-p/539571#M2329</guid>
      <dc:creator>stefen</dc:creator>
      <dc:date>2021-12-09T14:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in my HubL code; please help!</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Error-in-my-HubL-code-please-help/m-p/539589#M2330</link>
      <description>&lt;P&gt;Stefan, thanks for replying.&lt;/P&gt;&lt;P&gt;I have tried to isolate the problem by moving code from one of the working accordions into the offending accordion: success.&lt;/P&gt;&lt;P&gt;Then editing the 'class' filter in the code transplanted to the offending accordion to display the product class 'M12 - 10MP' from&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% for row in hubdb_table_rows(5307563,'class__contains=M12 - 10MP') %}&lt;/LI-CODE&gt;&lt;P&gt;to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% for row in hubdb_table_rows(5307563,'class__contains=CS - 3MP') %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;...trying to display the product class 'CS - 3MP'. Result: fail.&amp;nbsp; Must be something with the DB. I've deleted the row for the offending single record for CS - 3MP and re-entered the data manually: fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what you mean by the schema of the table. The class column is a multi-select contining ~20 entries. All other columns are text fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I better answer your question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WmF&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 14:37:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Error-in-my-HubL-code-please-help/m-p/539589#M2330</guid>
      <dc:creator>wmflan39</dc:creator>
      <dc:date>2021-12-09T14:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in my HubL code; please help!</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Error-in-my-HubL-code-please-help/m-p/539650#M2331</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9900"&gt;@wmflan39&lt;/a&gt;&amp;nbsp;you might want to try url escaping the spaces e.g.:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% for row in hubdb_table_rows(5307563,'class__contains=CS%20-%203MP') %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Another thing to note is that the contains filter when used with a multiselect&lt;SPAN&gt;&amp;nbsp;column returns rows that contain all of the supplied values.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 15:42:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Error-in-my-HubL-code-please-help/m-p/539650#M2331</guid>
      <dc:creator>stefen</dc:creator>
      <dc:date>2021-12-09T15:42:09Z</dc:date>
    </item>
  </channel>
</rss>

