diff --git a/Pages/Pag81001.DETDataEditor.al b/Pages/Pag81001.DETDataEditor.al index d2f4da9..613aab9 100644 --- a/Pages/Pag81001.DETDataEditor.al +++ b/Pages/Pag81001.DETDataEditor.al @@ -13,37 +13,6 @@ page 81001 "DET Data Editor" { group(General) { - field(PresetCodeField; PresetCode) - { - ApplicationArea = All; - ToolTip = 'Preset'; - Caption = 'Preset'; - - trigger OnLookup(var Text: Text): Boolean - var - QueryPreset: Record "DET Query Preset"; - QueryPresetList: Page "DET Query Preset"; - begin - QueryPresetList.LookupMode(true); - if (QueryPresetList.RunModal() in [Action::LookupOK, Action::OK]) then begin - QueryPresetList.GetRecord(QueryPreset); - PresetCode := QueryPreset.Code; - EnteredQueryPresetCode(PresetCode); - end; - end; - - trigger OnValidate() - begin - EnteredQueryPresetCode(PresetCode); - end; - } - field(PresetNameField; PresetName) - { - ApplicationArea = All; - ToolTip = 'Preset Name'; - Caption = 'Preset Name'; - Editable = false; - } field(SourceTableNoField; SourceTableNo) { ApplicationArea = All; @@ -141,6 +110,37 @@ page 81001 "DET Data Editor" SetDirty(); end; } + field(PresetCodeField; PresetCode) + { + ApplicationArea = All; + ToolTip = 'Preset'; + Caption = 'Preset'; + + trigger OnLookup(var Text: Text): Boolean + var + QueryPreset: Record "DET Query Preset"; + QueryPresetList: Page "DET Query Preset"; + begin + QueryPresetList.LookupMode(true); + if (QueryPresetList.RunModal() in [Action::LookupOK, Action::OK]) then begin + QueryPresetList.GetRecord(QueryPreset); + PresetCode := QueryPreset.Code; + EnteredQueryPresetCode(PresetCode); + end; + end; + + trigger OnValidate() + begin + EnteredQueryPresetCode(PresetCode); + end; + } + field(PresetNameField; PresetName) + { + ApplicationArea = All; + ToolTip = 'Preset Name'; + Caption = 'Preset Name'; + Editable = false; + } field(SavePresetField; SavePreset) { ApplicationArea = All; diff --git a/Volodymyr Dvernytskyi_Data Editor Tool_2.0.1.5.app b/Volodymyr Dvernytskyi_Data Editor Tool_2.0.1.6.app similarity index 72% rename from Volodymyr Dvernytskyi_Data Editor Tool_2.0.1.5.app rename to Volodymyr Dvernytskyi_Data Editor Tool_2.0.1.6.app index b0f3287..2c00c3e 100644 Binary files a/Volodymyr Dvernytskyi_Data Editor Tool_2.0.1.5.app and b/Volodymyr Dvernytskyi_Data Editor Tool_2.0.1.6.app differ diff --git a/app.json b/app.json index 8b7698c..6f04ef3 100644 --- a/app.json +++ b/app.json @@ -2,7 +2,7 @@ "id": "e28d62da-ceb0-46e7-9e06-774bc46f4bac", "name": "Data Editor Tool", "publisher": "Volodymyr Dvernytskyi", - "version": "2.0.1.5", + "version": "2.0.1.6", "brief": "https://vld-nav.com/", "description": "https://vld-nav.com/", "privacyStatement": "https://vld-nav.com/",