#69 BC NEW PAGESTYLE DATA TYPE
Until now, text formatting in Business Central (font, color, etc.) was done by using 2 properties: Style and StyleExpr. However, the StyleExpr value was typically hard coded introducing possible errors such as misspell.
Thus, in BC25, Microsoft introduced the PageStyle data type, giving users access to all 11 predefined values from the Style Property, ensuring consistency and reducing errors.
Value | Description |
None | No formatting |
Standard | Standard |
StandardAccent | Blue |
Strong | Bold |
StrongAccent | Blue + Bold |
Attention | Red + Italic |
AttentionAccent | Blue + Italic |
Favorable | Bold + Green |
Unfavorable | Bold + Italic + Red |
Ambiguous | Yellow |
Subordinate | Grey |
The PageStyle data type functions like an Enum or Option type internally, providing a structured way to handle style values. However, note that implicit type conversion between PageStyle and Text is not allowed.
Example
Other interesting links:
- What’s new and planned for Dynamics 365 Business Central
- Page Style Overview
- New PageStyle Data Type (yzhums.com)
- ArquiTips – Knowledge Center