Add validation code in OnValidate code of existing field by extension

navbeginnernavbeginner Member Posts: 23
Hi Experts,

I was using AL for creating new table/page by extension.
I came across a requirement where I want to add an additional validation code in OnValidate trigger of a field in Item table by extension.
Can you please suggest as I kind of got stuck.

Regards

Best Answers

Answers

  • JuhlJuhl Member Posts: 724
    True. But NOT the question :-)
    Follow me on my blog juhl.blog
  • JuhlJuhl Member Posts: 724
    Doesn’t say where.
    OnBefore or After usually is enough for most validation tasks. Like add extra validation.
    Follow me on my blog juhl.blog
  • navbeginnernavbeginner Member Posts: 23
    Thanks a lot experts for your valuable advice.
    I will try to execute your advice and revert
  • navbeginnernavbeginner Member Posts: 23
    Hi Experts,

    All your answers, helped me a lot. I kind of understood after trying out few scenarios that you can do most of the stuff by extending a page or its base table, just need think a bit on the logic. For others we need to go with an work around.
Sign In or Register to comment.