Extending AL object, Global Vars Vs Protected Var

  • Carlos Garcia

    Member
    January 15, 2026 at 8:05 am
    Up
    0
    Down
    ::

    Hello Again

    And the definition as per Microsoft is clearer and behavior as per design, however the naming convention is not user friendly. The concern in here is, why I cannot extend the other Global Vars? In some cases, we need them and extending is not an option, instead we need to create a copy of the object to developed a new report or object. And the worst part is when the object we want to extend is from another partner or add on.

    Microsoft link says:

    The protected keyword can be used to make variables accessible between tables and table extensions, pages and page extensions and reports and report extensions. It also makes variables accessible between extensions if they belong to apps, which depend on each other. If you want to only expose some variables as protected, you must create two sections of var declarations.

Log in to reply.

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!