Skip to content
New issue

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

this keyword does not work properly for table extension #7982

Open
navdotnetreqs opened this issue Feb 24, 2025 · 1 comment
Open

this keyword does not work properly for table extension #7982

navdotnetreqs opened this issue Feb 24, 2025 · 1 comment

Comments

@navdotnetreqs
Copy link

navdotnetreqs commented Feb 24, 2025

this.Calcfields(New_Field) run in a table extension does not find New_Field if it is declared in a table extension.

It seems that the this-keyword on a table extension refers to the base table, and does not consider extension fields (at least not in the same object). Thus we get conflicting requirements from the analyzer, where on the one hand we must use this, but on the other hand the field is not found if we use this.

Image

AL[AA0248] tells me I must use the THIS keyword for the calcfields. However, if I add it:

Image

AL0847 won't event let me compile.

We can use "Rec." though, but that's not what AA0248 says we should do, so maybe it's an issue with the analyzer..?

@navdotnetreqs
Copy link
Author

Same goes for page extensions. If we use a variable, we obviously cannot use Rec.
"this" is recommended, but "this" fails:

Image

error AL0847: 'Page Microsoft.Purchases.Document."Purchase Order"' does not contain a definition for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants