From acfaf3feb25dc4dcd8d50ca7d8bdeb7dd2077240 Mon Sep 17 00:00:00 2001 From: eabgSoftware Date: Tue, 4 Feb 2025 00:09:52 +0100 Subject: [PATCH] feat: Indicate the "App Name" and "Publisher" in the field list. --- Source/Pages/Pag81005.DETSelectFields.al | 9 ++++++++ Source/Tables/Tab81001.DETField.al | 19 ++++++++++++++++ Source/Translations/Data Editor Tool.g.xlf | 25 ++++++++++++++++++++++ 3 files changed, 53 insertions(+) diff --git a/Source/Pages/Pag81005.DETSelectFields.al b/Source/Pages/Pag81005.DETSelectFields.al index a55e5b0..d3cabcc 100644 --- a/Source/Pages/Pag81005.DETSelectFields.al +++ b/Source/Pages/Pag81005.DETSelectFields.al @@ -38,6 +38,14 @@ page 81005 "DET Select Fields" Caption = 'Name'; ToolTip = 'Specifies the names of the available Windows languages.'; } + field("App Name"; Rec."App Name") + { + ToolTip = 'Specifies the name of the Extension that this field belongs to.'; + } + field("App Publisher"; Rec."App Publisher") + { + ToolTip = 'Specifies the publisher of the Extension that this field belongs to.'; + } } } } @@ -121,6 +129,7 @@ page 81005 "DET Select Fields" Rec.IsPartOfPrimaryKey := FieldRec.IsPartOfPrimaryKey; Rec.Included := FieldRec.IsPartOfPrimaryKey or not FieldRec2.IsEmpty(); Rec.Name := FieldRec."Field Caption"; + Rec."App Package ID" := FieldRec."App Package ID"; Rec.Insert(); until FieldRec.Next() = 0; diff --git a/Source/Tables/Tab81001.DETField.al b/Source/Tables/Tab81001.DETField.al index d1f28e4..9d3cf61 100644 --- a/Source/Tables/Tab81001.DETField.al +++ b/Source/Tables/Tab81001.DETField.al @@ -26,6 +26,25 @@ table 81001 "DET Field" Caption = 'IsPartOfPrimaryKey'; DataClassification = CustomerContent; } + field(60; "App Package ID"; Guid) + { + Caption = 'App Package ID'; + } + + field(1000; "App Name"; Text[250]) + { + Caption = 'App Name'; + CalcFormula = lookup("NAV App Installed App".Name where("Package ID" = field("App Package ID"))); + FieldClass = FlowField; + Editable = false; + } + field(1001; "App Publisher"; Text[250]) + { + Caption = 'Publisher'; + CalcFormula = lookup("NAV App Installed App".Publisher where("Package ID" = field("App Package ID"))); + FieldClass = FlowField; + Editable = false; + } } keys { diff --git a/Source/Translations/Data Editor Tool.g.xlf b/Source/Translations/Data Editor Tool.g.xlf index 23a7bfe..1d77c54 100644 --- a/Source/Translations/Data Editor Tool.g.xlf +++ b/Source/Translations/Data Editor Tool.g.xlf @@ -2148,6 +2148,21 @@ Table DET Field - Property Caption + + App Name + + Table DET Field - Field App Name - Property Caption + + + App Package ID + + Table DET Field - Field App Package ID - Property Caption + + + Publisher + + Table DET Field - Field App Publisher - Property Caption + Field Id @@ -5043,6 +5058,16 @@ Page DET Select Fields - Property Caption + + Specifies the name of the Extension that this field belongs to. + + Page DET Select Fields - Control App Name - Property ToolTip + + + Specifies the publisher of the Extension that this field belongs to. + + Page DET Select Fields - Control App Publisher - Property ToolTip + Specifies the value of the Field Id field.