Newbie need help, CurrReport.showoutput() raised error
andihp
Member Posts: 7
Hi All,
I am totally new in Navision world, and being assigned to help development team to create some customized reports.
I have problem in one of my report, in the detail section, when the report runs statement of CurrReport.NewPage and follow by CurrReport.showoutput(false/true) at the same record, it will raised an error message "the called function can only be called from a Section Trigger".
How do I avoid / remedy this error message?
Any help would be very much appreciated.
TIA & Kind Regards
Andi.
I am totally new in Navision world, and being assigned to help development team to create some customized reports.
I have problem in one of my report, in the detail section, when the report runs statement of CurrReport.NewPage and follow by CurrReport.showoutput(false/true) at the same record, it will raised an error message "the called function can only be called from a Section Trigger".
How do I avoid / remedy this error message?
Any help would be very much appreciated.
TIA & Kind Regards
Andi.
0
Comments
-
In the dataitem triggers you can only use CURRREPORT.SKIP to not use a record.
To avoid showing a record in the sectiontriggers you can use CURRREPORT.SHOWOUTPUT.0 -
Hi Mark,
Thanks for your prompt reply.Mark Brummel wrote:To avoid showing a record in the sectiontriggers you can use CURRREPORT.SHOWOUTPUT.
That's what I intended to do exactly, but the problem is if CURRREPORT.SHOWOUTPUT runs after CURRREPORT.NEWPAGE statement then the error is raised.
Why the currreport.newpage is causing the currreport.showoutput to be malfunctioned.
I put both statement in the body section trigger.
TIA
Andi0 -
the code as follows:
IF (intCount>8) THEN
IF ((intRow MOD 8)=0) THEN
CurrReport.NEWPAGE; =======> the currreprt.newpage was executed.
IF ("G/L Account No."='10110010') AND (Debit1=0) THEN
BEGIN
tbGEVat.RESET;
tbGEVat.SETFILTER("Document No.","Document No.");
tbGEVat.SETFILTER("G/L Account No.","G/L Account No.");
IF tbGEVat.FIND('-') THEN
REPEAT
Debit1:=Debit1+tbGEVat."Debit Amount";
UNTIL tbGEVat.NEXT=0;
CurrReport.SHOWOUTPUT(FALSE); ====> this raised error.
END0 -
In which trigger is your code placed? CurrReport.SHOWOUTPUT can be just in OnPreSection or in OnPostSection...0
-
If it is true, than it must run without problem :-)
Shall you export the object into text and copy&paste the whole trigger from the text file here (with the name of the trigger etc...)?0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 250 Dynamics CRM
- 102 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

