Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Switching a page to non-editable by Boolean Field

(0) ShareShare
ReportReport
Posted on by 115
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
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 74,115 Super User 2024 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
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 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.

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans