Calculation in client

0
I have Order and Orderline. i have a detail form for Orderline with Quantity and Price. Orderline has a calculated field for storing the total price. But in the client, the calculated field is not updated when editing Quantity and Price. The information is stored and ok but not updating live while editing the Quantity and Price. How can i do this?      
asked
2 answers
2

Calculate this clientside. Create a nanoflow that (re)calculates TotalPrice, and add this nanoflow to the OnChange of both Quantity and Price.

Doing this clientside is by far faster and more responsive compared to using the backend because you avoid the roundtrip to the server.

answered
0

Did it, thanks again Tim!

I did it with an attribute on OrderLine. Do you always need an attribute for this?

answered