Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with "CRS.ExtensionObjectNamePattern" #288

Open
Mic-AL opened this issue Aug 17, 2023 · 1 comment
Open

Problem with "CRS.ExtensionObjectNamePattern" #288

Mic-AL opened this issue Aug 17, 2023 · 1 comment

Comments

@Mic-AL
Copy link

Mic-AL commented Aug 17, 2023

For some reason my "CRS.FileNamePatternExtensions" is not working.

My settings.json file contains the following

"CRS.ObjectNameSuffix": "_NMH",
"CRS.ExtensionObjectNamePattern": "<ObjectNameShort> <ObjectTypeShortPascalCase>",
"CRS.FileNamePattern": "<ObjectNameShort>.<ObjectTypeShortPascalCase>.al",
"CRS.FileNamePatternExtensions": "<ObjectNameShort>.<ObjectTypeShortPascalCase>.al",
"CRS.FileNamePatternPageCustomizations": "<ObjectNameShort>.<ObjectTypeShortPascalCase>.al",
"CRS.OnSaveAlFileAction": "Rename",
"CRS.RemoveSuffixFromFilename": true,
"CRS.RemoveUnderscoreFromFilename": false,
"CRS.RenameWithGit": false,

The settings file has no errors.

When I save an existing table extensions object the object and file are both renamed.

The object name (manually input): tableextension 61001 "Customer TableExt_NMH" extends Customer is changed to

tableextension 61001 "<ObjectNameShort> TableExt" extends Customer

The filename is also renamed to

"ObjectNameShortTableExtal.TableExt.al".

I am using v. 1.5.28.

If I change ObjectNameShort to BaseNameShort :

    "CRS.ExtensionObjectNamePattern": "<BaseNameShort> <ObjectTypeShortPascalCase>",

in the settings file I get this result

tableextension 61001 "Customer TableExt_NMH" extends Customer

and the filename is set to

CustomerTableExt.TableExt

If I save the same object again the object name changes to

tableextension 61001 "Customer TableExt" extends Customer (suffix is removed)

The filename is still:

CustomerTableExt.TableExt

Is there possibly something that I am not doing correctly?

@Mic-AL
Copy link
Author

Mic-AL commented Aug 17, 2023

I think I found the solution/workaround.

I changed the "CRS.ExtensionObjectNamePattern" setting to

"CRS.ExtensionObjectNamePattern": " ",

There appears to be a problem with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant