Hi,
I use RecRef type to show date on report (navision 2016). The code is:
OnPreReport()
RecRefe.OPEN(50000);
FieldRef:=RecRefe.FIELD(4);
IF RecRefe.FINDFIRST THEN
REPEAT
EmployeeNo:=FieldRef.VALUE;
UNTIL RecRefeR.NEXT=0;
When I show EmployeeNo on report I only get the last value, but I need list of all employees. How to solve this?
Best regards
0
Answers
Add code in your REPEAT loop to do, what you need.
Or maybe you need a proper DataItem?
Check the report (delete .jpg and import the report in your database. Report ID = 92600).
Your access to table objects or table data does noch change with using RecordRef. Rather than using an Integer DataItem, as nabil.bamoh@hotmail.com suggested, you can create the Dataitem for the table 50000 directly, if you have rights to read that data. If you cannot read that data, you can't test your report, and should not have to create it in the first place. This is not only much easier to do, but also much easier to understand and maintain later.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!