Set Label of form control on run time

geri79
Member Posts: 105
Hi,
I have a "background" form which displays the current company, database and company specific information, which is launched on open company.
This info is hardcoded in the caption of a label on the form. Would be much nicer to use code to give this information. The code is not the problem, but I can't figure out how variable captions work.
I tried caption class as explained by kriki
viewtopic.php?t=6746
Works fine for table fields but I can't transfer this for form controls.
Any ideas??
PS:
I placed a simple message box on trigger 15 in CU1. It appears when used caption classes on table fields, but on on form control. I guess there is the problem. The CU1 - CaptionClassTranslate Function does'nt run in my case. Why? :-k
I have a "background" form which displays the current company, database and company specific information, which is launched on open company.
This info is hardcoded in the caption of a label on the form. Would be much nicer to use code to give this information. The code is not the problem, but I can't figure out how variable captions work.
I tried caption class as explained by kriki
viewtopic.php?t=6746
Works fine for table fields but I can't transfer this for form controls.
Any ideas??
PS:
I placed a simple message box on trigger 15 in CU1. It appears when used caption classes on table fields, but on on form control. I guess there is the problem. The CU1 - CaptionClassTranslate Function does'nt run in my case. Why? :-k
geri
0
Answers
-
You have to create a textbox with a label attached to it. In the caption class of the textbox, you have to put the code to show the caption you want.
But I think that in your case (if I understood correctly what you want to do) it would be better to put a textbox and in the source-expression, you put a variable with the information you want to show.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Ciao,
thx. That worked. How can I mark my topic as [Solved]?
---
Grazie per l'aiuto. Ci leggiamo...
geri79geri0
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