Populating a Combo/Dropdown with data

lloydf
Member Posts: 73
How can I populate a Combo/Dropdown on a form to data in a table
thanks
thanks
0
Comments
-
Unfortunately, that's not possible. A combobox/dropdown list is populated by the optionstring property of an option type field/variable.0
-
Is it possible to build the optionstring variable dynamically by reading data from a Navision table?
If so could you please give me an example.
Thanks
LLoyd0 -
Nope, that isn't possible either. The Optionstring-property is read-only.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Does that mean that the optionstring value is always hard coded?0
-
Yep, at design-time you decide the number of options.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
So there is absolutely no way of dynamically populating a combo box?0
-
Check this
This is not dropdown.. but this is some solution
http://www.mibuso.com/forum/viewtopic.p ... highlight=0 -
lloydf wrote:So there is absolutely no way of dynamically populating a combo box?
I will say this only once: NoNo support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Hi Lloyd
Just an alternative idea.
If you can spare a table, create a new table to host your list of variables and use a lookup to that that new table.
If you need to do the same for various reasons, use the same principle than used in Table 355 where Table ID & Dim Code etc are used within Filters when looking up the related applicable value needed.
Regards, Stefan0 -
Thanks for that Stefan
A good idea.Is it possible to create a table and structure it with a key to identify different lookups and filter on the lookup?
eg Hold multiple lookups in the one table with a specific key for each.
Lloyd0 -
I have found forum post with solution to this problem:
http://forum.mibuso.com/discussion/48486/dropdowns-in-request-pages-in-reports--
Ivica0
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