/
ZYGetRequestPageParameters.al
83 lines (77 loc) · 2.31 KB
/
ZYGetRequestPageParameters.al
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
page 50103 "ZY Get Request Page Parameters"
{
PageType = Card;
Caption = 'Get Request Page Parameters';
UsageCategory = Tasks;
ApplicationArea = All;
layout
{
area(content)
{
field(ReportId; ReportId)
{
ApplicationArea = All;
Caption = 'Report Id';
TableRelation = AllObjWithCaption."Object ID" where("Object Type" = const(Report));
trigger OnValidate()
var
AllObjWithCaption: Record AllObjWithCaption;
begin
if AllObjWithCaption.Get(AllObjWithCaption."Object Type"::Report, ReportId) then begin
ReportName := AllObjWithCaption."Object Name";
XMLString := '';
end;
end;
}
field(ReportName; ReportName)
{
ApplicationArea = All;
Caption = 'Report Name';
Editable = false;
}
field(XMLString; XMLString)
{
ApplicationArea = All;
Caption = 'XML String';
Editable = false;
MultiLine = true;
}
}
}
actions
{
area(Processing)
{
action(GetReportReuqestPageParameters)
{
Caption = 'Get Report Reuqest Page Parameters';
ApplicationArea = All;
Promoted = true;
PromotedCategory = Process;
PromotedIsBig = true;
trigger OnAction()
var
ComfirmReport: Report "Standard Sales - Order Conf.";
begin
XMLString := Report.RunRequestPage(ReportId);
end;
}
action(RunReport)
{
Caption = 'Run Report';
ApplicationArea = All;
Promoted = true;
PromotedCategory = Process;
PromotedIsBig = true;
trigger OnAction()
begin
Report.Print(ReportId, XMLString);
end;
}
}
}
var
ReportId: Integer;
ReportName: Text;
XMLString: Text;
}