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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Restrict viewing on Unit cost on Item card

(4) ShareShare
ReportReport
Posted on by 191
Hi All
 
Any suggestions on how to restrict a user from the viewing the Unit cost and last direct cost fields on the item card
 
Many thanks
I have the same question (0)
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    1,599 on at
    Hii there. 
    as per requirement you can create a user setup extension field through that you can assign a boolean to assign permission to user .
    it will useful for your future developments also through that you can directly apply fields visibility as per user setup.
     
    If You found answer mark it answered.
    Thank you.
    Kamal Khakhkhar.
  • Suggested answer
    Shyam Gurjar (BC Tech) Profile Picture
    5 on at
    Either you need to hide it from Page Personalize way. Or If you want only some users can see it and others can't then below are the steps you can perform:
    1. Make a Boolean Field in User setup (Ex: View Item Cost)

    2. On Page Ext of Item Card. Make a Global Variable Called ViewField :Boolean;

    modify("Unit Cost")
    {
    Visible=ViewField;
    }

    trigger OnOpenPage
    var
    UserSetup:Record "User Setup";
    begin
    //Find your User in User Setup Table (Filtering)
    ViewField:=UserSetup."View Item Cost";
    end;

    Var //Global
    ViewField:Boolean;

    This will make it dynamically visiblle and can be controlled from User Setup for future perspective as well.
  • Suggested answer
    OussamaSabbouh Profile Picture
    7,661 on at
    Hello,
     
    You cannot hide Unit Cost / Last Direct Cost with permissions alone.
    You must hide the fields with a page extension (modify → Visible = false).
    That’s the only practical way to prevent users from seeing item costs.
     
    Regards,
    Oussama Sabbouh
  • Gerardo Rentería García Profile Picture
    25,411 Most Valuable Professional on at

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

News and Announcements

Season of Giving Solutions is Here!

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,532

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 768 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 724 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans