AL icon indicating copy to clipboard operation
AL copied to clipboard

enumextension breaks OptionCaptionML

Open so-lar opened this issue 8 years ago • 5 comments

I created an enumextension in the DE version of Business Central (13.0.24623.0) in the table Sales Invoice Line(37) for the field Type(5). I marked the option field as Extensible like this: grafik

In VS Code i wrote an enumextension like this to extend the field: enumextension 50111 SalesLineTypeEnum extends SalesInvLineType { value(50100; Test) { Caption = 'Test'; } }

The result is that the field now only got the english option values even though my client is set to german: grafik

To rollback to the german values, you need to uninstall/unpublish the extension and restart the service.

  • AL Extension Version: 2.0.48254
  • Server Version: 13.0.24623.0

so-lar avatar Oct 12 '18 08:10 so-lar

Hello d-Larisch, can you attach whole related AL code (how iit is nested in the surround AL code? Not only enumextension 50111 SalesLineTypeEnum extends SalesInvLineType { value(50100; Test) { Caption = 'Test'; } } Thank you.

pdwgithub avatar Oct 17 '18 07:10 pdwgithub

Hi @pdwgithub
this is my whole AL code! I just wanted to test the new feature to extend option values, and I just wrote this one .al file to test this. I attached my whole solution for this test, so u can try it by yourself.

OptionValue test.zip

so-lar avatar Oct 19 '18 09:10 so-lar

@d-larisch Thank you for reporting the issue. The fix will be shipped in future update.

AndreyKorepanov avatar Nov 11 '18 11:11 AndreyKorepanov

The fix for this issue has been checked in to the master branch. It will be available in the bcinsider.azurecr.io/bcsandbox-master Docker image starting from platform build number 26141.

If you don’t have access to these images you need to become part of the Ready2Go program: aka.ms/readytogo

For more details on code branches and docker images please read: https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/ https://blogs.msdn.microsoft.com/freddyk/2018/04/16/which-docker-image-is-the-right-for-you/

ALGitHubBot avatar Nov 28 '18 14:11 ALGitHubBot

The fix for this issue has been checked in to the master branch. It will be available in the bcinsider.azurecr.io/bcsandbox-master Docker image starting from platform build number 26141.

If you don’t have access to these images you need to become part of the Ready2Go program: aka.ms/readytogo

For more details on code branches and docker images please read: https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/ https://blogs.msdn.microsoft.com/freddyk/2018/04/16/which-docker-image-is-the-right-for-you/

ALGitHubBot avatar Dec 12 '18 12:12 ALGitHubBot