- This code creates a button on Page "Customer Card" after the Contact action button named "C50002".
- When pressed, it executes custom codeunit 50002
pageextension 50102 CustomCodeunitTest extends "Customer Card"
{
layout
{
}
actions
{
// Add changes to page actions here
addafter(Contact)
{
action("C50002")
{
Promoted = true;
PromotedCategory = Process;
ApplicationArea = All;
trigger OnAction();
begin
MyObject.Run;
end;
}
}
}
var
MyObject: Codeunit 50002;
}
No comments:
Post a Comment