AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 14.12.2009, 18:44   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
FontBold property sets a value that indicates whether to display text in boldface. This property applies to form controls. In standard application this property is normally used to display accounts that are not posting accounts, in boldface (form16 - Chart of Accounts).

For a page field control, Style Property is used to format the text that displays in a page field. More details about this can be found in Microsoft Dynamics NAv Developer and IT Pro Documentation, under designing pages.

When running Transofrmation Tool to transform forms to pages in NAV 2009 SP1, records displayed in boldface on forms are not displayed in boldface on a page after transformation.

To correct this, following files should be modified:

Page.xsd (add property definition to page field control):

....

<xs:element name="ClosingDates" type="NavBoolType" minOccurs="0" maxOccurs="1" />
<xs:element name="Numeric" type="NavBoolType" minOccurs="0" maxOccurs="1" />
<xs:element name="DateFormula" type="NavBoolType" minOccurs="0" maxOccurs="1" />
<xs:element name="Style" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="None" />
<xs:enumeration value="Strong" />
<xs:enumeration value="Attention" />
<xs:enumeration value="Favorable" />
<xs:enumeration value="Unfavorable" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="StyleExpr" type="xs:string" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
....

Now that we added Style and StyleExp properties to the field control in page definition, we must modify CodeRules.txt file to transfer UPDATEFONTBOLD function to <FieldName>Emphasize variable defined for each field on page (that UPDATEFONTBOLD function was called for on a form).

In addition, Style property of the field shuld be set to Strong, and StyleExp property to <FieldName>Emphasize. Transformation tool already creates a trigger called <FieldName>OnFormat, for each field affected, that sets the value of <FieldName>Emphasize variable conditionally.

In short, change the following code in file CodeRules.txt:

.....

<find>
!currForm!.!var1!.UPDATEFONTBOLD :=
<declareVariable>
!var1!Emphasize
<declareVariableType>
Boolean INDATASET
<replace>
!declaredVariable! :=
<comment>

.....

with

<find>
!currForm!.!var1!.UPDATEFONTBOLD :=
<replace>
!currForm!.!var1!.UPDATEFONTBOLD :=
<moveValueToProperty>
Strong
<movePropertyToControlName>
!var1!
<moveToProperty>
Style

<find>
!currForm!.!var1!.UPDATEFONTBOLD :=
<declareVariable>
!var1!Emphasize
<declareVariableType>
Boolean INDATASET
<replace>
!declaredVariable! :=
<moveValueToProperty>
!declaredVariable!
<movePropertyToControlName>
!var1!
<moveToProperty>
StyleExpr

Run transformation tool on from 16, import and compile the page. When running page 16 (Charot of Accounts), the records should be displayed in boldface in same way as on the form.

Jasminka Vukovic

Microsoft Dynamics NO

Microsoft Customer Service and Support (CSS) EMEA

These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use.







Источник: http://feedproxy.google.com/~r/Micro...-on-pages.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 02:52.