I do not add action area, I just want to change the Caption of promoted action, for example "Customer" into "Client", "New Document" into "New Task", etc.
The whole coding that i use is
pageextension 50100 DemoAddFieldCardExt extends "Customer Card"
{
PromotedActionCategories = 'New,Process,Report,Manage,New Document,Request Approval,Customer,Page';
layout
{
addlast(General)
{
field("My Option"; "Option Field")
{
ApplicationArea = All;
}
}
}
actions
{
// Add changes to page actions here
modify("Request Approval")
{
Caption = 'Modified requestApproval Action';
}
modify("&Customer")
{
Caption = 'Modified Customer Action';
}
addlast("&Customer")
{
action("Customer List Report")
{
Caption = 'cust report';
trigger OnAction();
var
rep: Report "Customer - List";
begin
rep.Run;
end;
}
}
}
}