Expected realisation in update - OnValidate()

The last post in this category for now; I think you’ll find this one a tad bit more challenging than its predecessors.

Please ignore the Dutch/Dunglish field names; I took this snippet from an internal application, which is why linguistic matters were not necessarily among the developer’s top priorities.

4 Responses to “What’s Wrong with This Picture? (5)”

  1. Lionel Says:

    While “FINDSET(TRUE,FALSE)” if “lvLinkedCall” record is never modified?

  2. jhoek Says:

    Very well spotted! :)

    I guess FINDSET(TRUE,FALSE) made perfect sense at some point, but after a redesign, the developer forgot to remove it.

  3. jhoek Says:

    Wouldn’t it be cool to have a static code analysis tool for C/AL that could identify cases like this?!

  4. Reijer Molenaar Says:

    >> Wouldn’t it be cool to have a static code
    >> analysis tool for C/AL that could identify
    >> cases like this?!

    Definitely!
    I will add this to the “Check Guidelines Tool” in the next release of Object Manager.

Leave a Reply

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word