-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSecretDemoSetup.page.al
68 lines (61 loc) · 1.54 KB
/
SecretDemoSetup.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
page 70000 "Secret Demo Setup"
{
PageType = Card;
ApplicationArea = All;
UsageCategory = Administration;
SourceTable = "Secret Demo Setup";
layout
{
area(Content)
{
group(GroupName)
{
field("Function URL"; "Function URL")
{
ApplicationArea = All;
}
field("Access Key Code"; "Access Key Code")
{
ApplicationArea = All;
}
}
}
}
actions
{
area(Processing)
{
action(UpdateKey)
{
Image = UpdateXML;
Caption = 'Update Access Key';
ApplicationArea = All;
trigger OnAction()
var
SecretHelper: Codeunit "Secret Helper";
begin
SecretHelper.UpdateSecret();
end;
}
action(DeleteKey)
{
Image = Delete;
Caption = 'Delete Access Key';
ApplicationArea = All;
trigger OnAction()
var
SecretHelper: Codeunit "Secret Helper";
begin
TestField("Access Key Code");
SecretHelper.DeleteSecret("Access Key Code");
end;
}
}
}
trigger OnOpenPage()
begin
if not get() then begin
Insert();
end;
end;
}