MariaC
13th September 2001, 14:07
Hi,

I have come across an irritating problem and I'm not sure how to get past it. I have a new session which is a Maintain session, with a single record per screen. The last fields are fields which are calculated automatically in the program, but these may be overwritten but the user.

Every thing works fine when you insert a record for the first time. However, on the second insert the calulated field values are defaulted into the new record from the previous one, and no matter how I initialize these fields I cannot get rid of this.

Any bright ideas will be greatly appreciated. :)

Bogdan
14th September 2001, 13:01
Hi,

Can you give more details ?
Fields witch are calculated are declared with simbolic names (program variables) or as table fields (eg. tiitm001.item) ?
In what program section are you initializing these fields?

~Vamsi
14th September 2001, 22:30
Check an old thread here (http://www.baangoodies.com/messages/10428.html)

toolswizard
15th September 2001, 00:19
Baan has reverted to a previous GUI standard that was in their early versions. Everytime someone complains, an unexperienced Baan Developer takes it out, then it is caught, and put back in. To shut off the previous value option, select "Default" on the form for the field and do not put in a value. This will either use the value from the program script or place a blank/zero in the field. This is the way it was designed so that you do not need to have source to customize the default.

The way it works is if you have a blank/zero value from your programs script, the standard script replaces it with a previous value, unless you have overriden it on the form. The form does the same test, if the value comming into the form is blank or zero, put in the default value from the form. In our case blank or zero.