How to use integer dataitem in RTC report
pradeepgudipudi
Member Posts: 8
I have created a simple report with integer, sales invoice header, sales invoice line.
sales invoice header is indented to integer
sales invoice line is indented to sales invoice header.
- Integer
- Sales Invoice Header
- Sales Invoice Line
I have written code to print the same 1 page report to 3 pages(1st page as Original, 2nd page as Duplicate, 3rd page Triplicate) by using integer.
On PreDataItem()
intNoOfLoops += 1;
SETRANGE(Number,1,3);
onAfterGetRecord()
IF Number=1 THEN BEGIN
txtCopy:='Original';
END;
IF Number=2 THEN BEGIN
txtCopy:='Duplicate';
END;
IF Number=3 THEN BEGIN
txtCopy:='Triplicate';
END;
This is working fine in classic but it is not working in RTC report.
Do i need to write any code in RTC.
Can anybody help me in this.
Thanks,
Pradeep
sales invoice header is indented to integer
sales invoice line is indented to sales invoice header.
- Integer
- Sales Invoice Header
- Sales Invoice Line
I have written code to print the same 1 page report to 3 pages(1st page as Original, 2nd page as Duplicate, 3rd page Triplicate) by using integer.
On PreDataItem()
intNoOfLoops += 1;
SETRANGE(Number,1,3);
onAfterGetRecord()
IF Number=1 THEN BEGIN
txtCopy:='Original';
END;
IF Number=2 THEN BEGIN
txtCopy:='Duplicate';
END;
IF Number=3 THEN BEGIN
txtCopy:='Triplicate';
END;
This is working fine in classic but it is not working in RTC report.
Do i need to write any code in RTC.
Can anybody help me in this.
Thanks,
Pradeep
0
Comments
-
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
What's not working?
Is the txtcopy in your dataset? Is it calculated incorrectly?
Is it not visible on your layout, ...
First check your dataset, if it's not there, then add it.
If it's there, then we need more info.0 -
You could also take a look at the layout for the existing reports that use integer data items and try to spot some differences between yours and the base reports.0
-
The report is printing only 1 page but it should print the same copy in 3 pages with 1st page as Original, 2nd page as Duplicate, 3rd page as Triplicate.0
-
matttrax wrote:You could also take a look at the layout for the existing reports that use integer data items and try to spot some differences between yours and the base reports.
:thumbsup:
Check Sales Order and Quote reports with No. of Copies set to 3..0 -
Thanx for the reply Mohana i think it will work..!!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
- 324 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

