Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Form Control Setup

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, Is there any ways to hide one of the column from others 'company' that in a same database? It only show the particular column for selected 'Company', others than that, it won't display the column when open the form. Attached image is I want to show 'exchange rate' column for few of the 'company'. Thank You and have a good day.

*This post is locked for comments

  • Verified answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: Form Control Setup

    Hello,

    You can do, see the below sample code

    //Demo Company' is your another company that you don't want to show
    Form - OnOpenForm()
    IF COMPANYNAME <> 'Demo Company' THEN

        CurrForm.Description.VISIBLE(FALSE)
    ELSE
       CurrForm.Description.VISIBLE(TRUE);

    Also write Form - OnAfterGetRecord()

    Note: Better to write a local function and that function

    write code for hidden the columns that you want to hide.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Form Control Setup

    8473.7455.Capture3.PNG

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans