CaptionClass - strange behavior
apanko
Member Posts: 70
1. Open page in page designer (for example Special Vendor List - from training What’s New for Microsoft Dynamics NAV 2009 Installation and Development -> CHAPTER 6: CREATE PAGES WITH PAGE DESIGNER -> Demonstration: Create a List Page
2. Create C/AL Global variable, name=MyArr (type = text30, Dimensions=3)
3. Select the field No. (1st field). In the Value field of the CaptionClass property enter: '3,'+MyArr[1]
4. Select the field Description (2nd field). In the Value field of the CaptionClass property enter: '3,'+MyArr[2]
5. Open C/AL Editor and put code “MyArr[1]:=’Hello’;” to the onOpenPage trigger;
6. Create action, put code “CLEAR(MyArr);” to the onAction trigger.
7. Run for in RTC. The caption of 1st field is ‘Hello’, the caption of 2nd field is empty;
8. Run action (created at step 6). The caption of 1st field is its ID, the caption of 2nd field is still empty.
I suppose the behavior should be the same for both fields (they both should be empty).
2. Create C/AL Global variable, name=MyArr (type = text30, Dimensions=3)
3. Select the field No. (1st field). In the Value field of the CaptionClass property enter: '3,'+MyArr[1]
4. Select the field Description (2nd field). In the Value field of the CaptionClass property enter: '3,'+MyArr[2]
5. Open C/AL Editor and put code “MyArr[1]:=’Hello’;” to the onOpenPage trigger;
6. Create action, put code “CLEAR(MyArr);” to the onAction trigger.
7. Run for in RTC. The caption of 1st field is ‘Hello’, the caption of 2nd field is empty;
8. Run action (created at step 6). The caption of 1st field is its ID, the caption of 2nd field is still empty.
I suppose the behavior should be the same for both fields (they both should be empty).
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
- 324 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