unstored calculations

hi folks,

i m new to servoy. i m using two unstored calculations in my popup form attached with two combo boxes each showing in table view. each time popup form opens its shows the values that were selected the last time popup form opens. when i restart the solution for the first time it shows empty values. then again the same thing repeated. is there any way to clear the in memory unstored calculations values or referesh them?

thanks in advance :)

regards

Matt George

Hi Matt,

As it’s your first post here: welcome to the Servoy forum!

Unstored calculations should refresh automatically, although I’ve seen some different behaviour lately when you manually set an unstored calculation.
Using:```
databaseManager.recalculate([myRecord])


However, I don't think you'll ever need calculations.
Yes, they are convenient, but on the other hand a pain as you don't have any control over when the code is being executed.

So maybe you can describe what you want to achieve here, so one of the forum members can come up with a solution.

thanks marc for your answere. actually i used calculation because they are not related values thats why i had to used the calculations to save the records for those values. well i had a main form in from there i select customer from combo box and it show the related orders in the table view order name field which show the name of the order and two combo boxes for unstored calculations, type and status field user can select different type and status from the combo boxes and save them for the orders . my problem is when i select a customer from the combo box from the main form it shows the orders and empty combo boxes for the first time the i select type and status which is correct but when change the customer and then again select the first customer it shows the selected values for the customer 1 but i want them to show blank combo boxes each time i change the customer. is it possible?

Hello george.matt89,

Welcome to forum.

Where you are storing the type and status values selected from the combobox ?
If type and status fields are for orders then you might be storing them in your order table, then you need to assign those table column names as the dataproviders for the combobox. Why you need an unstored calculation??

May be you can give some more input on the same.

Thanks,
Lopamudra
lopamudram@mindfiresolutions.com