Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

NAV 2017 - Hiding Purchase Cost

Posted on by Microsoft Employee

Hello,

Our company has directive to hide purchase cost from some users and not others. Has anyone here done this before? Any suggestion on how to approach this? One way I heard was to remove this field from the form, menu, reports, etc. by role center. Is there a "smarter" way of doing this? 

*This post is locked for comments

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: NAV 2017 - Hiding Purchase Cost

    With NAV 2017 yes, you need to modify pages.

    With Dynamics 365 Business Central you can use ApplicationArea property for that scope.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2017 - Hiding Purchase Cost

    Hi, would we need to program this modification for every page, form, etc. Or would this modification be done only once and it is dynamic in "hiding" the cost fields based on the page the user is viewing? 

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: NAV 2017 - Hiding Purchase Cost

    You can read the user role when opening the page, then show/hide the field accordingly to this role.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2017 - Hiding Purchase Cost

    Hi,

    For the programming method, would we have to do the same program again based on role? Or is it based on pages, forms, and reports? So an example if role center A and B both has view to the same cost field. Role A is restricted to see the cost field, but not role B. I have someone assigned to role A currently. 6 months later I hired someone and assigned them to role B. What would happen then? Do I need to do the same coding for role B? 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2017 - Hiding Purchase Cost

    That is not bad. Do you do projects in North America? I just sent you a request via LinkedIn. 

    Paul

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: NAV 2017 - Hiding Purchase Cost

    Very hard question :-)) it depends on who is doing the customization. If I have to estimate this implementation for a project I manage, I could say 2 days from coding, testing and releasing on production.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2017 - Hiding Purchase Cost

    Thank you.

    May I ask, based on your experience, how long would this take? Not sure if this is tied to the roles, but we will do this for 3 roles in NAV.  Please include time needed to for requirement gathering, coding, testing, and deploy.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: NAV 2017 - Hiding Purchase Cost

    Using the Boolean variable on fields to toggle visibility is an easy to migrate customization (easy managed by an automatic merge). However, it’s your decision if doing so or not. Personally, for a better user experience if this is the requirement I choose to do the customization.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2017 - Hiding Purchase Cost

    How does using code to hide cost affect upgrades later on? 

  • Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: NAV 2017 - Hiding Purchase Cost

    Unfortunately there are companies where a department must check and modify for example a purchase order without see the costs, the same for invoices and other. In the healthcare for example this is common (our addon for the healthcare has a special setup to handle things like this). However you’re right, it depends from business needs

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans