Add a global variable in dropdown filter page
jasr23
Member Posts: 14
Hi everyone!
In a NAV 2015 Page, is it possible to add a global variable in the dropdown list filter in addition to the source table fields? This variable is receiving the value from the CU 408 - Dimension Mngt.
Thanks in advance
In a NAV 2015 Page, is it possible to add a global variable in the dropdown list filter in addition to the source table fields? This variable is receiving the value from the CU 408 - Dimension Mngt.
Thanks in advance
1
Answers
-
No, I'm afraid. A dropdown is shown by the UI when the source is an Option - be it a variable or a table field of Option type.
These types have a list of available options defined at design time, it is not possible to update or change them at run time.
You can mimic a dropdown to some extent. You can do this by adding a global variable of type code, putting a field on a page with the variable acting as a source, and defining the relation on the page field to a table.
If the table has a FieldGroup 1 defined on it, called DropDown, and if this field group will have only a single field, then the lookup window opened when someone start typing in the field will look like a dropdown.
SlawekSlawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-031 -
Hi, jasr23
I've added filter field in the source table and table relation property of field, needed to be dropdown. And then added code on OnAfterGetRecord trigger of page to fill filter field with my conditions. Works fine.Regards,
Yury2 -
Thanks Yury! It works perfectly.0
-
Hello @jasr23 have you got the solution of your question ?
I have the same question ?
Please reply as soon as possible.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
- 322 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

