Skip to content

Commit e614424

Browse files
committed
Fix for table generation util
1 parent 3ed75da commit e614424

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

TRUDUtilsD365/TableBuilder/TableBuilderParms.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Microsoft.Dynamics.Framework.Tools.MetaModel.Core;
77
using TRUDUtilsD365.AddTableFindMethod;
88
using AxTableField = Microsoft.Dynamics.AX.Metadata.MetaModel.AxTableField;
9+
using System.Text;
910

1011
namespace TRUDUtilsD365.TableBuilder
1112
{
@@ -325,6 +326,12 @@ void DoTableCreate()
325326
}
326327
newTable.AddFieldGroup(axTableFieldGroup);
327328

329+
StringBuilder stringBuilder = new StringBuilder();
330+
stringBuilder.AppendLine($"public class {newTable.Name} extends common");
331+
stringBuilder.AppendLine("{");
332+
stringBuilder.AppendLine("}");
333+
newTable.SourceCode.Declaration = stringBuilder.ToString();
334+
328335
AddTableFindMethodParms findMethodParms = new AddTableFindMethodParms();
329336
findMethodParms.IsCreateFind = true;
330337
findMethodParms.IsTestMode = true;
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)