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

Announcements

News and Announcements icon
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
    27,054 Most Valuable Professional on at
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,803 Super User 2026 Season 1 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
    101,995 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,344 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,742 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,231

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans