AL icon indicating copy to clipboard operation
AL copied to clipboard

Empty Values in SymbolReference.json for table fields

Open JoergBrugman opened this issue 7 years ago • 6 comments

In versions BC 15 Preview , the TableReleation and CalcFormula properties are created with empty values ​​for table fields. This error occurs in the base app, the system app, and even a self-created app.

We assume that this is an error, because in earlier versions the properties and their values ​​were generated by the compiler.

We urgently need these property values ​​back for analysis and for an AL Developer tool. Without these properties and values ​​we would have to stop our tool development.

We have tested this behavior in the AL version al-4.0.170493.

JoergBrugman avatar Sep 23 '19 09:09 JoergBrugman

Hi,

would you please provide us some instances and why would it interrupt your development. A clear repro or code snippet will help us to address the issue faster.

/Pooya

PooyaKharamesh avatar Sep 23 '19 12:09 PooyaKharamesh

Hi, here are two examples of fields from the SymbolReference.json files:

Microsoft_BaseApp_15.0.34855.0.json, Table 18, Fields 59 und 91 {"TypeDefinition":{"Name":"Decimal"},"Properties":[{"Value":"1","Name":"AutoFormatType"},{"Value":"","Name":"CalcFormula"},{"Value":"Balance (LCY)","Name":"Caption"},{"Value":"0","Name":"Editable"},{"Value":"FlowField","Name":"FieldClass"}],"Id":59,"Name":"Balance (LCY)"} {"TypeDefinition":{"Name":"Code[20]"},"Properties":[{"Value":"Post Code","Name":"Caption"},{"Value":"","Name":"TableRelation"},{"Value":"0","Name":"ValidateTableRelation"}],"Id":91,"Name":"Post Code"}

Microsoft_Application_14.1.33107.34539, Table 18, Fields 59 und 91 {"Value":"Balance (LCY)","Name":"Name"},{"Value":"Decimal","Name":"DataType"},{"Value":"FlowField","Name":"FieldClass"},{"Value":"Sum("Detailed Cust. Ledg. Entry"."Amount (LCY)" WHERE (Customer No.=FIELD(No.),\r\n Initial Entry Global Dim. 1=FIELD(Global Dimension 1 Filter),\r\n Initial Entry Global Dim. 2=FIELD(Global Dimension 2 Filter),\r\n Currency Code=FIELD(Currency Filter)))","Name":"CalcFormula"},{"Value":"No","Name":"Editable"},{"Value":"1","Name":"AutoFormatType"}],"Id":59,"Name":"Balance (LCY)"} {"TypeDefinition":{"Name":"Code[20]"},"Properties":[{"Value":"91","Name":"FieldNo"},{"Value":"Post Code","Name":"Name"},{"Value":"Code20","Name":"DataType"},{"Value":"IF (Country/Region Code=CONST()) "Post Code"\r\nELSE IF (Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Country/Region Code))","Name":"TableRelation"},{"Value":"No","Name":"ValidateTableRelation"},{"Value":"No","Name":"TestTableRelation"}],"Id":91,"Name":"Post Code"}

We are developing an AL-Developer-Tool that automatically generates AL-Code for the extension-development based on these properties and thus significantly reduces the development effort.

We hope that you provide again the correct output of these properties with values, otherwise 2 man years of development would be lost.

JoergBrugman avatar Sep 24 '19 12:09 JoergBrugman

I am sorry, but this cannot be treated as an error. The internals of the symbolreference file is really internal. It will change. The previous symbol generation for the BaseApp was C/SIDE based, the current one is based on the AL compiled base app. Different code, different architecture.

We can see what we can do about it, this is also work for us.

kalberes avatar Oct 02 '19 15:10 kalberes

WE have decided to fix this issue.

kalberes avatar Oct 03 '19 09:10 kalberes

Hi, are you already planning when the fix will be available?

JoergBrugman avatar Feb 01 '20 09:02 JoergBrugman

Hi! The next major release of the product will contain this change.

atoader avatar Feb 01 '20 14:02 atoader