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)

Hiding Cost From The Reports For Specific user

(0) ShareShare
ReportReport
Posted on by

Hello Experts,

I need to Hide the Cost from the Reports for a specific user, Any idea?

Thanks in advance!

*This post is locked for comments

I have the same question (0)
  • Amol Salvi Profile Picture
    18,698 on at

    You can use visibility expression on column to hide the cost column

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    You need to add a boolean on the user setup to specify who has permission or not and then use that value in the report visibility expression to hide the cost.

  • Tina Menezes Profile Picture
    2,582 on at

    Hi,

    You can get the cuurent USERID and store it in a variable say UserName and then set visibility expression for cost in Show or hide based on an expression

    =iif(Fields!UserName.Value="NAV\CFADMIN",false,true)

  • Suggested answer
    Binesh Profile Picture
    7,885 on at

    Hello Hamam Akram,


    As per other members suggestion you have to do.

    1: Create a field "ShowCost" or [based on your policy] field in User Setup.
    2: Make this field true that users you want to shoe cost.
    3: In Report declare IsShowCost boolean variable.
    4: In Report DataItem OnAfterGetRecord write code:

    IF UserSetup.GET(USERID) THEN BEGIN
      CLEAR(IsShowCost);
      IF UserSetup.ShowCost THEN
        IsShowCost := TRUE
      ELSE
        CLEAR(IsShowCost);
    END;

    5: Add a Coulmn under DataItem IsShowCost.

    6: Open Report Layout and go for Cost coulmn, Make Hidden experession

    =iif(Fields!IsShowCost,false,true)

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    This might also be helpful: dynamicsuser.net/.../hiding-report-fields

  • Community Member Profile Picture
    on at

    .

  • Community Member Profile Picture
    on at

    I will try this and I will feedback thank you binesh

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