gous99
11th July 2003, 19:18
Does anybody knows how to deal with this variable.
I need to get the previous value of different fields that changed. Thanks.
NPRao
11th July 2003, 19:45
I never had to use it there are other functions too.
Refer to-
get.prev.value() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_form_and_form_field_operations_get_prev_value)
BaanERP Programmers Guide
stp.reset.value()
--------------------------------------------------------------------------------
Syntax
void stp.reset.value()
Description
This resets the value in the current field to its previous value. You can use this function only after input to the field.
Context
4GL library function.
You can use this function only in 4GL scripts. You can use it in the following event subsections:
on.input, after.input, check.input
In a check.input subsection, you cannot use this function before a save operation. To ensure this, program the section as follows:
check.input:
if not before.update.check then
stp.reset.value()
endif
I couldnt find this function on the online tools library here, have to ask Pat to check if this is the latest tools library version.
gous99
11th July 2003, 20:45
Thanks NPRao,
Do you know which dll hold this get.prev.value() function, caus ewhen I try to compile, it fails with unresolved reference to it.
NPRao
11th July 2003, 21:13
I am not sure if thats available in your BaaN Version or not.
I didnt include any tools dll, I tested it in the Type-1/2/3 script and it just worked fine.
Sorry :eek:
I found a sample code in one of the scripts, hope it helps you out.
field.sort.totals:
check.input:
if sort.totals > 3 then
message("Only 1, 2 or 3 allowed")
sort.totals = lval(attr.previous$)
input.again()
endif
morpheus
12th July 2003, 08:51
Try using following functions -
on.change.check()
off.change.check()
changed()
not.curr()
Hope this helps.