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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Opening a table as a list in view mode

(2) ShareShare
ReportReport
Posted on by 6
Hello, everyone,
I have just created a file where I can open a table with all read, insert, edit and delete permissions.
My question is if it would be possible to open the page in view mode and when you select the desired record, then clicking on the edit button will activate the functionality.
I tried putting a trigger with OnOpenPage and CurrPage.Editable(false); but when I open the page all the edit buttons are disabled.
This is the code header:
 
page 58501 T112
{
    ApplicationArea = All;
    Caption = 'T112';
    PageType = List;
    SourceTable = 'Sales Invoice Header';
    UsageCategory = Administration;
    InsertAllowed = true;
    ModifyAllowed = true;
    DeleteAllowed = true;
    Permissions =
        tabledata /Sales Invoice Header/ = rimd;
   layout
    {
        area(content)
        {
            repeater(General)
            {
                field(....)
            }
         }

        trigger OnOpenPage();
          begin
             CurrPage.Editable(false);
         end;
}
I have the same question (0)
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,154 Most Valuable Professional on at
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,390 Super User 2025 Season 2 on at
    Hi,
     
    you can use the RunPageMode Property to set View/Edit/Create.
     
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at
    Hi, you can use a variable to control the open mode, such as the following through a setting.
    Dynamics 365 Business Central: The page mode that the page was opened in (Editable of the page)
     
     
    Hope this helps.
    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,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans