OnAfterGetRecord in RTC report does not trigger

Nagi
Member Posts: 151
Hello experts!
I'm struggling with a report in NAV 2009 R2. I have a report with both RTC and classic layout. In the classic client the report works fine, but when I run the RTC version the dataset is empty. I have discovered that the OnAfterGetRecord trigger does not fire when I run the RTC version, but I can't figure out why it doesn't. Are there any properties in the Visual Studio designer that controls this?
I would appreciate any input on this, because I'm pretty clueless about what to do. ](*,)
I'm struggling with a report in NAV 2009 R2. I have a report with both RTC and classic layout. In the classic client the report works fine, but when I run the RTC version the dataset is empty. I have discovered that the OnAfterGetRecord trigger does not fire when I run the RTC version, but I can't figure out why it doesn't. Are there any properties in the Visual Studio designer that controls this?
I would appreciate any input on this, because I'm pretty clueless about what to do. ](*,)
0
Answers
-
no, the onaftergetrecord should fire correctly. Are you sure that you don't have some code under the sections?
are you sure that some code is not conditioned byIF ISSERVICETIERE THEN BEGIN ... END;
?0 -
Thank you for you reply, Belias.
In answer to your question, there is no code in the report that is conditioned by RTC vs. Classic. I added messages to the different triggers to see if they were fired, and in RTC the OnAfterGetRecord trigger simply doesn't fire.
I'm still learning the basics of report design in RTC, but my understanding of it so far is that RTC will run through the entire report before outputing to the screen (where the classic client will output continously while running through the dataitems). That is why I'm quite baffled that the report does not fire the trigger. I thought maybe it could have something to do with sorting and grouping properties in Visual Studio, but I've had no luck with this. :-k0 -
are you sure you're running the correct report on the correct database? for my experience, the onaftergetrecord trigger fires correctly both on classic and RTC...
are you 100% sure that the report works correctly in classic?does it show something?
do you have a printonlyifdetail = true on the most indented dataitem, maybe?
sorry, i'm just guessing...can you please post a screenshot of your dataitems, rdlc layout, classic layout and dataset (with the about this report feature).
Moreover, a code snippet of the onaftergetrecord code should be useful0 -
Turns out it's a filter issue. :oops:
The report is run from two different points in the solution. The report call in the classic client handled the filters correctly (cancelling the filters from report call 1 when calling from report call 2 and vice versa), but the RTC kept the filters from report call 1 and then also applied the filters from report call 2, and that's why the OnAfterGetRecord was never fired.
I've been staring at the screen for ages without seeing that. #-o
But thank you for lending a helping hand, Belias! =D>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