Variable Option String Caption
Kylea
Member Posts: 39
Hi,
I have a requirement to have an option string caption appear different in a form which is viewed from 2 different menu options (same form just filters on a different field) - if the user selects the menu that filters over the form using menu A then the option string needs to say 'a,b,c' otherwise if the user uses menu B then the option needs to be 'e,f,g' but of course will still equate to 0,1,2.
I have tried to use the OptionCaptionML to define 2 different languages and then put a CaptionClass to use C1 to GetCaptionClass to test for the language and then get the Caption Class but I am not having much success.
Has anyone done this before that can help me out. Or if you know of a better way please let me know.
We are using V3.70 Sql.
Cheers
Kylea
I have a requirement to have an option string caption appear different in a form which is viewed from 2 different menu options (same form just filters on a different field) - if the user selects the menu that filters over the form using menu A then the option string needs to say 'a,b,c' otherwise if the user uses menu B then the option needs to be 'e,f,g' but of course will still equate to 0,1,2.
I have tried to use the OptionCaptionML to define 2 different languages and then put a CaptionClass to use C1 to GetCaptionClass to test for the language and then get the Caption Class but I am not having much success.
Has anyone done this before that can help me out. Or if you know of a better way please let me know.
We are using V3.70 Sql.
Cheers
Kylea
0
Comments
-
I think that the easiest way is to create a table and lookup on it instead of option. You can return integer value you want and filter it differently on different places.0
-
Yes, the solution is to use another table. Think about "why" you need this variable caption and try it in another way. Option is for FIXED options...0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
