Skip to main content

I am attempting to access a child relationship on the following in a template in a table:



I thought this would work, but does not.


{{Q_Sales__r.Name}}

See this post:  https://community.skuid.com/t/access-child-relationships-through-merge-syntax


Yes. I saw that one but it does not work. There are number of answers. Which is correct


Bill, if you want to access a field value on a particular child record, you need to do something like

{{Q_Sales__r.records.0.Name}}


Notice that you’ll need to specify the index (in the example above, 0) of the specific child record that you want to target off of the row in context (since there could be multiple child records off of a particular row).

For example, {{Q_Sales__r.records.0.Name}}, {{Q_Sales__r.records.1.Name}}, etc.


Also note that you can loop through child records on a row like so:

{{#Q_Sales__r.records}}

{{Name}}

{{/Q_Sales__r.records}}