Caption label in a Form

Alkro
Member Posts: 115
In a Tabular Form, Label in a TextBox is Description, but i want when an user open this Form the label change to Fails.
I test this and put code in OnOpenForm:
http://www.mibuso.com/forum/viewtopic.php?t=6746
but caption shows empty...
Regards
I test this and put code in OnOpenForm:
http://www.mibuso.com/forum/viewtopic.php?t=6746
but caption shows empty...
Regards
0
Comments
-
Hi,
I use this solution (without changing CU 1 and code on form) - this is the same what Kriki write in Your link. Maybe real example helps You.
Set:
In Table In field property CaptionClass = '1,5,,' + CaptionClass(5)
- 5 is ID of this field.
In Table function CaptionClass
CaptionClass(FldNo : Integer) : Text[30]
CaptionSetup.SETRANGE(CaptionSetup."Table field no.",FldNo);
IF CaptionSetup.FIND('-') THEN
EXIT(CaptionSetup.Description)
ELSE
EXIT('');
This solution allow user to change caption by this second table CaptionSetup (FldNo,Description). This one change description of field on every form.
Regards0 -
I tried '1,5,,'+... on version 5.0 and its does work. The later post of '3,'+... works fine. Check that is set in the captionclass property of the field and not the caption. Also if the caption is coming out blank may sure to set the text variable (if you're using one) in the oninit trigger0
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