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.
{
ApplicationArea = All;
Caption = 'T112';
PageType = List;
SourceTable = 'Sales Invoice Header';
UsageCategory = Administration;
InsertAllowed = true;
ModifyAllowed = true;
DeleteAllowed = true;
Permissions =
tabledata /Sales Invoice Header/ = rimd;
{
area(content)
{
repeater(General)
{
field(....)
}
}
trigger OnOpenPage();
begin
CurrPage.Editable(false);
end;
}