Can I include the parent object's fields in a component?

  • 1
  • Question
  • Updated 6 years ago
  • Answered
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: Outdated Posts, Rabbit Hole, & already well-documented.

For a student/teacher/classroom system, I've created a model like this:


Student Enrollment has a lookup to Student (Contact), and I have a model for Student with a filter that pulls in the record based on the ID that is in the lookup field on the Student Enrollment record.

Now I want to create a table from Student Enrollment and include some fields from the Student object. It seems like I should be able to do this just by dragging a Student field into the table, (since there can be only one record to which this relationship refers), but it won't let me. (I tried in a template component as well.) Is there some way to add parent object fields to a component, or do I have to create a cross-object formula in SF to do so? I guess it just seemed to me that the Skuid would know how to do this so that I wouldn't have to go back to adding fields in SF just to get the right display.
Photo of Peter Bender

Peter Bender, Champion

  • 6,296 Points 5k badge 2x thumb

Posted 6 years ago

  • 1
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,710 Points 10k badge 2x thumb
Hi Peter, This is possible, but if your table is based on the Student Enrollment Model, then you can only use fields from that model in your table. To add Student Fields to your Student Enrollment Model, pull up the field selector for that model. Next to fields of type REFERENCE, there should be a little link icon with a green arrow. Click that icon to traverse the parent relationship. In your case you would find the "Student" field and click the icon next to it. Then select the fields from the student object that you would like to use. You should now be able add these fields to your table. They will, however, be read only.

This conversation is no longer open for comments or replies.