Hi Matt!

Use the validateWrite method located on the table.  Return false if you
do not want to update.



Best regards

Carsten F. Frandsen
MIKIA IT-Solutions

-----Original Message-----
From: Matt Benic [mailto:[EMAIL PROTECTED]
Sent: 30. juli 2004 10:33
To: Axapta Dev
Subject: [development-axapta] Validation on insert and update

Hi All,
I have a requirement that users may assign certain customer groups to
new or
existing customers. Part of it is a no-brainer, I'll just add a flag in
the
CustGroup table to indicate whether or not it may be assigned to a
customer.
What I want to do is perform the validation at a table level, so I'll
customize the insert and update methods on CustTable.. what I dont know
is
how do I cause the insert or update to fail. I can perform a ttsabort to
break out of the update/insert within the function, but how do I
indicate to
the calling entity that the update has failed?

If I do my validation check before calling super(), will that do it? Or
should I throw and error instead?

Regards,

Matt Benic
Axapta Developer
UTi Sun Couriers Division





Yahoo! Groups Links








Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to