F
Filament17mo ago
Emaz

Hydration or scope issue in repeater?

So I have a pretty complex but interesting use case, I'll try to explain. And I'm not a Discord pro so apologies if I don't post the code snippet properly. This is a pricing/estimate application. The cost of a type of glass is obtained from a selector, you can see that in Glass rate. What I really want is a repeater so the user can use this glass in multiple panels - entering a width and height for each panel. This is a US case so we enter inches, and calculate the price based on square feet as (width*height)/144 times the glass rate. For debugging purposes I have one panel outside of the repeater. THAT one works - I can enter a width and height and my cost shows up. in the Repeater the same thing does not work. Through debugging I can see that the $get(glass_rate) is always zero. It feels like a scope problem that I don't understand. How can I accomplish this? Not sure if I should attach screenshots, code or video, so I can also use some Discord advice on best practices here. Here is the screenshot of the App at least...
2 Replies
Emaz
EmazOP17mo ago
Dan is such a rockstar. EVERY time I am convinced I looked through the docs thoroughly and cannot find my use case - I am absolutely convinced it's not in there - Dan has a Docs link. I swear I am not impatient and I looked. I think it just goes to show you how DEEEEEP Filament is. Impressive piece of work. Off to go try this. Thanks again Dan. And OF COURSE that worked. Hope this question helps someone else. I am refactoring a deep Livewire App that'll end up being 95% Filament - and way prettier and easier to maintain.
Want results from more Discord servers?
Add your server