Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
732
stars
243
forks
source link
Expression this.CurrPage does not resolve in pageextensions #7822
1. Describe the bug
In pageextensions,
this.CurrPage
fails with a compilation error:This is rather strange, as
CurrPage
does resolve in both the page in the pageextension, sothis.CurrPage
should also resolve.2. To Reproduce Steps to reproduce the behavior:
3. Expected behavior I would expect
this.CurrPage
to resolve asCurrPage
resolves.4. Actual behavior The code fails with compilation error
error AL0847: 'Page MyPage' does not contain a definition for 'CurrPage'
5. Versions:
Final Checklist
[x ] Search the issue repository to ensure you are reporting a new issue
[ x] Reproduce the issue after disabling all extensions except the AL Language extension
[ x] Simplify your code around the issue to better isolate the problem