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

Notifications

Announcements

Community site session details

Community site session details

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

Disable Actions

(0) ShareShare
ReportReport
Posted on by 25

HI

I have a field named "editvalue"  

If editvalue=false then I want to disable all the by default action provided by the business central.

Suppose in the page I have taken Pagetype=Card, it will give the new, edit, delete and other options, so I want to disable these actions.

If I set  

InsertAllowed =false;
DeleteAllowed=false;
then it is working but I could not control these properties dynamically.

Thanks

I have the same question (0)
  • Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Set InsertAllowed = editValue and in the OnAfterGetRecord page trigger set the editValue accordingly to your needs.

  • rizwan5895 Profile Picture
    25 on at

    Insertallowed not available in the trigger.

  • Avinash B Profile Picture
    1,455 on at

    Did you try with Currpage.Editable property?

  • rizwan5895 Profile Picture
    25 on at

    Thanks for your quick reply, but we have tried this too and its not working.

  • Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Editable property set in OnOpenPage works.

  • rizwan5895 Profile Picture
    25 on at

    Hi

    I have tried but I want to Disappear the working on + button which will open the new page. for fields , we can dynamically bind the values but for the page property it is not working, it is thronging error.

  • Suggested answer
    Avinash B Profile Picture
    1,455 on at

    Hi

    You can set the editable property where you run the page.

    f.e.,

    Create a page variable and set the editable property to that variable based on the condition before you run the page.

    Cheers

    Avinash B

  • Community Member Profile Picture
    on at

    Have you tried playing around with other page types? Worksheet, StandardDialog etc. Some of these do not have the default actions in the ribbon, leaving you free to enable/disable custom actions instead.

  • Avinash B Profile Picture
    1,455 on at

    Yea we have other page types where we don't have these actions but i don't think they will fit in once requirement. Meaning, the sales order cant be shown on navigation or standarddialog page.

    cheers

    Avinash B

  • Community Member Profile Picture
    on at

    I vaguely recall overriding standard buttons in RTC by adding actions with the exact same names to PromotedActionCategory 4.. It was fiddly though.

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,069

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,222

#3
YUN ZHU Profile Picture

YUN ZHU 1,033 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans