How do you tell a Detail view which table to retrieve the Inline view?

So the solution from this post from a while ago was to create different slices in order to display different related columns in different Detail views. But how do you ensure a detail view gets its ref columns from a specific slice?

I have 3 tables: ppl, courses, and enrollment (enrollment being the joint table) and in ppl detail view, a list of Related enrollments (renamed “courses”) appear.

I want to leave out several extraneous columns from the list of Related enrollments in ppl detail view. So I created a slice from the enrollment table, specified which columns the slice should include. But what gets displayed never changes. So I know I’m doing something wrong. But what?

For what it’s worth, the problem was resolved–but it’s not clear to me how it was resolved. For a brief moment, I thought I found a solution, but that wasn’t a solution for my particular case. I went around deleting ref columns (which got re-generated automatically) and somewhere along the way, I got to re-order the columns and problem was solved.

2 Likes

If you’d like to learn more about how you can control this 100%, check out the video below


control inline view.jpg

-----| THE PROCESS |-----

  • STEP 1: Create a slice of your child table
  • STEP 2: Create a view for your slice
  • STEP 3: Copy the [Related Whatever] column on your parent table
  • STEP 4: Change the REF_ROWS() so it uses the slice (instead of the root table)

To see what this looks like for yourself, I’ve made the app created in this video available as a sample on my portfolio

2 Likes

I’ve seen that video–It’s great! I suspect what I encountered was related to caching. Not sure what, but I’m testing various settings.

2 Likes

When trying to view these sorts of changes in the editor; after the sync (or page refresh) you’ll sometimes need to:

  1. Navigate away (to another view)
  2. Then return

When you return, things will change to the new settings you’ve made.

2 Likes