CMS Development

patpalingo
Membre

HubDB: Error in help doc?

Résolue

I'm on step 1 of this, I copy the code for step 1, swap in the value for my db and when I try to save it gives an error and won't publish https://designers.hubspot.com/docs/tutorials/how-to-build-a-real-estate-listing-with-hubdb

 

0 Votes
1 Solution acceptée
EricSalvi
Solution
HubSpot Employee
HubSpot Employee

HubDB: Error in help doc?

Résolue

Hey @patpalingo
Try this line instead. 

{% set table = hubdb_table_rows(668065, queryparam) %}

Let me know how you make out.

Voir la solution dans l'envoi d'origine

6 Réponses
EricSalvi
HubSpot Employee
HubSpot Employee

HubDB: Error in help doc?

Résolue

Hey @patpalingo, what type of error are you receiving. Also when you say Step 1 and you swap in the value for your DB I assume you actually meant Step 2?
Make sure you set up the Database with the exact Columns and Types first. 

patpalingo
Membre

HubDB: Error in help doc?

Résolue

Sorry, yes I mean Step 2. When I paste that in and swap in my db value it won't let me save

Here is error

The following validation error was found: TemplateSyntaxException: Error parsing 'hubdb_table_rows{{668065}}, queryparam)'. syntax error at position 26, encountered '}', expected ':'

0 Votes
EricSalvi
Solution
HubSpot Employee
HubSpot Employee

HubDB: Error in help doc?

Résolue

Hey @patpalingo
Try this line instead. 

{% set table = hubdb_table_rows(668065, queryparam) %}

Let me know how you make out.

patpalingo
Membre

HubDB: Error in help doc?

Résolue

Thank you Eric, that worked

There is a similar thing in another step of that documentation.

I just need to figure out why it's printing some things like it is now haha

EricSalvi
HubSpot Employee
HubSpot Employee

HubDB: Error in help doc?

Résolue

Try it out and if you need help please reach out.

0 Votes
mwhite
Participant

HubDB: Error in help doc?

Résolue

Adding this here because it's the same tutorial from question above:

In this Real Estate Listing Tutorial it asks us to setup a column named type using select options. However, the select options are being pulled from the database but it requires I type in select options? This throws off this column completely. Please advise as something maybe changed in the adding a Column type(Select) interface?

 

Thanks,

-Matt

0 Votes