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

  • Community Member Profile Picture
    on at
    RE: Hiding Cost From The Reports For Specific user

    I will try this and I will feedback thank you binesh

  • Community Member Profile Picture
    on at
    RE: Hiding Cost From The Reports For Specific user

    .

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,094 on at
    RE: Hiding Cost From The Reports For Specific user

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

  • Suggested answer
    Binesh Profile Picture
    7,885 on at
    RE: Hiding Cost From The Reports For Specific user

    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)

  • Tina Menezes Profile Picture
    2,582 on at
    RE: Hiding Cost From The Reports For Specific user

    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
    Suresh Kulla Profile Picture
    47,773 on at
    RE: Hiding Cost From The Reports For Specific user

    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.

  • Amol Salvi Profile Picture
    18,696 on at
    RE: Hiding Cost From The Reports For Specific user

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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans