Update page from subpage

Mitznaj
Member Posts: 11
Good morning, my question is simple, (maybe).
I have a page and different subpages into it.
Each subpage is connected to the previous subpage and i want to automate the data selection in the subpages in this way:
1 - I open the main page.
2 - First subpage shows the records i decided using the "SubPageLink" Property.
3 - When i select(mouse clicking) a record on the subpage1 the main page will only show the records that have the same value of the PK in subpage1.
4 - Thanks to the operation at point 3 the subpage2 will only show the record i'm interested in (connected to the selected PK of subpage1), and using the same mechanism i will fille subpage3,subpage4,subpage(x).
As for now i succeeded only in points 1 and 2.
Is it possible to create such mechanism? I don't know what i'm missing but i tried to implement this using this logic:
* I created a global variable for the main page, called "main" in the globals of subpage1.
* I wrote this code in C/AL editor of subpage1:
OnAfterGetCurrRecord()
main.SETRANGE(Field1,Rec.Field1)
I was expecting the main page to refresh after subpage1 record selection(mouse click) and allow me to see only the data referring to a specific Field, but it wasn't the case. Can you help me please?
I have a page and different subpages into it.
Each subpage is connected to the previous subpage and i want to automate the data selection in the subpages in this way:
1 - I open the main page.
2 - First subpage shows the records i decided using the "SubPageLink" Property.
3 - When i select(mouse clicking) a record on the subpage1 the main page will only show the records that have the same value of the PK in subpage1.
4 - Thanks to the operation at point 3 the subpage2 will only show the record i'm interested in (connected to the selected PK of subpage1), and using the same mechanism i will fille subpage3,subpage4,subpage(x).
As for now i succeeded only in points 1 and 2.
Is it possible to create such mechanism? I don't know what i'm missing but i tried to implement this using this logic:
* I created a global variable for the main page, called "main" in the globals of subpage1.
* I wrote this code in C/AL editor of subpage1:
OnAfterGetCurrRecord()
main.SETRANGE(Field1,Rec.Field1)
I was expecting the main page to refresh after subpage1 record selection(mouse click) and allow me to see only the data referring to a specific Field, but it wasn't the case. Can you help me please?
0
Best Answer
-
The solution was to use the "provider" property of the various subpages, pointing at the IDs of the previous subpage and so on...0
Answers
-
Yeah, I've done something similar in the past, you should be able to achieve it. Have you tried to refresh page?1
-
The solution was to use the "provider" property of the various subpages, pointing at the IDs of the previous subpage and so on...0
-
@Mitznaj I also had same query like you, and through your comment it helped, thank you for that.
Now one thing is that I will also add the records in the level 3 and 4 at that time the PK of above level should be required otherwise it will throw error "The view is filtered, and the entry is outside the filter. Some actions may not work.". Do you have any idea about that ?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