Skip to main content

Notifications

Microsoft Dynamics NAV forum
Suggested answer

Global Variable

Posted on by 3,027

Hi

 I have Global Variable Balance . I want to display it in a form .

Thanks

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Global Variable

    Guys, he told you about NAV 2009 and forms. Not pages.

    Try create TextBox and change property SourceExpr to the name of your variable.

  • Suggested answer
    Olister Rumao Profile Picture
    Olister Rumao 3,957 on at
    RE: Global Variable

    Hi,

    Follow as per the screenshots

    1.Define Globals

    SelectedGlobal.png

    2. In the Page Designer click on AssistEdit

    SelectField.png

    3. Select the Global Field in the page source selection page

    SelectGlobal.png

    4. Result: Selected Global Variable as a page field

    SelectedGlobal.png

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Global Variable

    Hi

      I am using Navision 2009 R2 . It is not showing me screen like yours

    Thanks

  • Suggested answer
    CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Global Variable

    Alright,

    1.First select the line where you want to insert this variable,

    2.Click on C/AL symbol menu, then select the variable.

    3. click on OK.

    Hope this helps. I've used a global variable Test

    2727.Capture2.JPG

    2727.Capture2.JPG

    2046.Capture3.JPGGive it an apt caption

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Global Variable

    8640.Screen.jpgHi

     I have added variable in C/al Global  with DataType = Decimal. I press F5

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,560 on at
    RE: Global Variable

    Go to the last line in your Form Design, Copy and Paste that Variable in Source Expression and then Press Enter!!

  • Suggested answer
    CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Global Variable

    Hi,

    Can you tell me step wise how are you adding the variable ?

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Global Variable

    Hi Chris

       I have clicked on O.k but nothing happens . Even if i click Apply and Then o.k even then nothing happens.

    I am using 2009

    Thanks

  • Suggested answer
    CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Global Variable

    What do you mean by does not show on form? you need to add the variable same as fields only difference is you choose C/AL symbol menu not field menu. select the variable and click on OK. The variable will be added.

    5280.Capture1.JPG

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Global Variable

    Hi

     Right but when i click f5 and Copy it does not show on form . How i should select or drag on form

    Thanks

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284,781 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,348 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans