What is the correct syntax for displaying a field on a belongs-to
relationship using $:
notation. The following is not working for me:
{$:displayFormatted($object.rel_1.name)}
where rel_1
is a belongs-to
on $object
.
What is the correct syntax for displaying a field on a belongs-to
relationship using $:
notation. The following is not working for me:
{$:displayFormatted($object.rel_1.name)}
where rel_1
is a belongs-to
on $object
.
Once you use $:
notation you are executing raw JS, and in JS the parent relationship is a method and requires parentheses.
So the syntax would be {$:displayFormatted($object.rel_1().name)}
or which ever field you want to show.
In the XML you can use the relationship name without the parentheses