Mandatory Fields by "Piggybacking" Codeunit 423

MikeDalzielMikeDalziel Member Posts: 10

I'm working my way through CSIDE Solution Development (80437) this week and had the thought has anyone tried amending codeunit 423 "Change Log Management" and Change Log Setup (Field) to include a "Mandatory" boolean?

I've searched the forum and found a few suggestions on modifying codeunit 1 on modify trigger, but none that had this particular approach.

Idea is pretty simple - which is why it's probably flawed... but here goes anyway.

At the VERY least:
Add a Boolean "Mandatory" to Change Log Setup (Field)
Amend Codeunit 423 somewhere near the beginning to check if any fields in the table have been marked as mandatory, if they have and if the field is blank then Error out.

As I say, I'm just starting on the development course but this could interrupt the modify and roll back the transaction. I've been informed that the change log will create a heavy overhead to processing but IN PRINCIPLE are there any thoughts as to why this approach would be a bad plan?

I'm going to try and do it anyway as a practice exercise but I'm just curious to see if anyone else has tried this method with any success before?


  • Options
    MaximusMaximus Member Posts: 105

    take a look at this addon. It offers what you want but a little bit more. You can raise an ERROR or a MESSAGE when some of the Mandatory Fields is blank. Also you can check for Mandatory Fields conditionally. We use it and it works great.

    Regards, Max

    http://www.2-controlware.com/content/en ... or-nav.htm
Sign In or Register to comment.