Data item report issue
chris_luther
Member Posts: 14
Hi,
I'm trying to generate a report which has three data items associated to it,
The first is the main header, this is the staff name using the system.
The next is the refund they have done.
The third is the reason why they refunded, I have indented the tables to each other, I.e 1-2, 2-3. As the third table information (the reason) needs to be on the same line as the refund on the report.
Here's my problem, when you run the report the reason for the first entry is blanked and entered on the second entry and so forth. I understand that this is due to the way the report process in order.....
My question is how do I fix this? Really need to get it done, am fairly fresh to the Nav world but am keen to learn on my own so would really appreciate the help.
Thanks
I'm trying to generate a report which has three data items associated to it,
The first is the main header, this is the staff name using the system.
The next is the refund they have done.
The third is the reason why they refunded, I have indented the tables to each other, I.e 1-2, 2-3. As the third table information (the reason) needs to be on the same line as the refund on the report.
Here's my problem, when you run the report the reason for the first entry is blanked and entered on the second entry and so forth. I understand that this is due to the way the report process in order.....
My question is how do I fix this? Really need to get it done, am fairly fresh to the Nav world but am keen to learn on my own so would really appreciate the help.
Thanks
0
Comments
-
What is link condition between dataitems?Sincerely yours, GRIZZLY
Follow my blog at http://x-dynamics.blogspot.com0 -
and you can show report sections screenshot..0
-
I have attached screen shots of the following:
Data Item Layouts
Sections
As you can see from this screen shot of the 'printed report', it simply misses the first line, but takes that data to the second line.
0 -
Also the properties for the data items:
0 -
try by moving the fields from section "Trans. Sales Entry" body to "trans. infocode entry" body ..0
-
Thanks that worked...so obvious when you mentioned!
I have another issue now though, if there is no reason code for that entry, it doesn't display it now, I have checked 'PrintOnlyIfDetail' and that is set to no!
It appears to be that if there is no 'Trans. Infocode Entry' then it won't include the 'Trans. Sales Entry'
Any ideas?0 -
You have to check whether Trans. Infocode Entry exists or not from Trans Sales Entry onAfterGetrecord..
If exists then show the Trans. Infocode Entry sections
if not show Trans Sales Entry Sections0 -
Ok, that seems relatively straight forward, what would the code on the AfterGetRecord trigger look like?0
-
are you a technical person? :-kchris_luther wrote:Ok, that seems relatively straight forward, what would the code on the AfterGetRecord trigger look like?0 -
Yes, just we tend to use a company to design reports for us, however I am in the process of doing relevant courses in C/Side, so i'm trying to learn how to do this. I run the IT for my business and need to move my Nav development forward.0
-
Create a global variable as TransInfoCode with record trans Infocode Entry
Write below code in onAfterGetrecord of Trans. Sales EntryTransInfoCode.RESET; TransInfoCode.SETRANGE("Transaction No.","Transaction No."); // if you have staff ID in TransInfoCode entry table, you can filter on that also IF TransInfoCode.FINDFIRST THEN InfocodeExists := TRUE // InfocodeExists is a global boolean variable ELSE TransInfoCode := FALSE;
In Trans. Sales Entry Sections writeCurrReport.SHOWOUTPUT := NOT TransInfoCode;
In Trans. Infocode Entry SectionsCurrReport.SHOWOUTPUT := TransInfoCode;
PS: Above code in not tested so you may require some changes..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
- 322 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
