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-property
The 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-method
Ideally, it would be nice to be able to control the default mode the page opens in (either Edit or View)
we made multiple lines in the journal; we gave an account but did not offset
like 4 lines with the account but not offset
so the system gives all 4 lines the same voucher number
now if I gave offset to all 4 lines one by one, still same voucher number for all
There should be 4 different voucher numbers, don't they?
or the system should throw an error
The idea that all documents for a customer should be processed the same way is a far to simplifeid way of thinking. So make it structure so that you can choose a default scenario that can be overruled for relevant documents. Especially Shipment is more or less always handled differently from other customer documents.