Dataport with two dataitem

doubtfire
Member Posts: 60
I have three tables "Item" and "Sales Invoice Header" and "Sales Invoice Line".
"Sales Invoice Header" [No_] links with "Sales Invoice Line" [Document No_].
"Item" [No_] links "Sales Invoice Line" [No_].
I am creating a dataport to pull out invoices with items having '1000' to '3000'. How and where I could link the three dataitems together ? Thank you.
"Sales Invoice Header" [No_] links with "Sales Invoice Line" [Document No_].
"Item" [No_] links "Sales Invoice Line" [No_].
I am creating a dataport to pull out invoices with items having '1000' to '3000'. How and where I could link the three dataitems together ? Thank you.
0
Comments
-
Use two record type global variables for balance two data items.
do the necessary processing(setrange/setfilter whatever) and store the required data in other variables.
Manually write the source expression in the properties of dataport field.
Your job is done.Regards,
Deep
India0 -
As far as I know you cannot link dataitems in a dataport, perhaps ver5???.
You can use GET function & code to assign field values to variables and have that export3ed out.
What fields do you really need from ITEM & SALES HEADER?
Most people would create a report or codeunit to export data like this.
Do you want it in TEXTfile or do you want to use the excel buffer?0 -
As far as I know you cannot link dataitems in a dataport, perhaps ver5???.
I dont know about 5.0, but I have made dataports in 4.0 SP3 using three tables, one as a data item and other two as variables. Then retrieving required data from the record variables in other variables, and then using them into source expressions.Regards,
Deep
India0 -
that's what I meant by get & code
Just use Sales Invoice Line & from there you can GET the other info
Item.GET("Sales Invoice Line"."No.");
SalesInvHeader.GET("Sales Invoice Line"."Document No.");
VarForItem := Item.XXXXX;
VarForSIH := SalesInvHeader.XXXXX;
etc
etc.0 -
Yess. The same.
I am a functional rather than a technical, but I can code a little.Regards,
Deep
India0 -
Lot of suggestions. Thank you. I used to output to text file, but what is the way to Exel exporting ? Please explain in details. I believe if there is a way to do two, three, more tables should be ok too !?!? Thanks ALL.0
-
Demo of Excel buffer usage
http://www.mibuso.com/forum/viewtopic.php?t=120140
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