option field display problem in option form of a report.

monir_asian
Member Posts: 80
i have a option field itemledgerentry.entrytype in option form of a report.
i create a textbox and add it's source expr=itemledgerentry.entrytype.
but it does not show the value of list , wheni run this report.
it works when i manually enter caption and caption text= example: ,purchase,sale,positive adjustment.
but i have a question here, if database update any field, then it will not appear in report option form, because here it is manually added option field.
what is the dynamic solution of option field for display?
i create a textbox and add it's source expr=itemledgerentry.entrytype.
but it does not show the value of list , wheni run this report.
it works when i manually enter caption and caption text= example: ,purchase,sale,positive adjustment.
but i have a question here, if database update any field, then it will not appear in report option form, because here it is manually added option field.
what is the dynamic solution of option field for display?
0
Comments
-
You need to copy the OptionCaptionML property from the field definition in the table Item Ledger Entry to the same property in this textbox. If this is a form, not a page you will also need to copy the OptionString property.________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
Though not very sure whether you need to put the OptionCaptionML property, but you sure have to copy/paste the OptionCaption and OptionString properties.0
-
I believe there is no way to show those captions in a dynamic way.0
-
The OptionCaption is included within the OptionCaptionML property________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
Sog wrote:I believe there is no way to show those captions in a dynamic way.
you can get it through FieldRef - OPTIONCAPTION.-Mihail- [MCTS]0 -
mihail_kolev wrote:Sog wrote:I believe there is no way to show those captions in a dynamic way.
you can get it through FieldRef - OPTIONCAPTION.
Which will only show you the current optioncaption. And with some programming you can even make a string with the full optioncaption.
But the main dealbreaker is that you cannot declare a variable as optionstring in a textbox.
So I will repeat myself, I believe there is no way to show those captions in a dynamic way (in a textbox).0 -
Sog wrote:mihail_kolev wrote:Sog wrote:I believe there is no way to show those captions in a dynamic way.
you can get it through FieldRef - OPTIONCAPTION.
Which will only show you the current optioncaption. And with some programming you can even make a string with the full optioncaption.
But the main dealbreaker is that you cannot declare a variable as optionstring in a textbox.
So I will repeat myself, I believe there is no way to show those captions in a dynamic way (in a textbox).
Maybe I really can't understand what is the goal. What should be the exact workflow for this?-Mihail- [MCTS]0 -
mihail_kolev wrote:Maybe I really can't understand what is the goal. What should be the exact workflow for this?
The goal as described by TSmonir_asian wrote:but i have a question here, if database update any field, then it will not appear in report option form, because here it is manually added option field.
what is the dynamic solution of option field for display?
The optionstring of the textbox on the options form/page of a report is the goal.
Unfortunatly the goal is unreachable without add-ins. (and that is only RTC).0 -
So, the source expression is itemledgerentry.entrytype and you need to display the option string value in a report? If this is the goal, it can be done dynamically.-Mihail- [MCTS]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