Dynamic change in Caption of Textboxes on form

gulamdastagir
Member Posts: 411
i have a situation where i have 6 textboxes which have to take todays date and display the captions of previous six months.
i tried EVALUATE(txt,CALCDATE('CM-6M',TODAY)
where txt is the text variable
cant convert date to text ...
iam trying to set the captionclass property of the text box as
'1,5,,' +txt
i tried EVALUATE(txt,CALCDATE('CM-6M',TODAY)
where txt is the text variable
cant convert date to text ...
iam trying to set the captionclass property of the text box as
'1,5,,' +txt
Regards,
GD
GD
0
Comments
-
txt:=FORMAT(DATE2DMY(CALCDATE('CM-6M',TODAY),2 ));
gives me 7 for july but how to to show it as the caption for the textbox???Regards,
GD0 -
Did you try to set the CaptionClass-Property of your textbox to the following:
'1,5,,txt'
This should change you caption dynamically.
Take a look at this thread:
http://www.mibuso.com/forum/viewtopic.p ... ptionclass
H hope this could help you!0 -
'1,5,,'+txt
txt value is "june 2007" but i get a blank caption #-oRegards,
GD0 -
mhh strange behavior...
workaround: create a new text-variable e.g. called txtCaptionClass and set this txtCaptionClass to '1,5,,'+txt. Then use this new variable in the CaptionClass-Property. It seems that the String-Concatenation is not evaluated properly in the CaptionClass-Property.0 -
iam supplying this value to the captionclass property using the txtCaptionClass which jut suggested however iam getting a blank caption ](*,)
1,5,,Dec 2007 and i get blank captionRegards,
GD0
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