0

Hi,

in a new crated environment with imported configuration from sandbox via rapid start i am not able to create the security extension.
There are 2 errors while deploying i am not able to fix:

Package validation failed due to the following error(s):
PageExtensions/Page769.al (4,59) – Error AL0124: The property ‘Enabled’ cannot be used in this context
Content of automatic created file:

pageextension 90841 AF90841 extends “Aged Acc. Payable Chart”
{
layout {
modify(“BusinessChart”){Visible = L_769_Visible_1;Enabled = L_769_Enabled_1;}
modify(“StatusText”){Visible = L_769_Visible_2;Enabled = L_769_Enabled_2;}
}
actions
{
}
trigger OnOpenPage()
var
Ref : RecordRef;
begin
L_769_Visible_1 := ACS.ControlVisible(23, 0 , 769,’BusinessChart’,true);
L_769_Enabled_1 := ACS.ControlEnabled(23, 0, 769,’BusinessChart’,true);
L_769_Editable_1 := ACS.ControlEditable(23, 0, 769,’BusinessChart’,true);
L_769_Visible_2 := ACS.ControlVisible(23, 0 , 769,’StatusText’,true);
L_769_Enabled_2 := ACS.ControlEnabled(23, 0, 769,’StatusText’,true);
L_769_Editable_2 := ACS.ControlEditable(23, 0, 769,’StatusText’,false);

Ref.GetTable(Rec);
ACS.ApplyDataFilters(Ref);
Ref.SetTable(Rec);
end;

var
ACS: Codeunit “ACS Management EFQ”;
L_769_Visible_1 : Boolean;
L_769_Enabled_1 : Boolean;
L_769_Editable_1 : Boolean;
L_769_Visible_2 : Boolean;
L_769_Enabled_2 : Boolean;
L_769_Editable_2 : Boolean;
}

PageExtensions/Page1850.al (6,68) – Error AL0124: The property ‘Enabled’ cannot be used in this context
Content of automatic created file:

pageextension 90859 AF90859 extends “Sales Forecast”
{
layout {
modify(“DisclaimerText”){Visible = L_1850_Visible_1;Enabled = L_1850_Enabled_1;}
modify(“StatusText”){Visible = L_1850_Visible_2;;}
modify(“ForecastBusinessChart”){Visible = L_1850_Visible_3;Enabled = L_1850_Enabled_3;}
}
actions
{
}
trigger OnOpenPage()
var
Ref : RecordRef;
begin
L_1850_Visible_1 := ACS.ControlVisible(27, 0 , 1850,’DisclaimerText’,true);
L_1850_Enabled_1 := ACS.ControlEnabled(27, 0, 1850,’DisclaimerText’,true);
L_1850_Editable_1 := ACS.ControlEditable(27, 0, 1850,’DisclaimerText’,false);
L_1850_Visible_2 := ACS.ControlVisible(27, 0 , 1850,’StatusText’,true);
L_1850_Editable_2 := ACS.ControlEditable(27, 0, 1850,’StatusText’,true);
L_1850_Visible_3 := ACS.ControlVisible(27, 0 , 1850,’ForecastBusinessChart’,true);
L_1850_Enabled_3 := ACS.ControlEnabled(27, 0, 1850,’ForecastBusinessChart’,true);
L_1850_Editable_3 := ACS.ControlEditable(27, 0, 1850,’ForecastBusinessChart’,true);

Ref.GetTable(Rec);
ACS.ApplyDataFilters(Ref);
Ref.SetTable(Rec);
end;

var
ACS: Codeunit “ACS Management EFQ”;
L_1850_Visible_1 : Boolean;
L_1850_Enabled_1 : Boolean;
L_1850_Editable_1 : Boolean;
L_1850_Visible_2 : Boolean;
L_1850_Editable_2 : Boolean;
L_1850_Visible_3 : Boolean;
L_1850_Enabled_3 : Boolean;
L_1850_Editable_3 : Boolean;
}

In created app file i see the code, but i do not know where it is created. in my security features there is nothing depending on both pages.

I tried everything including checking app depedencies, and recreate the problem fields, but nothing seems to work.

Thanks for any suggestions/hints.

hougaard Answered question October 6, 2024