List Page with two source tables

DanielF
Member Posts: 21
Hi everyone,
is there a possibility to create a List Page with two source tables?
For example a List Page with Purchase Invoice Lines AND Purchase Receipt Lines.
In SQL it would be a view with SQL command UNION on two tables.
I would be very pleased if I could get help or further information on this topic.
Thanks in advance.
Daniel
is there a possibility to create a List Page with two source tables?
For example a List Page with Purchase Invoice Lines AND Purchase Receipt Lines.
In SQL it would be a view with SQL command UNION on two tables.
I would be very pleased if I could get help or further information on this topic.
Thanks in advance.
Daniel
0
Answers
-
no, you have to use one of them as temporary source table and fill the details with other table also while opening and show them on page.0
-
You can create a SQL view based on these tables and then you can create a NAV Table on the base of this SQL View. Check this
https://rockwithnav.wordpress.com/2016/11/29/sql-view-nav/Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Thanks guys! For future requirements I will try implement a SQL View.0
-
I would always advise against using SQL views.
It's not exactly future/cloud proof and it adds unnecessary complexity to your installation and maintainability.0 -
Agree - temporary tables is the way to go here, you could re-use one of the tables and copy the other recordset in or create a new table for the combination of data.
One advantage to a temporary table is that if you need this report elsewhere (i.e. in a report), you can re-use the code that scans the tables & creates the data for the page & report.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