Start template result blank

I'm stuck at a stage of my app that needs a template report from a work order (generating a quote PDF), everything is showing except the Service description. My data structure and it relationships are described bellow:

Order Table

Order ID(etc)...

WorkOrder Table

WorkOrder IDOrder ID (ref - Order Table)(etc)...

WorkOrderDetails Table

WorkOrderDetails IDWork Order ID (ref - Work Order Table)(etc)...

Quote Table

Quote IDOrder ID (ref - Order Table)(etc...)

 

My bot is associated to Quote's table. And i'm not being able to get the WorkOrder Details on the report, it is blank. My start expression is:

<<Start:SELECT(WorkOrder[WorkOrder ID],[Order ID]=[_THISROW].[Order ID)>><<[Related WorkOrderDetails]>><<End>>

Solved Solved
0 11 822
1 ACCEPTED SOLUTION

Try putting line breaks in your expression where you'd want them to occur in the output.

View solution in original post

11 REPLIES 11

Steve
Platinum 5
Platinum 5

Please post a screenshot of your template.

Okay, the data i told was in portuguese ans i transleted for better comprehension in the question. But i can create a English template for the purpose of better understanding.  Also i just changed Order ID ref in Quote to ENUM ref column. (i needed this change to stablish another type of relationship when the type of order changes)

Thales_Taranto_0-1659986391866.png

Here are all the columns used structure and location:

Proposta - Quote Table

Data_Proposta - Quote Table

Emails - Quote Table (Virtual Column)

Valor _Proposta - Quote Table

Forma_Pagamento- Quote Table

Validade_Proposta- Quote Table

UserName- Users Table

Related Descriรงรฃo_Manutenรงรฃos - WorkOrderDetail Table

Descricao_Equipamento_Inst- Equipament Table

Nome - Client Table

 

Steve
Platinum 5
Platinum 5

Could you also post a screenshot of a generated report that demonstrates the problem?

Ok. Here it is: 

Thales_Taranto_0-1659988558780.png

 

Thanks!

You need to configure your template to explicitly include all the data you want. If you want individual column values from Related Descriรงรฃo_Manutenรงรฃos, you'll need to reference them as you have other column values in your template already.

Also, Related Descriรงรฃo_Manutenรงรฃos is a list of Ref values. To access the column values of each of those rows, you'll need to use another <<Start>>/<<End>> block. In this:

Steve_0-1660052076314.png

Replace <<[Related Descriรงรฃo_Manutenรงรฃos]>> with <<Start: [Related Descriรงรฃo_Manutenรงรฃos]>><<End>>, then reference the column values you want displayed within that block.

Hey Steve, I managed to get what i wanted but now the list are retuning in a single line and togethe even if i put them inside a table it still returns a single line list as bellow.

Thales_Taranto_0-1660426164294.png

This is the actual start formula 

<<Start: Filter(โ€œOrdersโ€,Contains([Related Quotes][ID_Order],[ID_Order]))>><<Start:[Related WorkOrder]>><<Start: [Related DetailWorkOrder]>><<[WorkDescription]>><<End>><<End>><<End>>

Try putting line breaks in your expression where you'd want them to occur in the output.

Thank you Steve!!! Everything looks fine now.

hi Steve. I have the same problem of displaying the enumlist in a template (ie I see all the values โ€‹โ€‹in a row stuck). My Enumlist in Appsheet uses this list separator "|", where should it be placed in the expression to generate the right display with rows below each other?

this is my expression ([OBIETTIVI] IS THE ENUMLIST TYPE REF):

<<IF: isnotblank([OBIETTIVI])>><<Start: [OBIETTIVI]>><<[NOME]>><<End>><<EndIF>>

Try this:

<<IF: isnotblank([OBIETTIVI])>><<Start: [OBIETTIVI]>>
<<[NOME]>><<End>><<EndIF>>

Thanks Steve.  Works perfectly!!