ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Extensibility Enhancement] Codeunit 408 "Dimension Management" - GetGLSetup procedure

Open DanielHaglo opened this issue 5 years ago • 7 comments

Could you make GetGLSetup global?

Thanks :)

DanielHaglo avatar May 03 '21 05:05 DanielHaglo

Can you please explain with code how you are going to use it in extension code?

AlexanderYakunin avatar May 04 '21 14:05 AlexanderYakunin

Hi,

Se image below: image

DanielHaglo avatar May 05 '21 07:05 DanielHaglo

This is customization of codeunit 408, correct? If we make this function global, how you are going to use it in your extension code? this function set internal variable GLSetupShortcutDimCode, which is not available outside of this codeunit. Do you need some events instead?

AlexanderYakunin avatar May 10 '21 06:05 AlexanderYakunin

can GLSetupShortcutDimCode be a global variable? I do not need an event, as you can see from the image i posted, i need to know the dimension.

DanielHaglo avatar May 10 '21 18:05 DanielHaglo

GLSetupShortcutDimCode is global variable in codeunit Dimension Management, but we cannot use protected attribute in codeunits. Instead, we need to add this as parameter for GetGLSetup(var GLSetupShortcutDimCode: array[8] of Code[20]). In this case you can call this procedure and get this variable in extension. Is it ok for you?

AlexanderYakunin avatar May 10 '21 19:05 AlexanderYakunin

That is perfect! Thank you.

DanielHaglo avatar May 11 '21 05:05 DanielHaglo

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar May 11 '21 20:05 JesperSchulz