Three levels on related tables in a page

dwk
Member Posts: 9
Hi,
I have 3 tables Header, Line, Comment, which needs to be related to each other. Lines are linked to header on a field called "No.", and comments are linked to Lines on "No." and "Line No."
So, I can show a List of Header records, with a ListPart of Line records showing the lines ofr the currently highlighted Header record.
So far, so good, now for the problem:
I would to show the comment line records related to the highlighted Line record, and show this in the same page.
I have tried making a List Page for the header, and a ListPart for the lines, and the comment lines.
I cannot have a listpart inside a listpart, so that wont work.
I can have two listparts in the list page, but I cannot relate to anything but the header table. What I really need to do is link the second listpart to the first listpart.
Any ideas on how to achieve this, if it is at all possible ?
I have 3 tables Header, Line, Comment, which needs to be related to each other. Lines are linked to header on a field called "No.", and comments are linked to Lines on "No." and "Line No."
So, I can show a List of Header records, with a ListPart of Line records showing the lines ofr the currently highlighted Header record.
So far, so good, now for the problem:
I would to show the comment line records related to the highlighted Line record, and show this in the same page.
I have tried making a List Page for the header, and a ListPart for the lines, and the comment lines.
I cannot have a listpart inside a listpart, so that wont work.
I can have two listparts in the list page, but I cannot relate to anything but the header table. What I really need to do is link the second listpart to the first listpart.
Any ideas on how to achieve this, if it is at all possible ?
0
Comments
-
Yes it is possible. Add both parts to the card page. On the second part set the ProviderID to the ID of the first part. Save the page and set the SubFormLink (SubPageLink). The source table for the link is now the table from the control you selected with the ProviderID.
I think this feature is intended to be used with factBoxes and not for the layout you want to achieve, but it is working fine in my test system.1 -
SiSt wrote:Yes it is possible. Add both parts to the card page. On the second part set the ProviderID to the ID of the first part. Save the page and set the SubFormLink (SubPageLink). The source table for the link is now the table from the control you selected with the ProviderID.
I think this feature is intended to be used with factBoxes and not for the layout you want to archive, but it is working fine in my test system.
I am not sure I understand what you are saying correctly.
In the SubPageLink options you can only have constant values, as far as I know. Please correct me if I am wrong.0 -
For the SubFormLink/SubPageLink you can select if you want to filter on a constant value, apply a filter or link the page by using a field. The table used on the left side is the table used in the part, so you have to select a valid one, before you can select the fields. The fields for a field link are the one from the source table of the ProviderID or the parent page if you don't sepcify the providerID. The SubFormView/SubpageView can only be used to apply constant filters.0
-
Hi again,
Once I understood that the provider id needs to be the ID of the control, everything clicked into place.
Thank you for your help!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