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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Report Parameters

(0) ShareShare
ReportReport
Posted on by 18

Hi,

I trying to get a global variable to appear as a parameter in the report, which I am editing using Visual Studio.

As of now I have only seen Captions in the parameters, so I am wondering how to add normal parameters.

*This post is locked for comments

I have the same question (0)
  • Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Create a global variable for your parameter and add them to the Request Page of your report. Then in OnPreReport trigger you can handle the value as you need.

  • SamCha Profile Picture
    18 on at

    I wanted to have it in the Parameters of the report, but I think we can't do that in NAV.

    So I assigned the parameter to a header of my report dataset.

  • Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    In NAV report parameters are handled in the request page if they must be set by the user that executed the report. This is the standard way. Maybe I’ve not understood your needs.

  • SamCha Profile Picture
    18 on at

    If you open a report in VisualStudio, you can see there are parameters there (usually you should see the Captions).

    I was wondering how to add one there directly, but from what I understand we can't.

  • RockwithNav Profile Picture
    8,637 Super User 2025 Season 2 on at

    Question is somehow confusing, Can you make it a level more clear please?

  • SamCha Profile Picture
    18 on at

    Here:

    3632.Sans-titre.png

  • SamCha Profile Picture
    18 on at

    I came with this problem again.

    I want to use the LanguageCode of the SalesHeader and put it into the Language of the report.

    However, if the data is in the dataset, we can't use it in the Language field, only parameters are allowed.

    How do I add a parameter to the report so that I can use it in the Language field of the global properties of the RDLC report.

    The parameters that are in the RequestForm do not appear in the report, or maybe I am missing a property to make them appear?

  • Community Member Profile Picture
    on at

    I think you should add fields for Dataitem for ReqFilterFields properties.

  • SamCha Profile Picture
    18 on at

    I can't add them as fields, I get this error otherwise:

    A value expression used for the report parameter 'Language' refers to a field. Fields cannot be used in report parameter expression

  • 4BzSoftware Profile Picture
    6,073 on at

    Hi SamCha,

    Hope this video helps you:

    www.youtube.com/watch

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans