-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCustomer Card.al
93 lines (83 loc) · 2.29 KB
/
Customer Card.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
84
85
86
87
88
89
90
91
92
93
pageextension 50100 "Customer Card JS" extends "Customer Card"
{
layout
{
addafter(Name)
{
field(Color1; Color1)
{
ApplicationArea = All;
Caption = 'Color1';
}
usercontrol(Color1Picker; ColorPicker)
{
ApplicationArea = All;
trigger ControlReady()
begin
CurrPage.Color1Picker.Init();
end;
}
field(Color2; Color2)
{
ApplicationArea = All;
Caption = 'Color2';
}
usercontrol(Color2Picker; ColorPicker)
{
ApplicationArea = All;
trigger ControlReady()
begin
CurrPage.Color2Picker.Init();
end;
}
field(Multiline1; Multiline1)
{
ApplicationArea = All;
Caption = 'Multiline1';
MultiLine = true;
}
field(Multiline2; Multiline2)
{
ApplicationArea = All;
Caption = 'Multiline1';
MultiLine = true;
}
usercontrol(AutoResize; AutoSizeTextArea)
{
ApplicationArea = All;
}
field(RichText1; RichText1)
{
ApplicationArea = All;
Caption = 'RichText1';
MultiLine = true;
}
usercontrol(RT1; CkEditor)
{
ApplicationArea = All;
trigger ControlReady()
begin
CurrPage.RT1.Init();
end;
trigger OnAfterInit()
begin
rt1Ready := true;
CurrPage.RT1.SetData();
CurrPage.RT1.SetReadOnly(not CurrPage.Editable);
end;
}
}
}
trigger OnAfterGetRecord()
begin
CurrPage.Color1Picker.Init();
CurrPage.Color2Picker.Init();
CurrPage.AutoResize.Init();
if rt1Ready then begin
rt1Ready := false;
CurrPage.RT1.Init();
end;
end;
var
rt1Ready: boolean;
}