Use validateWrite or validateField on the table.

//Lrs


-----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 Sponsor     

ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=1296sl37h/M=295196.4901138.6071305.3001176/D=groups/S=1705006764:HM/EXP=1091264636/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> click here     
  <http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=392479116>      


  _____ 

Yahoo! Groups Links


*      To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/ <http://groups.yahoo.com/group/development-axapta/>
 

*      To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
 

*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to