What is the difference between RecordRef and Rec, and how do we use the RecordRef in AL. please share the example of Recordref in Al.
What is the difference between RecordRef and Rec, and how do we use the RecordRef in AL. please share the example of Recordref in Al.
Thank you for your Explanation.
The most important difference is that a Record is hard wired to a table when it is declared in the code, while a RecordRef can change its table during runtime, e.g. based on a setup table.
Check this example from the docs:
docs.microsoft.com/.../recordref-gettable-method
The variable GLAcc is hard wired to „G/L Account“, while the RecRef variable is set to a table using the GetTable method.
If you have a specific issue/question, just ask
Small explanation here but has an example of it in action to cement understanding: https://youtu.be/GwUx2Or4TFI
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,564 Super User 2024 Season 2
Martin Dráb 228,651 Most Valuable Professional
nmaenpaa 101,148