jcompagner wrote:the calculation engine is changed yes in servoy 5+
What change in behavior do you still see in 5.1b2?
Because in the end it still should be transparent.
var _dum1 = bvko_full_offertekaarten_to_offerteregels.offergl_aantal
var args = new Array();
args[0] = java.sql.Types.NUMERIC;
args[1] = offekrt_id
var typesArray = new Array();
typesArray[0] = 1;
typesArray[1] = 0;
var proc_declaration = '{?=call get_offerte_inkbedr_tot(?)}';
var dmesp = plugins.rawSQL.executeStoredProcedure('berp2', proc_declaration, args, typesArray, 1);
application.output('ik : ' + dmesp.getValue(1, 1))
return dmesp.getValue(1, 1);
so that code you there is your calc and you reference there bvko_full_offertekaarten_to_offerteregels.offergl_aantal so that if that is changed the calc is updated?
so inside some other code behind a button if you do:
var calcBefore = theCalc
bvko_full_offertekaarten_to_offerteregels.offergl_aantal = +1 (alter it)
var calcAfter = theCalc
then calcAfter doesnt trigger the calculation? So it still just gives the previous value (if the value really changes because of the related alter)
So my guess is that it is highly possible that your calculation was done twice in 4 and now once in 5
Gary R. Schaecher wrote:After upgrading to 5.1 beta 2 we found that events such as onLoad will no longer file on an cloned form from the solution model. Since all of our forms are cloned using solutionModel.cloneForm that means none of our forms work anymore. A case was created yesterday and a sample solution sent.
Gary
Users browsing this forum: No registered users and 5 guests