chethu4u143
22nd June 2011, 17:56
Hi Baan Gurus,
I am seeing some strange thing with my multi-occurnce maintain session, I am using baan IV b2, I have to make sure sure that if there are any changes made on 3rd and 4th field then i have to make to 5th field to yes. snapshot of the session attached, I have written code for this in when.field.changes, but when we use "Extend field" options on this field, only sometimes the when.field.change get triggered and update the 5th field to yes.
Can anyone tell me why is it happening?
below is the field validation on one email field
field.iscom118.emi1:
before.input:
old.email1 = iscom118.emi1
when.field.changes:
if strip$(old.email1) <> strip$(iscom118.emi1) then
iscom118.chpd = tcyesno.yes
display("iscom118.chpd")
else
iscom118.chpd = tcyesno.no
display("iscom118.chpd")
endif
check.input:
if not before.update.check and strip$(iscom118.emi1) <> strip$(old.email1) then
iscom118.chpd = tcyesno.yes
display("iscom118.chpd")
endif
thanks in advance
I am seeing some strange thing with my multi-occurnce maintain session, I am using baan IV b2, I have to make sure sure that if there are any changes made on 3rd and 4th field then i have to make to 5th field to yes. snapshot of the session attached, I have written code for this in when.field.changes, but when we use "Extend field" options on this field, only sometimes the when.field.change get triggered and update the 5th field to yes.
Can anyone tell me why is it happening?
below is the field validation on one email field
field.iscom118.emi1:
before.input:
old.email1 = iscom118.emi1
when.field.changes:
if strip$(old.email1) <> strip$(iscom118.emi1) then
iscom118.chpd = tcyesno.yes
display("iscom118.chpd")
else
iscom118.chpd = tcyesno.no
display("iscom118.chpd")
endif
check.input:
if not before.update.check and strip$(iscom118.emi1) <> strip$(old.email1) then
iscom118.chpd = tcyesno.yes
display("iscom118.chpd")
endif
thanks in advance