From e4de9616ccb059c2a81ea578734aec83cc409cb6 Mon Sep 17 00:00:00 2001 From: Caleb Blanchard Date: Mon, 10 Jan 2022 12:41:05 -0500 Subject: [PATCH] Add ability to view complete source for Tables, Views and Maps --- .../MetadataSupport.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Projects/AOTBrowser/Arbela.Dynamics.AX.Xpp.Support/MetadataSupport.cs b/Projects/AOTBrowser/Arbela.Dynamics.AX.Xpp.Support/MetadataSupport.cs index e7e7234..c030a47 100644 --- a/Projects/AOTBrowser/Arbela.Dynamics.AX.Xpp.Support/MetadataSupport.cs +++ b/Projects/AOTBrowser/Arbela.Dynamics.AX.Xpp.Support/MetadataSupport.cs @@ -217,6 +217,18 @@ public static string GetXppSourceText(INamedObject axElement, IElementCodePositi { result = ((AxClass)axElement).GetCompleteSource(codePositionCollector); } + else if (axElement is AxTable) + { + result = ((AxTable)axElement).GetCompleteSource(codePositionCollector); + } + else if (axElement is AxView) + { + result = ((AxView)axElement).GetCompleteSource(codePositionCollector); + } + else if (axElement is AxMap) + { + result = ((AxMap)axElement).GetCompleteSource(codePositionCollector); + } else if (axElement is AxDataEntityView) { result = ((AxDataEntityView)axElement).GetCompleteSource(codePositionCollector); @@ -261,6 +273,9 @@ public static string GetXppSourceText(INamedObject axElement, IElementCodePositi public static bool CanGetSourceText(Object checkObject) { if (checkObject is AxClass + || checkObject is AxTable + || checkObject is AxView + || checkObject is AxMap || checkObject is AxDataEntity || checkObject is AxForm || checkObject is AxQuery