How to load data from another repeater row into the current row?

Hello all,
Struggling with a prototype and need some ideas to overcome this challenge.

Imagine a repeater with personal profiles. Each profile has a photo, a name and some other info.

I want, when viewing a specific person’s profile (that person’s data is loaded in the repeater at the moment), to also see the photo of the previous and the next person in the list of people. And those photos (on click) lead to their respective profiles. Naturally, when loading one of them, the two (previous and next person photos) will update according to the newly loaded profile.

In a way, I need to be able to tell two Image widgets to load the image from the previous and next items of the repeater.

Upload your basic rp file.

OK. Here is an example:
simple example.rp (50.5 KB)

simple example(Jorkin).rp (69.0 KB)

Well, thank you. It does exactly what I wanted. Now I “only” have to understand how it works :smiley: , as I need to transfer that logic to my actual prototype…