Hi Expert,
I Create a custom Role Center and in this Role Center i create an Action
this my Action
action("Add")
{
ApplicationArea = All;
Caption = 'Add';
RunObject = Page "Customer";
Enabled = ActionIsActivated();
ToolTip = 'Specifies the value of Add action.';
}
what i want is to control the value of enabled so i create a procedure
local procedure ActionIsActivated() : Boolean
var
lCashRegBoRoleCenter: Record "Cash Reg. B.O Role Center MMN";
IsAtivated : Boolean;
begin
lCashRegBoRoleCenter.FindFirst();
IsAtivated := lCashRegBoRoleCenter.IsActivated;
exit(IsAtivated);
end;
but the problem is always return false even if I emptied the procedure it return false
local procedure ActionIsActivated() : Boolean
begin
end;
if someone has a suggestion to solve this problem