Buy Now
Sign in

Multiple Fields in Single Column?

vividal , February 06 at 17:41
Answered
V
vividal

I have a CC6 page that performs a Read Data (read_standings) with a Model Standings.

I have created a view Table called Record.

When I enter this in the Columns List

Standings.total_wins:WINS​
​Standings.total_losses:LOSSES

I get a table with two columns WINS and LOSSES and values of both 9 & 8 (as expected)

What I would like to do is have a single column that shows 9-8 and call the column header RECORD.

I have tried worked on the syntax to here

fn:{var:read_standings.0.Standings.total_wins}-{var:read_standings.0.Standings.total_losses}:RECORD

and what i get is 9-8:RECORD in the column header and nothing where I want the 9-8 enter.

Can someone help me sort out this syntax?

admin
Hi vividal,
You would need this in the columns list:
whatever:RECORD
And in the columns views:
whatever:{view:custom}
And in the "custom" view which can be of type HTML:
{var:table_name.row.Standings.total_wins} - {var:table_name.row.Standings.total_loesses}
Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
V
vividal
Thank you very much, that did the trick.