AL icon indicating copy to clipboard operation
AL copied to clipboard

AL0124: The property 'UsageCategory' cannot be used in this context

Open Twija opened this issue 8 years ago • 4 comments

Hi all, i tried to add my page to search and i created a page following sample. https://docs.microsoft.com/en-us/dynamics-nav/developer/devenv-al-menusuite-functionality

however i got an error Source%20Codes/Pages/simpletest.AL(5,5): error AL0124: The property 'UsageCategory' cannot be used in this context Source%20Codes/Pages/simpletest.AL(6,5): error AL0124: The property 'AccessByPermission' cannot be used in this context Source%20Codes/Pages/simpletest.AL(7,5): error AL0124: The property 'ApplicationArea' cannot be used in this context

i copied and pasted it. that's all i do.

alpackages version's here. Microsoft_Application_11.0.19573.0.app Microsoft_System_11.0.12925.0.app

Twija avatar Jan 18 '18 08:01 Twija

What is the version of your AL extension? If it the one that you download from within VsCode extensions , then that does not have yet the support for it. You either have to use a version that is in our docker images from post December update, or NAV 2018

kalberes avatar Jan 18 '18 12:01 kalberes

kalberes,

i use AL language extension for Dynamics 365 for Finance and Operations, Business edition. and version 0.11.14434

you mean i could not add pages or reports in the D365 BE. then how could i add the menu in the D365 BE?

thanks in advance.

Twija avatar Jan 19 '18 02:01 Twija

That version does not support it. You will have to wait until a newer version is published to VSCode. For now only the docker images >= December or Nav 2018 versions support this property.

kalberes avatar Jan 19 '18 08:01 kalberes

thank you kalberes

i need to find a different way.

Twija avatar Jan 23 '18 10:01 Twija