web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Nav Report Variable

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a global variable called AcqCostAmt that I use in a page.  I'm making a new report for this page. I've typed the variable into my report dataset as the Data Source. However, when I try to compile it says " Unknown variable, define the variable under 'Global C/AL symbols'. Why is this happening when I have this global variable already for my page?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    60,939 Super User 2025 Season 2 on at
    RE: Nav Report Variable

    just assign the variable to field.

    field := variable;

    if you are assigning to a variable field then you need to modify as well.

  • Community Member Profile Picture
    on at
    RE: Nav Report Variable

    How would I store the value of a variable in a field?

  • Verified answer
    Mohana Yadav Profile Picture
    60,939 Super User 2025 Season 2 on at
    RE: Nav Report Variable

    page is different and report is different

    so you have to create variable again and calculate in report

    or create a field in table and use it as dataset

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans