actions
{
area(Processing)
{
action(SomeAction)
{
ApplicationArea = All;
InFooterBar = true;
Image = AmountByPeriod;
Caption = 'Some Action';
ToolTip = 'Some Action';
ShortcutKey = Return;
trigger OnAction()
begin
Message('RecordId is %1', Rec.RecordId());
end;
}
}
area(Promoted)
{
actionref(SomeAction_Promoted; SomeAction)
{
}
}
}
action(SomeAction)
{
ApplicationArea = All;
InFooterBar = true;
Image = AmountByPeriod;
Caption = 'Some Action';
ToolTip = 'Some Action';
ShortcutKey = Return;
trigger OnAction()
var
Condition1, Condition2 : Boolean;
begin
case true of
Condition1:
Page.Run(100500, Rec);
Condition2:
Page.Run(7777, Rec);
else
Page.Run(0000, Rec);
end;
end;
}
ShortcutKey = 'Shift+k';