F
Filament15mo ago
toeknee

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
toeknee15mo 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 Harrin15mo ago
$get should work, what did you try?
toeknee
toeknee15mo 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 Harrin15mo ago
from where are you calling this sorry
toeknee
toeknee15mo ago
on a select inside the repeater
Dan Harrin
Dan Harrin15mo ago
just seen $get('../../runners')
toeknee
toeknee15mo ago
I thought that shortly after I wrote what I wrote you know... thanks Dan!