Dataport export of 2 tables
SusieN
Member Posts: 3
My apologies if someone has answered this but I have searched and can not find any topics with quite this issue. I am new to Nav and like others trying to use a dataport to export two tables. My problem is that the two tables are essentially unrelated.
We use Resources as stock Locations. I want to, for each Resource code, export the current [Inventory] of a specific range of Items (filtered by Location=Resource). The dataport won't let me indent the Items under the Resource and I can not work out how to generate this 'loop' around the same set of Items.
Any assistance greatly appreciated!
We use Resources as stock Locations. I want to, for each Resource code, export the current [Inventory] of a specific range of Items (filtered by Location=Resource). The dataport won't let me indent the Items under the Resource and I can not work out how to generate this 'loop' around the same set of Items.
Any assistance greatly appreciated!
0
Comments
-
I don't know how you want to be the layout of the records/columns.
But I think you will need to program it:
Fill up a temptable with all your data in the OnPreDataport-trigger.
Then use the integer-table to loop your temptable on and export the fields of the temptable.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks kriki - I will give that a try, though never done anything so clever as creating a temp table so could be a challenge!!0
-
Good luck.SusieN wrote:Thanks kriki - I will give that a try, though never done anything so clever as creating a temp table so could be a challenge!!
BTW : learn it well. Temptables are used a lot in Navision and their use solves a lot of problems. Look also at the how-to forum, it can be useful for temptables.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi Susie,
You can use a process only report for this also and manually output the data using
Textfile.CREATE( FileName ) in the onpredataitem
and
Textfile.WRITE( Info ) in the onaftergetrecord and
Text.CLOSE in the onpostdataitem
where Textfile is a variable of type file0 -
SusieN wrote:Thanks kriki - I will give that a try, though never done anything so clever as creating a temp table so could be a challenge!!
And just one thing.
When you start using Temp Tables, before testing, open properties then check if you set the temp property.
Then close Navision, get a coffee, come back open properties and check to make sure you set the temp property.
Then get a college to open the object, and check to make sure the temp property is set,
THEN you can start testing.
PS: if they (we) haven't done it themselves, then we have all at least been near by when another developer wrote.
TableXYZ.DELETEALL; (thinking the property was set). \:D/
I have even seen someone do it on a live system, since "I was just writing a report".David Singleton0
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
- 323 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
