in a repeater, what's the best way to get items above this item?

I'm building a little system for a friend, and we need to add up all before the current repeated to determine when they will start... I can get all items but if I do that I know know which item this sub field belongs too
8 Replies
toeknee
toekneeOP2y ago
The problem is it's a repeater and I don't think I can get the repeater that's it's parent. when I do it returns null it's ok I can access them on the livewire component they seem in order so I can just loop for now
Dan Harrin
Dan Harrin2y ago
$get should work, what did you try?
toeknee
toekneeOP2y ago
$get('runners' and $get('../runners')) it was on afterStateUpdated on a field inside the repeater and the repeater was named runners. Will review it later
Dan Harrin
Dan Harrin2y ago
from where are you calling this sorry
toeknee
toekneeOP2y ago
on a select inside the repeater
Dan Harrin
Dan Harrin2y ago
just seen $get('../../runners')
toeknee
toekneeOP2y ago
I thought that shortly after I wrote what I wrote you know... thanks Dan!
Want results from more Discord servers?
Add your server