I have a report already written but I cannot sort by Document Date (ascending), tried adding a key but it throws up an error.
The vendor ledger entry table does not have an active key that starts with the following field(s) Document Date.
Could I write a piece of code in the C/AL (getafterrecord) to resolve this instead of adding a key ?
If so can you help with the actual wording of the code.
(My report is based on Vendor table with vendor ledger entry indented under if that helps)
0
Comments
It could save you a lot of code.
You can try to define the DataItemTableView in the properties of the dataitem in your report.
Try Just select the Dataitem in your report designer and press Shift + F4 to view the properties.
|To-Increase|
Hi
Tried above comes up with the same message
"The vendor ledger entry table does not have an active key that starts with the following field(s) Document Date."
Because it is very odd that that doesn't work.
Sorting on a non key field in code can be very hard because a report steps trough the filtered and sorted table record for record. And when I think about it, it seems impossible to do (but I have to admit that I'm no NAV expert).
|To-Increase|
then show the temptable...I hope you're a developer
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Right, this is the meaning of :-({|=
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog