shuzheng
18th January 2006, 07:36
how can I trigger a command in a event?
such as "when.field.changes",after this event is done, another command/function will start automatic!

thanks !

mr_suleyman
18th January 2006, 09:21
Hi , baan has these functionalities like field's triggers. For example , you have one field on form.

field.<field name>:
init.field:
before.field:
after.field:
when.field.changes:
******
****** like that

In these triggers you can easily run any commands/Functions Why do you try that ?

Good luck !

vahdani
18th January 2006, 09:50
Hi shuzheng,

Baan compiler gives a warning but does lets you execute a choice section from a field event such as


field xyz:
when.field.changes:
execute(cont.process)

The problem is what if the user changes his/her mind and wants to correct the field value? Normaly all database actions such as updating of other tables should be done in main.table.io section which is executed after the user hits the save button.

shuzheng
9th February 2006, 04:08
thanks !
I think I need to find another way to realize it!

george7a
9th February 2006, 09:51
Hi,

I didn't understand why don't you put your "command/function" in the "when.field.changes:" section as it was suggested?

- George

en@frrom
9th February 2006, 10:08
Shuzheng, I guess your requirements don't fit to the when.field.changes sections; if you give us some more details about the requirements, we may be able to assist you...