Hi!
You can do this using the (undocumented) “listener” method on a repeater. Basically, you put an widget (I always use a hotspot) in the repeater row that will be your listener. From the outside, you move the repeater by (0,0), which will cause the hotspot to receive the On Moved event.
The cool thing is that this On Moved event will fire for every row instance of the repeater, and code in the On Moved event will have access to things like Item.index, etc. So here is the basic strategy:
- From the outside, move the hotspot by 0,0, causing its On Moved event to fire for each row
- In the hotspot’s On Moved event, check if the current row is the last row
- If it is, grab the value of the date column in that row
Pseudocode:
On Click (or whatever event outside of the repeater)
Move hotspot inside of the repeater by 0,0
On Moved (of hotspot inside of repeater row)
If (value) [[Item.isLast]] equals true
set global variable to value [[Item.date]]