-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMonobankApiSetup.Page.al
57 lines (51 loc) · 1.26 KB
/
MonobankApiSetup.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
page 50180 "Monobank API Setup"
{
Caption = 'Monobank API Setup';
PageType = Card;
SourceTable = "Monobank API Setup";
ApplicationArea = All;
UsageCategory = Administration;
layout
{
area(content)
{
group(General)
{
field("Personal Access Token"; Rec."Personal Access Token")
{
ApplicationArea = All;
ToolTip = 'Get your token at https://api.monobank.ua/';
}
}
}
}
actions
{
area(Processing)
{
action(OpenWebpage)
{
Caption = 'Open api.monobankua';
ApplicationArea = All;
Promoted = true;
PromotedCategory = Process;
PromotedIsBig = true;
PromotedOnly = true;
Image = LaunchWeb;
trigger OnAction()
begin
hyperlink('https://api.monobank.ua/');
end;
}
}
}
trigger OnOpenPage()
begin
Rec.Reset();
if not Rec.Get() then begin
Rec.Init();
Rec."Primary Key" := '';
Rec.Insert();
end;
end;
}