{"id":94065,"date":"2025-01-30T10:21:01","date_gmt":"2025-01-30T10:21:01","guid":{"rendered":"https:\/\/arquiconsult.com\/?p=94065"},"modified":"2025-03-06T10:22:47","modified_gmt":"2025-03-06T10:22:47","slug":"bc-new-pagestyle-data-type","status":"publish","type":"post","link":"https:\/\/arquiconsult.com\/es\/bc-new-pagestyle-data-type\/","title":{"rendered":"#69 BC NEW PAGESTYLE DATA TYPE"},"content":{"rendered":"<div class=\"services_vertical horizontal_services row\" style=\"background-color: #f7f7f7; padding: 25px; border-radius: 5px; text-align: justify;\">\n<p>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.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>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.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"312\"><strong>Value<\/strong><\/td>\n<td width=\"312\"><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"312\">None<\/td>\n<td width=\"312\">No formatting<\/td>\n<\/tr>\n<tr>\n<td width=\"312\">Standard<\/td>\n<td width=\"312\">Standard<\/td>\n<\/tr>\n<tr>\n<td width=\"312\">StandardAccent<\/td>\n<td width=\"312\">Blue<\/td>\n<\/tr>\n<tr>\n<td width=\"312\">Strong<\/td>\n<td width=\"312\">Bold<\/td>\n<\/tr>\n<tr>\n<td width=\"312\">StrongAccent<\/td>\n<td width=\"312\">Blue + Bold<\/td>\n<\/tr>\n<tr>\n<td width=\"312\">Attention<\/td>\n<td width=\"312\">Red + Italic<\/td>\n<\/tr>\n<tr>\n<td width=\"312\">AttentionAccent<\/td>\n<td width=\"312\">Blue + Italic<\/td>\n<\/tr>\n<tr>\n<td width=\"312\">Favorable<\/td>\n<td width=\"312\">Bold + Green<\/td>\n<\/tr>\n<tr>\n<td width=\"312\">Unfavorable<\/td>\n<td width=\"312\">Bold + Italic + Red<\/td>\n<\/tr>\n<tr>\n<td width=\"312\">Ambiguous<\/td>\n<td width=\"312\">Yellow<\/td>\n<\/tr>\n<tr>\n<td width=\"312\">Subordinate<\/td>\n<td width=\"312\">Grey<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>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.<\/p>\n<p>&nbsp;<\/p>\n<p>Example<\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-94067 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/02\/allowed-322x480.png\" alt=\"-\" width=\"322\" height=\"480\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/02\/allowed-322x480.png 322w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/02\/allowed-320x477.png 320w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/02\/allowed-480x715.png 480w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/02\/allowed.png 583w\" sizes=\"(max-width: 322px) 100vw, 322px\" title=\"-\"><\/p>\n<p>&nbsp;<\/p>\n<!--themify_builder_content-->\n<div id=\"themify_builder_content-94065\" data-postid=\"94065\" class=\"themify_builder_content themify_builder_content-94065 themify_builder tf_clear\">\n    \t<!-- module_row -->\n\t<div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_nus1581 tb_first tf_clearfix\">\n\t    \t\t<div class=\"row_inner col_align_top col-count-1 tf_box tf_w tf_rel\">\n\t\t\t<div  data-lazy=\"1\" class=\"module_column tb-column col-full first tb_cai8581 tf_box\">\n\t\t\t    \t        <div class=\"tb-column-inner tf_box tf_w\">\n\t\t    <!-- module text -->\n<div  class=\"module module-text tb_9tkr581 arquitps-data  \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n    <p><script>\njQuery(\".tbp_post_month:contains(Janeiro)\").html(\"January\");\n\njQuery(\".tbp_post_month:contains(Fevereiro)\").html(\"February\");\n\n\njQuery(\".tbp_post_month:contains(Mar\u00e7o)\").html(\"March\");\n\n\njQuery(\".tbp_post_month:contains(Abril)\").html(\"April\");\n\n\njQuery(\".tbp_post_month:contains(Maio)\").html(\"May\");\n\n\njQuery(\".tbp_post_month:contains(Junho)\").html(\"June\");\n\n\njQuery(\".tbp_post_month:contains(Julho)\").html(\"July\");\n\njQuery(\".tbp_post_month:contains(Agosto)\").html(\"August\");\n\njQuery(\".tbp_post_month:contains(Setembro)\").html(\"September\");\n\njQuery(\".tbp_post_month:contains(Outubro)\").html(\"October\");\n\njQuery(\".tbp_post_month:contains(Novembro)\").html(\"November\");\n\njQuery(\".tbp_post_month:contains(Dezembro)\").html(\"December\");\t\n\n\n\n<\/script><\/p>    <\/div>\n<\/div>\n<!-- \/module text -->\t        <\/div>\n\t    \t<\/div>\n\t\t    <\/div>\n\t    <!-- \/row_inner -->\n\t<\/div>\n\t<!-- \/module_row -->\n\t\t<!-- module_row -->\n\t<div  data-anchor=\"sucesso\" data-hide-anchor=\"1\" data-lazy=\"1\" class=\"module_row themify_builder_row sucesso repeat tb_has_section tb_section-sucesso tb_a1jx132 tf_clearfix\" >\n\t    \t\t<div class=\"row_inner col_align_top col-count-1 tf_box tf_w tf_rel\">\n\t\t\t<div  data-lazy=\"1\" class=\"module_column tb-column col-full first tb_jspx132 tf_box\">\n\t\t\t    \t        <div class=\"tb-column-inner tf_box tf_w\">\n\t\t    <!-- module buttons -->\n<div  class=\"module module-buttons tb_967c132 buttons-horizontal transparent popmake-24705 large circle tf_textc\" data-lazy=\"1\">\n    \t<div class=\"module-buttons-item tf_inline_b\">\n\t\t\t\t\t\t\t<a href=\"#\" class=\"ui builder_button tb_default_color\" >\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"tf_inline_b tf_vmiddle\">Give as a Feedback and Suggest Questions<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t    \t<\/div>\n\t<\/div>\n<!-- \/module buttons -->\n\t        <\/div>\n\t    \t<\/div>\n\t\t    <\/div>\n\t    <!-- \/row_inner -->\n\t<\/div>\n\t<!-- \/module_row -->\n\t<\/div>\n<!--\/themify_builder_content-->","protected":false},"excerpt":{"rendered":"<p>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. &nbsp; Thus, in BC25, Microsoft introduced the PageStyle data type, giving users access to all 11 predefined values from the Style Property, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":94073,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2065],"tags":[2059,2673,2674],"acf":[],"_links":{"self":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/posts\/94065"}],"collection":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/comments?post=94065"}],"version-history":[{"count":0,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/posts\/94065\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/media\/94073"}],"wp:attachment":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/media?parent=94065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/categories?post=94065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/tags?post=94065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}