Run a field in body of report only once?

nverma
Member Posts: 396
I created a report for our client a while ago and they wanted a few modifications. So basically, the user will go to Customer Ledger Entries and select the ones he wants. Based on the selection, I have to transfer the Description and the Amount field from the selection to the report I have created. In the report, we have the following fields in the header:- Year, Description, and Amount.
1) In the body section, I was able to get the Description, and Amount field user selected. However, the client want the year to be printed once. Currently, since its in the body section, it repeats it for every single record. Is there any property that I can set, so the year field runs only once in the report. I tried moving the Year field from the body section to the Header section (which fixed the issue, but now its not at the same level as the description field). The client needs the year to be at the same level as the first description field).
2) When the report is run, I want it to be able to Automatically Incremment the Receipt No. based on the number it was last time. For Instance, I ran the Report Once (Thus, Receipt No. field should show 1. The next time I run the report, it should automatically Incremement the Receipt No. and show the receipt No. field as 2). Any Idea how I can implement this functionality?
1) In the body section, I was able to get the Description, and Amount field user selected. However, the client want the year to be printed once. Currently, since its in the body section, it repeats it for every single record. Is there any property that I can set, so the year field runs only once in the report. I tried moving the Year field from the body section to the Header section (which fixed the issue, but now its not at the same level as the description field). The client needs the year to be at the same level as the first description field).
2) When the report is run, I want it to be able to Automatically Incremment the Receipt No. based on the number it was last time. For Instance, I ran the Report Once (Thus, Receipt No. field should show 1. The next time I run the report, it should automatically Incremement the Receipt No. and show the receipt No. field as 2). Any Idea how I can implement this functionality?
0
Comments
-
1) you have to create 2 body sections..one with year,description and another with only description
Show first section only one time..
2)You can create a table and Insert the record each time in it when you run the report..0 -
I created a body section like you suggested. How can I show it only once? What property would it be? SHOWOUTPUT??0
-
-
UMMM.....What would the if condition be????
if ??????? then
Begin
CurrReport.SHOWOUTPUT(TRUE);
end0 -
1.You have to take an Integer variable or boolean
2. initialize them to 0 and false in the begining of report
3. Print the first section if integer =0 or boolean = false
4. make the integer to 1 or boolean to true in same section once after printing
5. print the second section if integer = 1 or boolean = true.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