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

What is the best method to configure the BC if you have customized page

(1) ShareShare
ReportReport
Posted on by 32
Hi Team,
 
I have a scenario and I need a best option for that.
 
I have a BC environment it has 2 companies under that. I have a customized page in the Sales order page. I need that same customized page to be shown in one company with 10 fields and another company with 5 fields. Simply, I need a suggestion that how to handle different customization on the same page under same environment. What is the best practise in Business Central. 
 
Thanks,
Mani
I have the same question (0)
  • Suggested answer
    Dhiren Nagar Profile Picture
    810 on at

    Hi,

    You can control field visibility on a page by using Boolean global variables.

    • You can create one Boolean variable per field if each field’s visibility is different.

    • If multiple fields should behave the same way, you don’t need separate variables for each field.

    Example:

    If you have 10 fields and only 5 of them need to be shown or hidden together:

    • Create one Boolean variable, for example ControlVisible

    • For those 5 fields, set the property: Visible = ControlVisible;

     

    Now, you only need to change the value of ControlVisible to show or hide all 5 fields at once.

    You can set the value of this Boolean variable in the OnOpenPage trigger.

    The value of the variable can be decided:

    • Based on Company Name (hard-coded), or

    • Based on a setup field, for example:

      • A Boolean or Option field in Company Information Or General Ledger Setup 

    Based on the setup value, you set ControlVisible to TRUE or FALSE.

    This way, the same page can behave differently for different companies within the same environment.

     

    Regards,

    Dhiren.

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    21,222 Super User 2025 Season 2 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