Hi Qad Users:
QAD 8.6D
Char mode Unix
Progress 8.2C
I am trying to update the USER DEFINED FIELDS in the customer
maintenance (2.1.1) but the problem I am coming across is that
the triggers does not get executed everytime. It just gets executed
only when I update the sort field (because of ASSIGN OF
CM_MSTR.CM_SORT). I have just chosen cm_sort field at random.
Sometimes user just comes into the existing customer record and just F1
thrus it and this trigger never fires up.
>>> What I need is to pop up this screen everytime, even if user does
not update any fields to a already existing customer.
what can I do to resolve it. I have also tried to put the WRITE trigger
at the Database Schema for cm_mstr but same results.
SAMPLE of the CODE:
<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
/* Begin of xxadcsmt.p (wrapper program) */
on assign of cm_mstr.cm_sort OLD VALUE old_addr
do:
update
cm_mstr.cm__chr01 validate({gpcode.v cm__chr01},
"Invalid Customer Classification")
colon 30 label "Customer Classification"
cm_mstr.cm__chr03 colon 30 label "Training Location" format
"x(25)"
cm_mstr.cm__dte01 colon 30 label "Customer Training Date"
with overlay frame x_cust_frame centered side-labels
title "CAUTION: **** Custom Fields for Customer Master ****
" row 10.
end.
{gprun.i ""adcsmt.p""}
/* End of xxadcsmt.p */
[/code]
I will appreciate any help.
Thank you
--
Praveen Chopra
QAD 8.6D
Char mode Unix
Progress 8.2C
I am trying to update the USER DEFINED FIELDS in the customer
maintenance (2.1.1) but the problem I am coming across is that
the triggers does not get executed everytime. It just gets executed
only when I update the sort field (because of ASSIGN OF
CM_MSTR.CM_SORT). I have just chosen cm_sort field at random.
Sometimes user just comes into the existing customer record and just F1
thrus it and this trigger never fires up.
>>> What I need is to pop up this screen everytime, even if user does
not update any fields to a already existing customer.
what can I do to resolve it. I have also tried to put the WRITE trigger
at the Database Schema for cm_mstr but same results.
SAMPLE of the CODE:
<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
/* Begin of xxadcsmt.p (wrapper program) */
on assign of cm_mstr.cm_sort OLD VALUE old_addr
do:
update
cm_mstr.cm__chr01 validate({gpcode.v cm__chr01},
"Invalid Customer Classification")
colon 30 label "Customer Classification"
cm_mstr.cm__chr03 colon 30 label "Training Location" format
"x(25)"
cm_mstr.cm__dte01 colon 30 label "Customer Training Date"
with overlay frame x_cust_frame centered side-labels
title "CAUTION: **** Custom Fields for Customer Master ****
" row 10.
end.
{gprun.i ""adcsmt.p""}
/* End of xxadcsmt.p */
[/code]
I will appreciate any help.
Thank you
--
Praveen Chopra