-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataSubject.Page.al
78 lines (70 loc) · 1.91 KB
/
DataSubject.Page.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
namespace System.Privacy;
page 1754 "Data Subject"
{
Extensible = false;
DeleteAllowed = false;
Editable = false;
LinksAllowed = false;
PageType = List;
ShowFilter = false;
SourceTable = "Data Privacy Entities";
SourceTableTemporary = true;
layout
{
area(content)
{
repeater(Group)
{
field("Table Caption"; Rec."Table Caption")
{
ApplicationArea = All;
ShowCaption = false;
Style = StandardAccent;
StyleExpr = TRUE;
trigger OnDrillDown()
begin
PAGE.Run(Rec."Page No.");
end;
}
}
}
}
actions
{
area(processing)
{
action("Data Privacy Setup")
{
ApplicationArea = All;
Caption = 'Data Privacy Utility';
Image = Setup;
ToolTip = 'Open the Data Privacy Setup page.';
trigger OnAction()
var
DataPrivacyWizard: Page "Data Privacy Wizard";
begin
if Rec."Table Caption" <> '' then begin
DataPrivacyWizard.SetEntitityType(Rec, Rec."Table Caption");
DataPrivacyWizard.RunModal();
end;
end;
}
}
area(Promoted)
{
group(Category_Process)
{
Caption = 'Process';
actionref("Data Privacy Setup_Promoted"; "Data Privacy Setup")
{
}
}
}
}
trigger OnInit()
var
DataClassificationMgt: Codeunit "Data Classification Mgt.";
begin
DataClassificationMgt.RaiseOnGetDataPrivacyEntities(Rec);
end;
}