When coding the actions instead and calling the page via PAGE.RUN or the PageManagement generic functions, the page is opened by default in View mode, which requires the user to click 'Edit' first.
We'd like to be able to call / run any page via code in Edit mode immediately. (without having to create a variable of the page and set the 'Editable' property first)
Comments
The only way we can control the "pencil" to edit or view a page, is if the page is opened via an action. We then have the RunPageMode property, which we can set to View, Edit, or Create.https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-runpagemode-propertyThe CurrPage.Editable is only modifiable in the OnOpenPageTrigger. The biggest roadblock with this is that this represents when a page is editable at all, AND if the page is in Edit Mode. It seems that the ModifyAllowed property on the page would be better suited to handle that.https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/page/page-editable-methodIdeally, it would be nice to be able to control the default mode the page opens in (either Edit or View)
Category: Development
Business Central Team (administrator)
Thank you for your feedback. We are considering adding it to our longer term roadmap.