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

Community site session details

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

Switching a page to non-editable by Boolean Field

(0) ShareShare
ReportReport
Posted on by 131
Hello experts first of all thank you for taking the time to read my question.

I have a boolean type field which I want when turned on to make the ListPart type page unable to be editable as long as this field is true
I have tried to implement the solution proposed in this blog: https://yzhums.com/16756/
 
I understand the logic implemented to make a Card type page editable as shown in the blog

But I would like to know if it is possible to make only the page where the lines are stored non-editable as I show in the following image:

In short, I would like to know if it is possible that when the Boolean field is true, the editable property of the page where the lines are stored is false and works as if I had placed this at the code level:

 
Thank you very much again for reading and I look forward to any kind of idea to make this possible
Thanks for your time
I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at
    Switching a page to non-editable by Boolean Field
    According to the documentation that is found here: Editable Property - Business Central | Microsoft Learn
     
    You can set a part of a page as editable. The sub page is defined as a part so you should be able to do this but I am not sure if it is supported in a page extension. You might have to create a completely new page.
     
    So where you define the page part you should be able to say something like this:
     part(WhseInternalPutAwayLines; "Internal Put-away Subform")
                {
                    ApplicationArea = Warehouse;
                    SubPageLink = "No." = FIELD("No.");
                    SubPageView = SORTING("No.", "Sorting Sequence No.");
                    Visible = MyBolean;
                }
     
    I hope this helps you.
  • Verified answer
    YUN ZHU Profile Picture
    95,307 Super User 2025 Season 2 on at
    Switching a page to non-editable by Boolean Field
    Hi, I think you can refer to the practice of standard Transfer Order.
    Lines are not allowed to be edited until Header is entered.
     
    Hope this can give you some hints.
    Thanks.
    ZHU

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

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 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans