We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1. Describe the bug
In pageextensions, this.CurrPage fails with a compilation error:
this.CurrPage
'Page MyPage' does not contain a definition for 'CurrPage'
This is rather strange, as CurrPage does resolve in both the page in the pageextension, so this.CurrPage should also resolve.
CurrPage
2. To Reproduce Steps to reproduce the behavior:
page 50100 MyPage { trigger OnOpenPage() begin this.SaveRecord(); CurrPage.SaveRecord(); this.CurrPage.SaveRecord(); end; } pageextension 50100 MyPageExtension extends MyPage { trigger OnOpenPage() begin this.SaveRecord(); CurrPage.SaveRecord(); this.CurrPage.SaveRecord(); // 'Page MyPage' does not contain a definition for 'CurrPage'(AL0847) end; }
3. Expected behavior I would expect this.CurrPage to resolve as CurrPage resolves.
4. Actual behavior The code fails with compilation error error AL0847: 'Page MyPage' does not contain a definition for 'CurrPage'
error AL0847: 'Page MyPage' does not contain a definition for 'CurrPage'
5. Versions:
[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
The text was updated successfully, but these errors were encountered:
From the code example, it seems there's a mismatch between pages and page extensions.
Sorry, something went wrong.
No branches or pull requests
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:
ms-dynamics-smb.al
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
The text was updated successfully, but these errors were encountered: