F
Filamentβ€’2y 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β€’2y ago
So it's just ->getStateUsing(fn (Get $get) => $get('stockInfo.last_dividend') * $get('quantity'))?
Quin.
Quin.OPβ€’2y ago
No description
Quin.
Quin.OPβ€’2y ago
I think we are getting there πŸ™‚
Dennis Koch
Dennis Kochβ€’2y ago
Ah, sorry. Thought it was a form πŸ€¦πŸΌβ€β™‚οΈ You can use the $record instead of getting the fields
Quin.
Quin.OPβ€’2y ago
This is how it works right?
No description
Dennis Koch
Dennis Kochβ€’2y ago
I can't see your code
Quin.
Quin.OPβ€’2y ago
Sorry πŸ˜„
Quin.
Quin.OPβ€’2y ago
No description
Dennis Koch
Dennis Kochβ€’2y ago
$record is your model, not a method. You can access your properties via $record->...
Quin.
Quin.OPβ€’2y ago
aah nice man got it thanks a lot!

Did you find this page helpful?