Skip record in report
Shah
Member Posts: 15
hi,
first of all, sorry for my english :roll:
i have a general problem with reports. imagin we have a report using 3 recordsets:
activity
user
timeentries
the report shows for each activity for each user the timeactivities. this is no problem. but what if for one activity there is no timeentries and so you want that the report skips this activity?
i dont know how...
first of all, sorry for my english :roll:
i have a general problem with reports. imagin we have a report using 3 recordsets:
activity
user
timeentries
the report shows for each activity for each user the timeactivities. this is no problem. but what if for one activity there is no timeentries and so you want that the report skips this activity?
i dont know how...
0
Comments
-
On the dataitem there is a property "PrintOnlyIfDetail". Put this to yes for both Activity and User. (I suppose Activity is first level, User second level and time third level).Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
you could change the property on the dataitem for "PrintOnlyIfDetail" to YES
or use the SKIP see c\side reference guide
SKIP
Use this function to skip the current iteration of the current data item.
SKIP
Comments
While you can use SHOWOUTPUT to suppress printing the output from a section in a report, SKIP allows you to suppress any processing at all and move on.
Example
If you perform some processing in the OnAfterGetRecord trigger of a data item, and do not want this processing to take place in some situations, you can use SKIP in this way:
IF Balance = 0 THEN
CurrReport.SKIP
ELSE
... // some processing
A typical situation where you will use SKIP like this is when you want to retrieve records from a related table, using values in the current record for forming a filter. If the values in the current record already indicate that no records from the related table will be retrieved, there is no need to perform this processing - and you can use SKIP to avoid it.0 -
-
kriki wrote:I'm getting close to 1000!
It's a long satisfing journey, isn't it \:D/0 -
tx all for the replies....
but that dont solve my problem because there is no relation between activity and user...
and i can't use the funktion skip in activity because at that time i dont know whether there is an entry in timeentries...
:?0 -
So if I understand well, for each activity, you have to search the users who have entries and print the user and the entries?
In this case, you can make a dataitem with activity.
Under it and indented a dataitem on User. You have to scan all users for each activity. So this can be a little slow.
Under user, you have the entries (indented twice). This you link to the user, so it only shows the entries of the user. In the "OnPreDataItem()"-trigger, you have to put a filter so the entries show only the entries of current Activity.
And you can use "PrintOnlyIfDetail"=YES on User and entries.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
that's it
i already genarated the report the way u said und sat the "PrintOnlyIfDetail"=YES for activities. but forgot to set "PrintOnlyIfDetail"=YES for user....
thank u and all the others
=D>
0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 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