I'm trying to move some code from NAV2018 to a BC14 OnPrem extension.
On P46 Sales Order Subform there's an Item Variable, that we get OnAfterGetRecord. Item."Description 2" is then added as SourceExpr on the page.
How is this simple code supposed to work as a page extension?
Tried to create a function in the page extension object in AL, that returns Item."Description 2", and then add that as a field. This doesn't work.
0
Answers
A possible workaround could be that you create a new field "Description 2" in a table extension and show that field in the page extension.
I tried using txt2al on a delta file, but this just results in //Unsupported feature: Code Modification on "OnAfterGetRecord".
I've considered adding a flowfield, but would rather find a way to this more in line with the current (old) solution, as this is used quite often.