How do I show the values of each record on the Report?

mysamza
Member Posts: 66
So I was told to print the comments from the Purch. Comment Line Table on the Purchase Order report. When on a Purchase Order there is a Button called Comments. Which allows you to add comments with the date. The date doesn't matter here because I was told Comment1, Comment2, Comment3, etc. will be added. And those 3 comments must be shown on the Purchase Order Report.
I started the following approach and it might be wrong.
Global Variables
Var POcomments: Record Purch. Comment Line;
Var testarray[10] of Text[80];
POcomments.SetFilter("No.", "Purchase Header"."No.");
IF POcomments.FindSet THEN begin
repeat
for i := 1 to 3 do begin
testarray[ i ] := POcomments.Comment;
Message(testarray[ i ]);
i := i + 1;
end;
until POcomments.Next = 0;
END;
So I was planning to put all the comments (notice how the Purch. Comments table can have multiple comments for the same document no with an incremental line. no value.) into an array.
What I soon realized was that in the dataset I can't add an array variable, I tried. Also, even if it did, I was wondering how was I going to iterate through it in the RDL.
Please help me with this.
Thanks in advance.
I started the following approach and it might be wrong.
Global Variables
Var POcomments: Record Purch. Comment Line;
Var testarray[10] of Text[80];
POcomments.SetFilter("No.", "Purchase Header"."No.");
IF POcomments.FindSet THEN begin
repeat
for i := 1 to 3 do begin
testarray[ i ] := POcomments.Comment;
Message(testarray[ i ]);
i := i + 1;
end;
until POcomments.Next = 0;
END;
So I was planning to put all the comments (notice how the Purch. Comments table can have multiple comments for the same document no with an incremental line. no value.) into an array.
What I soon realized was that in the dataset I can't add an array variable, I tried. Also, even if it did, I was wondering how was I going to iterate through it in the RDL.
Please help me with this.
Thanks in advance.
0
Answers
-
You can added a dataitem of type purch. Comment line, and link it throw "No." then i rdlc you add a group for this. Then you can delete All your code with array 😊For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions