-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addin feature to add tables that you don't want to track deleted reco…
…rds (#188)
- Loading branch information
Showing
6 changed files
with
87 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
page 82564 "Deleted Tables Not To Sync" | ||
{ | ||
PageType = List; | ||
ApplicationArea = All; | ||
SourceTable = "Deleted Tables Not to Sync"; | ||
|
||
layout | ||
{ | ||
area(Content) | ||
{ | ||
repeater(GroupName) | ||
{ | ||
field(TableId; rec.TableId) | ||
{ | ||
trigger OnLookup(var Text: Text): Boolean | ||
var | ||
TableMetadata: Record "Table Metadata"; | ||
begin | ||
GetTableId(TableMetadata); | ||
if Page.RunModal(Page::"Available Table Selection List", TableMetadata) = Action::LookupOK then | ||
rec.TableId := TableMetadata.ID; | ||
end; | ||
} | ||
field("Table Caption"; rec."Table Caption") { } | ||
} | ||
} | ||
} | ||
local procedure GetTableId(var TableMetadata: Record "Table Metadata") | ||
var | ||
ADLSETable: Record "ADLSE Table"; | ||
TableFilterTxt: Text; | ||
begin | ||
ADLSETable.Reset(); | ||
if ADLSETable.FindSet() then | ||
repeat | ||
if TableFilterTxt = '' then | ||
TableFilterTxt := Format(ADLSETable."Table ID") | ||
else | ||
TableFilterTxt += '|' + Format(ADLSETable."Table ID"); | ||
until ADLSETable.Next() = 0; | ||
TableMetadata.SetFilter(TableMetadata.ID, TableFilterTxt); | ||
end; | ||
} |
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,31 @@ | ||
table 82569 "Deleted Tables Not to Sync" | ||
{ | ||
DataClassification = ToBeClassified; | ||
|
||
fields | ||
{ | ||
field(1; TableId; Integer) | ||
{ | ||
DataClassification = ToBeClassified; | ||
TableRelation = "ADLSE Table"."Table ID"; | ||
Caption = 'Table ID'; | ||
ToolTip = 'Specify the ID of the table that should not be tracked for deletes.'; | ||
} | ||
field(5; "Table Caption"; Text[100]) | ||
{ | ||
CalcFormula = lookup(AllObjWithCaption."Object Name" where("Object ID" = field(TableId))); | ||
Caption = 'Table Caption'; | ||
Editable = false; | ||
FieldClass = FlowField; | ||
ToolTip = 'Specifies the caption of the table whose data is to exported.'; | ||
} | ||
} | ||
|
||
keys | ||
{ | ||
key(Key1; TableId) | ||
{ | ||
Clustered = true; | ||
} | ||
} | ||
} |
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