ipineda
24th October 2008, 17:16
Hi friends:
I did a little script to see how events work, in BaaN V the event before.display.object is execute according to the number or records that the main table has, but when I do this in LN this event executes more times than expected, does somebody know why this happens?
The script I use to see this is the following...
|****************************** PROGRAM SECTION ***************************
before.program:
rastro.error="bp."
on.error:
rastro.error=rastro.error & "on."
after.program:
rastro.error=rastro.error & "af."
| imprimir.registro()
after.update.db.commit:
rastro.error=rastro.error & "afu."
before.display.object:
disable.commands(find.data)
rastro.error=rastro.error & "bdo."
| message(str$(filled.occ))
| message(str$(fattr.occurnr))
message(rastro.error)
| imprimir.registro()
before.new.object:
rastro.error=rastro.error & "bno."
|****************************** FORM SECTION ***************************
form.1:
before.form:
rastro.error=rastro.error & "bff."
init.form:
rastro.error=rastro.error & "if."
after.form:
rastro.error=rastro.error & "aff."
|****************************** group section ********************************
group.1:
init.group:
rastro.error=rastro.error & "ig."
before.group:
rastro.error=rastro.error & "bfg."
after.group:
rastro.error=rastro.error & "afg."
| ****************************** CHOICE SECTION ***************************
choice.user.0:
on.choice:
| imprimir.registro()
rastro.error=""
choice.abort.program:
before.choice:
rastro.error=rastro.error & "bcap."
| imprimir.registro()
on.choice:
rastro.error=rastro.error & "oncap."
after.choice:
rastro.error=rastro.error & "afc."
Note: I got the problem when i used the user.0 button.
I did a little script to see how events work, in BaaN V the event before.display.object is execute according to the number or records that the main table has, but when I do this in LN this event executes more times than expected, does somebody know why this happens?
The script I use to see this is the following...
|****************************** PROGRAM SECTION ***************************
before.program:
rastro.error="bp."
on.error:
rastro.error=rastro.error & "on."
after.program:
rastro.error=rastro.error & "af."
| imprimir.registro()
after.update.db.commit:
rastro.error=rastro.error & "afu."
before.display.object:
disable.commands(find.data)
rastro.error=rastro.error & "bdo."
| message(str$(filled.occ))
| message(str$(fattr.occurnr))
message(rastro.error)
| imprimir.registro()
before.new.object:
rastro.error=rastro.error & "bno."
|****************************** FORM SECTION ***************************
form.1:
before.form:
rastro.error=rastro.error & "bff."
init.form:
rastro.error=rastro.error & "if."
after.form:
rastro.error=rastro.error & "aff."
|****************************** group section ********************************
group.1:
init.group:
rastro.error=rastro.error & "ig."
before.group:
rastro.error=rastro.error & "bfg."
after.group:
rastro.error=rastro.error & "afg."
| ****************************** CHOICE SECTION ***************************
choice.user.0:
on.choice:
| imprimir.registro()
rastro.error=""
choice.abort.program:
before.choice:
rastro.error=rastro.error & "bcap."
| imprimir.registro()
on.choice:
rastro.error=rastro.error & "oncap."
after.choice:
rastro.error=rastro.error & "afc."
Note: I got the problem when i used the user.0 button.