Тема: Nav2009
Показать сообщение отдельно
  #21  
Старый 14.01.2009, 20:29
apanko apanko вне форума
Администратор
 
Регистрация: 15.08.2006
Сообщения: 1,629
CaptionClass - strange behavior
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, name MyArr (type = text, Dimensions=3)
3. Select field No . In the Value field of the CaptionClass property enter: '3,'+MyArr[1]
4. Select field Description. 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 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).
http://www.mibuso.com/forum/viewtopic.php?f=32&t=31080
Ответить с цитированием