why don't you use the  validatewrite method on the table. or field level use
the validatefield method on the table.
  -----Original Message-----
  From: Matt Benic [mailto:[EMAIL PROTECTED]
  Sent: 30 July 2004 09: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





----------------------------------------------------------------------------
--
  Yahoo! Groups Links

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

    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



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


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to