Pull record data through to "details page"?

Hi, I have a list of items. I want to be able to click on an item and pipe that record’s data through to a “details” screen. How do I go about doing this?

I have set up my list of data objects as an app variable and as a page variable. Not sure which is correct to use.

Hi, let’s say you are repeating from the list [{id: "abc"},{id: "def"}]

  1. Create a details page with a page parameter
  2. On the “Component tap” event of the repeating list item, use “Open page”, and pass current.id as the parameter
  3. You now have access to the value of that page param on your details page.

It’s up to you how you want to set up the data – if you want to just pull it once into an app variable (which is a good approach if you want to save on database calls), you can use the formula FIND(appVars.items, item.id === params.id) to select the item matching the page param.

1 Like