HOW to Change Captions of Label control at runtime?

ramesh.ayn
Member Posts: 41
Hi everybody ...
here i would like to change Captions of Label control .
i am getting multiple value from database at runtime.
i need to show them in a single label just like Updating values in a dialog window.
but navision has reserved properties. i could not able to do it.
so anybody has solutions for this?
regargs,
Ramesh
here i would like to change Captions of Label control .
i am getting multiple value from database at runtime.
i need to show them in a single label just like Updating values in a dialog window.
but navision has reserved properties. i could not able to do it.
so anybody has solutions for this?
regargs,
Ramesh
0
Comments
-
Hi,
I used the CaptionClass-property in the table-field and made a new function in codeunit 1. If you wanna see how CaptionClass work you can have a look at the dimensions or the VAT-fields (amount incl. VAT) in the sales documents. This fields are changed on run time.
In codeunit 1, I changed the CaptionClassTranslate-function and added a third option. Then I read a new function where I get my description using different parameters, i.e. user name and session id. In the CaptionClass-property in the table I just enter my parameters (starting with 3 for the third option) which I check in the new function and then I get the description I need.
I hope someone can understand what I mean?!
Otherwise ask again and I try to explain it again/more detailed!
Greetz
NicoleProTAKT Projekte & Business Software AG
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt0 -
If your captions are not part of a table box or matrix box then you can use text boxes instead of labels. Set the source expression to a global variable and set the value of the variable at run time. If you are working with a table box or matrix box then I think the only way is to use caption classes.0
-
I found an entry in Tips&Tricks how to change the caption without changing codeunit 1. I didn't try this yet, but maybe you want to have a closer look on it.
http://www.mibuso.com/forum/viewtopic.php?t=6746
Greetz
NicoleProTAKT Projekte & Business Software AG
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt0
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