-
Notifications
You must be signed in to change notification settings - Fork 242
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
BC2021w1. Return record from table procedure #6529
Comments
Please clarify. ": Record "Purchase Line"" just says, that the return type of the function is a Record of Type Purchase Line. |
Do you mean the first one? Why should it return |
Sure, but then doing that is pointless, since the |
In case of TableExtensions you are right. In case of PageExtensions returning the Rec would be good as it would make the difference between: Also in the example provided by dkatson the return type of the function is set, so it should return something. |
I am closing this issue as this is the expected behavior. The other comments on the issue provide more information on how to handle this scenario. |
Describe the bug
When i create a procedure on the table or tableextension and return the record this doesn't work
To Reproduce
this returns empty record
tableextension 50100 "PurchaseLineExt" extends "Purchase Line" { procedure FindFirstRec(): Record "Purchase Line" begin Rec.FindFirst(); end; }
this returns first record
tableextension 50100 "PurchaseLineExt" extends "Purchase Line" { procedure FindFirstRec() PurchLine: Record "Purchase Line" begin PurchLine.FindFirst(); end; }
Expected behavior
Should return Rec
Screenshots
5. Versions:
7.0.426055
The text was updated successfully, but these errors were encountered: