File tree Expand file tree Collapse file tree 5 files changed +97
-0
lines changed Expand file tree Collapse file tree 5 files changed +97
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "id" : " 4d3a53e8-dc3c-4750-8784-296c760b5855" ,
3
+ "name" : " facade-pattern" ,
4
+ "publisher" : " Default publisher" ,
5
+ "version" : " 1.0.0.0" ,
6
+ "brief" : " " ,
7
+ "description" : " " ,
8
+ "privacyStatement" : " " ,
9
+ "EULA" : " " ,
10
+ "help" : " " ,
11
+ "url" : " " ,
12
+ "logo" : " " ,
13
+ "dependencies" : [
14
+ {
15
+ "id" : " 63ca2fa4-4f03-4f2b-a480-172fef340d3f" ,
16
+ "publisher" : " Microsoft" ,
17
+ "name" : " System Application" ,
18
+ "version" : " 16.0.0.0"
19
+ },
20
+ {
21
+ "id" : " 437dbf0e-84ff-417a-965d-ed2bb9650972" ,
22
+ "publisher" : " Microsoft" ,
23
+ "name" : " Base Application" ,
24
+ "version" : " 16.0.0.0"
25
+ }
26
+ ],
27
+ "screenshots" : [],
28
+ "platform" : " 16.0.0.0" ,
29
+ "idRanges" : [
30
+ {
31
+ "from" : 50100 ,
32
+ "to" : 50149
33
+ }
34
+ ],
35
+ "contextSensitiveHelpUrl" : " https://facade-pattern.com/help/" ,
36
+ "showMyCode" : true ,
37
+ "runtime" : " 5.0"
38
+ }
Original file line number Diff line number Diff line change
1
+ pageextension 50130 CustomerListExt extends "Customer List"
2
+ {
3
+ trigger OnOpenPage() ;
4
+ var
5
+ ItemSearchImpl: Codeunit "Item Search Impl";
6
+ Items: List of [Text [100 ]];
7
+ begin
8
+ ItemSearchImpl. SearchItems( ' A' , Items) ;
9
+ Message( ' Count: %1' , Items. Count ) ;
10
+ end ;
11
+ }
Original file line number Diff line number Diff line change
1
+ codeunit 50132 "Item / Resource Search"
2
+ {
3
+ Access = Public;
4
+
5
+ procedure SearchItems( SearchText: Text [100 ]; Items: List of [Text [100 ]])
6
+ var
7
+ ItemSearchImpl: Codeunit "Item Search Impl";
8
+ begin
9
+ ItemSearchImpl. SearchItems( SearchText, Items) ;
10
+ end ;
11
+
12
+ procedure SearchResource( SearchText: Text [100 ]; Resources: List of [Text [100 ]])
13
+ var
14
+ ResourceSearchImpl: Codeunit "Resource Search Impl";
15
+ begin
16
+ ResourceSearchImpl. SearchResource( SearchText, Resources) ;
17
+ end ;
18
+ }
Original file line number Diff line number Diff line change
1
+ codeunit 50130 "Item Search Impl"
2
+ {
3
+ Access = Internal ;
4
+
5
+ procedure SearchItems( SearchText: Text [100 ]; Items: List of [Text [100 ]])
6
+ var
7
+ Item: Record Item;
8
+ begin
9
+ Item. SetFilter( Description, ' @*' + SearchText + ' *' ) ;
10
+ if Item. FindSet() then
11
+ repeat
12
+ Items. Add ( Item. Description) ;
13
+ until Item. Next() = 0 ;
14
+ end ;
15
+ }
Original file line number Diff line number Diff line change
1
+ codeunit 50131 "Resource Search Impl"
2
+ {
3
+ Access = Internal ;
4
+
5
+ procedure SearchResource( SearchText: Text [100 ]; Resources: List of [Text [100 ]])
6
+ var
7
+ Resource: Record Resource;
8
+ begin
9
+ Resource. SetFilter( Name, ' @*' + SearchText + ' *' ) ;
10
+ if Resource. FindSet() then
11
+ repeat
12
+ Resources. Add ( Resource. Name) ;
13
+ until Resource. Next() = 0 ;
14
+ end ;
15
+ }
You can’t perform that action at this time.
0 commit comments