# updating calculations

**URL:** <https://forum.servoy.com/t/updating-calculations/1324>\
**Category:** Classic Servoy\
**Created:** [February 23, 2004, 10:11am UTC](https://forum.servoy.com/t/updating-calculations/1324 "2004-02-23T10:11:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [February 23, 2004, 10:11am UTC](https://forum.servoy.com/t/updating-calculations/1324/1 "2004-02-23T10:11:31Z")

</div>

Please bare with me. I hope you understand the below:

1. I have a relationship ‘orders\_to\_orders\_items’;
2. orders\_items has a calculated field (row\_total) and an aggregation of that calculated field (aggregated\_rows);
3. orders has a calculation (order\_aggregation) that only takes the value of the aggregated field ‘aggregated\_rows’;

I now change a field in the form of orders\_items. It is only after clicking in the form (out of the updated field) that the calculated field ‘row\_total’ is refreshed. But I think this is solved in the new c release…

I also have a form in which I show a tab with a table view of the orders. When I show the aggregated field ‘aggregated\_rows’ there is no issue. When I show the field ‘order\_aggregation’ the value is not updated until I exit the application or click 2 or 3 times in that form. controller.saveData or application.updateUI don’t help.

The problem is that I need that field order\_aggregation because I need to, again, aggregate those values for another task…

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [February 23, 2004, 10:55am UTC](https://forum.servoy.com/t/updating-calculations/1324/2 "2004-02-23T10:55:51Z")

</div>

This is to difficult to solve without seeing a example.

If for example row\_total isn’t refreshed if you change a value of that row then maybe this is also related to youre order\_aggregation problem. But it is strange that you have to exit the applicaiton..

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [February 23, 2004, 11:30am UTC](https://forum.servoy.com/t/updating-calculations/1324/3 "2004-02-23T11:30:47Z")

</div>

Johan, I replicated (somewhat) what I am doing in my solution. My conclusion for now that it is related to what I reported before. I leave the field but don’t leave the row by navigating in that same form but by navigating through a tab with a tableview. I think this should be solved in rc7 based on your input concerning another issue I reported…
