-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTab50101.AIRCheckinstallprocess.al
56 lines (49 loc) · 1.13 KB
/
Tab50101.AIRCheckinstallprocess.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
table 50101 "AIR Check install process"
{
DataPerCompany = false;
fields
{
field(1; "Primary Key"; Integer)
{
}
field(2; "Trigger"; Text[250])
{ }
field(3; "Version Installing"; Text[250])
{ }
field(4; "Company Name"; Text[250])
{ }
field(5; "Version Installed"; Text[250])
{ }
}
keys
{
key(PK; "Primary Key")
{
Clustered = true;
}
}
procedure InsertRecord(MessageFromTrigger: Text)
var
begin
Init();
"Primary Key" := GetNextNo();
"Trigger" := MessageFromTrigger;
"Company Name" := CompanyName();
InsertVersionNo();
Insert();
end;
local procedure GetNextNo(): Integer;
begin
if findlast then
exit("Primary Key" + 1);
exit(1);
end;
local procedure InsertVersionNo()
var
AppInfo: ModuleInfo;
begin
NavApp.GetCurrentModuleInfo(AppInfo);
"Version Installing" := Format(AppInfo.AppVersion());
"Version Installed" := Format(AppInfo.DataVersion());
end;
}