generated from microsoft/AL-Go-AppSource
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redesign the page structure and filter handling
- Loading branch information
1 parent
9ecf6f7
commit 4b2ac97
Showing
11 changed files
with
126 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
namespace StefanMaron.Ntfy; | ||
using StefanMaron.Ntfy; | ||
page 71179878 NtfyTopicCardNTSTM | ||
{ | ||
Caption = 'Ntfy Topic'; | ||
PageType = Card; | ||
ApplicationArea = All; | ||
UsageCategory = None; | ||
DelayedInsert = true; | ||
PopulateAllFields = true; | ||
SourceTable = NtfyTopicNTSTM; | ||
InherentEntitlements = X; | ||
InherentPermissions = X; | ||
|
||
layout | ||
{ | ||
area(Content) | ||
{ | ||
group(General) | ||
{ | ||
field(NtfyTopic; Rec.Topic) { } | ||
field(UserName; Rec.UserName) { } | ||
field(Enabled; Rec.Enabled) { } | ||
} | ||
part(NtfyEventsNTSTM; NtfyEventsNTSTM) | ||
{ | ||
Caption = 'Events'; | ||
SubPageLink = UserName = field(UserName), Topic = field(Topic); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
MSDyn365BC.Ntfy/src/helperInterfaces/NtfyHelper.Codeunit.al
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace StefanMaron.Ntfy; | ||
|
||
codeunit 71179886 NtfyHelperNTSTM | ||
{ | ||
|
||
Access = Public; | ||
InherentEntitlements = X; | ||
InherentPermissions = X; | ||
|
||
procedure GetFilterTextForTable(var FilterPageBuilder: FilterPageBuilder; Caption: Text; TableId: Integer; var FilterText: Text[2048]) | ||
begin | ||
FilterPageBuilder.AddTable(Caption, TableId); | ||
if FilterText <> '' then | ||
FilterPageBuilder.SetView(Caption, FilterText); | ||
if FilterPageBuilder.RunModal() then | ||
if not FilterPageBuilder.GetView(Caption).Contains('WHERE') then | ||
FilterText := '' | ||
else | ||
FilterText := CopyStr(FilterPageBuilder.GetView(Caption), 1, MaxStrLen(FilterText)); | ||
end; | ||
|
||
procedure GetFilterTextForTable(TableId: Integer; var FilterText: Text[2048]) | ||
var | ||
FilterPageBuilder: FilterPageBuilder; | ||
RecRef: RecordRef; | ||
begin | ||
RecRef.Open(TableId); | ||
GetFilterTextForTable(FilterPageBuilder, RecRef.Caption, TableId, FilterText); | ||
end; | ||
} |