Hello,
When a customer want to print a quote, he should be to choose between 2/3 different reports (For exemple, one report with price, another without price, ...)
I use this code to let the choice when printing.
pageextension 50101 "Sales Order Ext" extends "Sales Order"
{
layout
{
// Add changes to page layout here
}
actions
{
modify("Print Confirmation")
{
Visible = false;
}
addafter("Pick Instruction")
{
action(MyCustomAction)
{
ApplicationArea = All;
Caption = 'My Print Confirmation';
trigger OnAction()
var
Selection: Integer;
OptionMembersLbl: Label 'Report 204,Report 205,Report 206';
optionInstructionLbl: Label 'Choose one of the following';
begin
Selection := Dialog.StrMenu(OptionMembersLbl, 2, optionInstructionLbl);
case Selection of
0:
exit; // User clicked on Cancel
1:
Report.Run(204);
2:
Report.Run(205);
3:
Report.Run(206);
end;
end;
}
}
}
var
myInt: Integer;
}
It's work if the report doesn't have the same id.
How can I do to let the choice between different report with the id 204 ?
Thanks for your help.
Maxence