-
Notifications
You must be signed in to change notification settings - Fork 0
/
MSFilterFields.al
48 lines (46 loc) · 1.48 KB
/
MSFilterFields.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
page 50102 "MS Filter Fields"
{
PageType = List;
ApplicationArea = All;
UsageCategory = None;
SourceTable = "MS Filter Table";
Caption = 'Select Filter Fields';
layout
{
area(Content)
{
repeater(repeater)
{
field(Name; Rec.Field)
{
ApplicationArea = All;
NotBlank = true;
Lookup = true;
trigger OnLookup(var Text: Text): Boolean
var
FieldTable: Record Field;
FieldsPage: Page "Fields Lookup";
begin
FieldTable.FilterGroup(2);
FieldTable.SetFilter(TableNo, '%1', Database::"Sorting Table");
FieldTable.FilterGroup(0);
FieldsPage.SetTableView(FieldTable);
FieldsPage.RunModal();
FieldsPage.GetRecord(FieldTable);
Rec.Field := FieldTable.FieldName;
end;
}
field(FilterConst; Rec.FilterConst)
{
ApplicationArea = All;
Caption = 'Filter Const';
}
field(FilterValue; Rec.FilterValue)
{
ApplicationArea = All;
Caption = 'Filter Value';
}
}
}
}
}