CMS Development

patpalingo
Membro

HubDB: Error in help doc?

resolver

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 Avaliação positiva
1 Solução aceita
EricSalvi
Solução
HubSpot Employee
HubSpot Employee

HubDB: Error in help doc?

resolver

Hey @patpalingo
Try this line instead. 

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

Let me know how you make out.

Exibir solução no post original

6 Respostas 6
EricSalvi
HubSpot Employee
HubSpot Employee

HubDB: Error in help doc?

resolver

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
Membro

HubDB: Error in help doc?

resolver

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 Avaliação positiva
EricSalvi
Solução
HubSpot Employee
HubSpot Employee

HubDB: Error in help doc?

resolver

Hey @patpalingo
Try this line instead. 

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

Let me know how you make out.

patpalingo
Membro

HubDB: Error in help doc?

resolver

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?

resolver

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

0 Avaliação positiva
mwhite
Participante

HubDB: Error in help doc?

resolver

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 Avaliação positiva