How to define a global variables ( at application level)

gurleengurleen Member Posts: 39
Hi,
I want to load some information from a table and then use it in my customisation. Is there a way to define global variables at application level rather than CodeUnit level.

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    All variables in codeunit 1 are kept active during the application. This also goes for singleinstance codeunits.

    You can create a singleinstancecodeunit by changing the properties.
  • DenSterDenSter Member Posts: 8,307
    There's no application wide scoping of variables in Navision. The closest you can get is to have a single instance codeunit running at logon, and store values in global variables inside it. There's an example of this in the download area, something to do with passing variables between forms.
Sign In or Register to comment.