child page filter setting issue

arindam
Member Posts: 176
Hi,
I am facing a problem with NAV 2009 RTC SP1. This is related to a sublink form.
The problem is:
1. I have two pages. For example HeadPage and ChildPage.
2. HeadPage is linked with HeadTable and ChildPage is linked with childTable.
3. HeadPage contains few fields like, Emp Name, Emp Address.
4. ChildPage contains a grid which holds employee education details which comes from ChildTable.
5. HeadTable and ChildTable has a parent child relationship.
6. If I select Employee "A" then I should get the education details of employee 'A' at the subpage which is linked at headpage.
7. My problem is I am not able to filter childpage records from headpage. All records of Childtable are getting displayed at the grid.
I used follwoing codes:
OnOpenPage()
{
childtable.SETRANGE(recLine.AVA_TaxHdrID);
childtable.SETRANGE(childtable.headtableid,variableheadtableid);
IF childtable.FIND('-') THEN BEGIN
CurrPage.sfLine.FORM.SETTABLEVIEW(childtable);
END;
}
//sfLine is the subpage which is linked with childtable
Please let me know if you need any further elaboration of the issue.
Please help.
Thanks and Regards,
Arindam
I am facing a problem with NAV 2009 RTC SP1. This is related to a sublink form.
The problem is:
1. I have two pages. For example HeadPage and ChildPage.
2. HeadPage is linked with HeadTable and ChildPage is linked with childTable.
3. HeadPage contains few fields like, Emp Name, Emp Address.
4. ChildPage contains a grid which holds employee education details which comes from ChildTable.
5. HeadTable and ChildTable has a parent child relationship.
6. If I select Employee "A" then I should get the education details of employee 'A' at the subpage which is linked at headpage.
7. My problem is I am not able to filter childpage records from headpage. All records of Childtable are getting displayed at the grid.
I used follwoing codes:
OnOpenPage()
{
childtable.SETRANGE(recLine.AVA_TaxHdrID);
childtable.SETRANGE(childtable.headtableid,variableheadtableid);
IF childtable.FIND('-') THEN BEGIN
CurrPage.sfLine.FORM.SETTABLEVIEW(childtable);
END;
}
//sfLine is the subpage which is linked with childtable
Please let me know if you need any further elaboration of the issue.
Please help.
Thanks and Regards,
Arindam
0
Answers
-
I may be missing something but...why don't you have a parent-child page with the child defined as a part with the SubFormLink set to link to the parent.
For example Sales Order Page has SalesLine defined as a part with "Document No.=FIELD(No.)" as the SubFormLink.
Tom0 -
Thank you very much. This solve my problem. I set the SetFormView and SetFormLink properties and it worked.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