hpng98
10th October 2002, 11:39
Hi.
In PO line side, I'm doing some checking on price and discount field. (make sure the price keyin is not more than standard cost price)

What I need to do is the checking for this two field only carry out when user press the save / save & exit button.

So where should I write the code ?

Thanks alot.

ayoobi
10th October 2002, 12:15
choice.update.db:
before.choice:

|* Write code for check

Regards
Ayoobi

hpng98
10th October 2002, 12:34
Hi.
I already try this.
but when I click on the save button,the message is not display.


choice.update.db:
before.choice:
message("testing")



so what is the problem ?
Thanks.

ayoobi
10th October 2002, 12:47
hi , i assume this is a normal maintain session . i tested this and it works fine for me .

Best Wishes

jaapzwaan
10th October 2002, 13:19
hpng98,

Did you change anything? the choice.update.db is not fired if nothing has changed.

Regards,
Jaap Zwaan

nick_rogers
10th October 2002, 19:08
you say the choice.update.db is not executed - did you actualy change a field value and then save ?

hpng98
11th October 2002, 03:47
Thanks alot.

It works now.
Now only I know the message not display out because I didn't do any changes.

hpng98