F
Filamentβ€’14mo ago
Quin.

Math Question

Hello! I wanted to use the textColumn and then wanted to bring back a math value where the Dividend waarde Textcolumn is i wanted to use the 'stockInfo.last_dividend' * 'quantity' anyone can help me with that?
No description
10 Replies
Dennis Koch
Dennis Kochβ€’14mo ago
So it's just ->getStateUsing(fn (Get $get) => $get('stockInfo.last_dividend') * $get('quantity'))?
Quin.
Quin.OPβ€’14mo ago
No description
Quin.
Quin.OPβ€’14mo ago
I think we are getting there πŸ™‚
Dennis Koch
Dennis Kochβ€’14mo ago
Ah, sorry. Thought it was a form πŸ€¦πŸΌβ€β™‚οΈ You can use the $record instead of getting the fields
Quin.
Quin.OPβ€’14mo ago
This is how it works right?
No description
Dennis Koch
Dennis Kochβ€’14mo ago
I can't see your code
Quin.
Quin.OPβ€’14mo ago
Sorry πŸ˜„
Quin.
Quin.OPβ€’14mo ago
No description
Dennis Koch
Dennis Kochβ€’14mo ago
$record is your model, not a method. You can access your properties via $record->...
Quin.
Quin.OPβ€’14mo ago
aah nice man got it thanks a lot!
Want results from more Discord servers?
Add your server