Dynamic SourceTableView for MenuSuite Pages

KarlRhodes
Member Posts: 37
I have a page that displays expense header records in a list and depending on the user opening the page, different record sets need to be displayed. For instance, when a finance user opens the page, they may wish to see items with a status of "Submitted" or "Approved", but when a manager opens the page, they will need to see claims that have a status of "Pending Approval".
Currently I am creating multiple pages to display data from the same table, but would like to know if I can filter this data before the page is opened, IE setting the SourceTableView depending on who opens the page.
I have added my pages to the MenuSuite and these display exactly as I expect in the RTC. However, maintaining multiple pages that will essentially be performing the same tasks and displaying the same (or very similar data - just filtered differently) is a pain and I wondered if there was any way of pre-filtering the data? It certainly doesn't look like you can from the MenuSuite.
Please understand I am new to NAV development so I appreciate your patience.
Thanks,
Karl
Currently I am creating multiple pages to display data from the same table, but would like to know if I can filter this data before the page is opened, IE setting the SourceTableView depending on who opens the page.
I have added my pages to the MenuSuite and these display exactly as I expect in the RTC. However, maintaining multiple pages that will essentially be performing the same tasks and displaying the same (or very similar data - just filtered differently) is a pain and I wondered if there was any way of pre-filtering the data? It certainly doesn't look like you can from the MenuSuite.
Please understand I am new to NAV development so I appreciate your patience.
Thanks,
Karl
0
Comments
-
KarlRhodes wrote:It certainly doesn't look like you can from the MenuSuite.
Prior to the advent of MenuSuites in version 4, menus were created using Forms, and you could place your code in the OnPush event of the button, but the MenuSuites did not retain this possibility.Kai Kowalewski0 -
Thank you Kai,
I will take the CodeUnit approach.
I don't mean to open a debate on the subject, but I do find it a little strange that this feature, the ability to set the Source table view, is not available. I suspect this has something to do with licencing and the objects in them.
Looking into the CodeUnit method it would appear I would need a codeunit for each view too.0 -
You can set your required filters in the OnPageOpen trigger. You should use FILTERGROUP to make sure that the user cannot clear/override the filters you are setting.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