From 71ac648985ed3f7d298090bd16bdab9e260b3694 Mon Sep 17 00:00:00 2001 From: Tobias Fenster Date: Thu, 28 Dec 2017 22:37:05 +0100 Subject: [PATCH] Add double quotes around field names --- README.md | 4 ++++ package.json | 2 +- src/templates.ts | 8 ++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index de406f0..e7230cc 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,10 @@ Provides five commands: Notes for the released versions +### 2.4.1 + +Add double quotes around field names + ### 2.4.0 Add support for parsing the current selection additionally to downloading it diff --git a/package.json b/package.json index be39a90..01cc190 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "alrunner", "displayName": "ALRunner", "description": "Can run AL objects", - "version": "2.4.0", + "version": "2.4.1", "publisher": "tfenster", "repository": "https://github.com/tfenster/ALRunner", "engines": { diff --git a/src/templates.ts b/src/templates.ts index 4302847..43a9cec 100644 --- a/src/templates.ts +++ b/src/templates.ts @@ -6,7 +6,7 @@ export const tableTemplateBefore: string = `table 50100 ##entity## `; -export const tableFieldTemplate: string = ` field(##id##;##name##;##type##) +export const tableFieldTemplate: string = ` field(##id##;"##name##";##type##) { CaptionML=ENU='##name##'; } @@ -55,7 +55,7 @@ export const pageTemplateBefore: string = `page 50100 ##entity##List `; -export const pageFieldTemplate: string = ` field(##name##;##name##) { +export const pageFieldTemplate: string = ` field("##name##";"##name##") { ApplicationArea = All; } `; @@ -145,9 +145,9 @@ export const codeunitTemplateBefore: string = `codeunit 50100 Refresh##entity## `; -export const codeunitFieldTemplate: string = ` ##entity##.##name## := GetJsonToken(JsonObject,'##name##').AsValue.As##type##; +export const codeunitFieldTemplate: string = ` ##entity##."##name##" := GetJsonToken(JsonObject,'##name##').AsValue.As##type##; `; -export const codeunitTextFieldTemplate: string = ` ##entity##.##name## := COPYSTR(GetJsonToken(JsonObject,'##name##').AsValue.AsText, 1, 250); +export const codeunitTextFieldTemplate: string = ` ##entity##."##name##" := COPYSTR(GetJsonToken(JsonObject,'##name##').AsValue.AsText, 1, 250); `; export const codeunitTemplateAfter: string = `