Report issue in RTC only
navuser1
Member Posts: 1,334
Dear Sir,
Unable see the Test Report preview from Payment Journal in NAV 2009 R2 (RTC). It gives the below error message.
How to solve this issue ?
Note :- Same thing working correctly from Classic Client.
Thanks!
Unable see the Test Report preview from Payment Journal in NAV 2009 R2 (RTC). It gives the below error message.
How to solve this issue ?
Note :- Same thing working correctly from Classic Client.
Thanks!
Now or Never
0
Comments
-
Is the report standard or has it been modified (or is it localized)?
Is there some commit (i don't remember if it's possible) under the section triggers?
I'm asking it because sometimes that kind of error can be solved by placing the right COMMIT statement in the right place. Some other times, the code is not well designed.0 -
This is Localized Standard Report (IN Version), ID 2.
The most interested thing is that the same report is running correctly from different Journal Screen.
I have found no "COMMIT" statement in any Section trigger.
:shock:Now or Never0 -
Can you show us the code under OnPush trigger of Test Report from Payment Journal Page and also PrintGenJnlLine function code from Codeunit Test Report-Print...
I am using NAV2009R2 32012 build and didnt get any error.0 -
<Action45> - OnAction()
ReportPrint.PrintGenJnlLine(Rec);
PrintGenJnlLine(VAR NewGenJnlLine : Record "Gen. Journal Line")
GenJnlLine.COPY(NewGenJnlLine);
GenJnlLine.SETRANGE("Journal Template Name",GenJnlLine."Journal Template Name");
GenJnlLine.SETRANGE("Journal Batch Name",GenJnlLine."Journal Batch Name");
IF GenJnlLine.FINDFIRST THEN
GenJnlLine.CalcTDS('');
GenJnlTemplate.GET(GenJnlLine."Journal Template Name");
GenJnlTemplate.TESTFIELD("Test Report ID");
REPORT.RUN(GenJnlTemplate."Test Report ID",TRUE,FALSE,GenJnlLine);Now or Never0 -
Above code should benavuser1 wrote:IF GenJnlLine.FINDFIRST THEN
GenJnlLine.CalcTDS('');IF GenJnlLine.FINDFIRST THEN IF GenJnlLine."TDS Nature of Deduction" <> '' THEN BEGIN GenJnlLine.CalcTDS(''); COMMIT; END;0 -
mohana_cse06 wrote:
Above code should benavuser1 wrote:IF GenJnlLine.FINDFIRST THEN
GenJnlLine.CalcTDS('');IF GenJnlLine.FINDFIRST THEN IF GenJnlLine."TDS Nature of Deduction" <> '' THEN BEGIN GenJnlLine.CalcTDS(''); COMMIT; END;
Yes!
I have found this correction in NAV 2013 in IN version.
Thanks you.Now or Never0 -
Dear Sir,
The uncorrected code does not give me any error message while it's called from Classic Client from Payment Journal Screen (Same Batch).
What is the reason ? :roll:Now or Never0
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
- 323 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
