Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Open Card Page in Readonly mode

(0) ShareShare
ReportReport
Posted on by 134

Hi experts,

My customer have very strange reqiremement that whenever he open document page i.e customer card,Item card,Sales/Purchase invoice, it should always open in read-only mode.

unless he click on standard button to make that editable .

what do you guys think is it possible ???

Thanks for you interest 

pastedimage1667457177752v1.png

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 76,909 Super User 2025 Season 1 on at
    RE: Open Card Page in Readonly mode

    Hi, you can just use new Permission Exclusion (Exclude in Permission Set) feature.

    https://yzhums.com/30562/

    Or The page mode that the page was opened in (Editable of the page)

    https://yzhums.com/9132/

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Amit_Sharma Profile Picture
    Amit_Sharma 2,545 on at
    RE: Open Card Page in Readonly mode

    Hi,

    This is in built feature. For this you should go for customization solution.

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 995 Super User 2024 Season 1 on at
    RE: Open Card Page in Readonly mode

    You can not fulfill this request without doing customization.

    This is a typical request from a new BC customer. And in my experience they will stop asking for this once they get used to the system.

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,274 Super User 2024 Season 1 on at
    RE: Open Card Page in Readonly mode

    hi

    I believe that the customer always accesses the various Cards from a List: e.g. Customer List - > Customer CArd

    and in the list you have the option to view the card in view or Modify mode.

    if you try to launch the page directly in the browser, e.g. by pasting the link:
    businesscentral.dynamics.com/.../YOUENVIROMENT

    you will see that the page is not editable:

    pastedimage1667472902605v1.png

     

    the only alternative is to apply customisation as advised above

    check my answer if it helped you, thanks

    DAniele

  • Abdullah Khalid Profile Picture
    Abdullah Khalid 134 on at
    RE: Open Card Page in Readonly mode

    Also this is still not working

    currpage.editable := true;

    currpage.update;

  • Abdullah Khalid Profile Picture
    Abdullah Khalid 134 on at
    RE: Open Card Page in Readonly mode

    Customer requrements was to use standard edit action (picture attached above). they dont want custom action.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,085 Super User 2024 Season 1 on at
    RE: Open Card Page in Readonly mode

    Then you can provide a button and on that button's OnAction trigger please do

    currpage.editable := true;

    currpage.update;

  • Abdullah Khalid Profile Picture
    Abdullah Khalid 134 on at
    RE: Open Card Page in Readonly mode

    You are right it works but it makes page non-editable permanently. we can't change it back to editable.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,085 Super User 2024 Season 1 on at
    RE: Open Card Page in Readonly mode

    Hi,

    you can try this if it works for you.

    trigger OnAfterGetRecord()

       begin

           CurrPage.Editable := false;

       end;

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans