<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.rws.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>List views - Custom formatting rules</title><link>https://community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/6044/list-views---custom-formatting-rules</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12 Non-Production</generator><item><title>List views - Custom formatting rules</title><link>https://community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/6044/list-views---custom-formatting-rules</link><pubDate>Tue, 30 Nov 2021 09:25:43 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:c5ac4e45-0d46-440d-9bf7-812d4728a27b</guid><dc:creator>Eugene Kuchynski</dc:creator><comments>https://community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/6044/list-views---custom-formatting-rules#comments</comments><description>Current Revision posted to Wiki by Eugene Kuchynski on 11/30/2021 9:25:43 AM&lt;br /&gt;
&lt;p&gt;Custom formatting rules allow you to apply some styling to rows and/or cells in lists based on a provided criteria. As an example, you may highlight unpaid invoices, undelivered jobs, assignments with approaching deadlines, projects with non-provided PO numbers, etc. In other words, any data which you can describe with allowed criteria syntax.&lt;/p&gt;
&lt;p&gt;For highlighting data, Custom formatting rules allow you to choose the following formatting options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Font size&lt;/li&gt;
&lt;li&gt;Font color&lt;/li&gt;
&lt;li&gt;Background color&lt;/li&gt;
&lt;li&gt;Bold, italic, underline and strikethrough font&lt;/li&gt;
&lt;li&gt;Borders (left, right, top, bottom, with specifying border color and width)&lt;/li&gt;
&lt;li&gt;Custom CSS style&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The latter gives unlimited styling possibilities, provided that you&amp;#39;re familiar with CSS language. If not, you can always try to search in Internet how to achieve certain effect using CSS. For example, you can add custom image, render gradients, add shadows, masks etc.&lt;/p&gt;
&lt;p&gt;To start working with custom formatting rules, please open corresponding page, by clicking &lt;strong&gt;Settings &amp;gt; Formatting rules&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/900x600/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1638261095734v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;A page will be opened, where you can view and create custom rules. Workflow here is the same as with any list in TBM: you can add new entities, clone and edit existing rules, delete them, filter, etc.&lt;/p&gt;
&lt;p&gt;To create a new rule, click &lt;strong&gt;Add&lt;/strong&gt; on the toolbar. The following page will be opened:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/900x600/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1638261214674v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;First of all, you have to provide rule &lt;strong&gt;Name&lt;/strong&gt;, otherwise it won&amp;#39;t be possible to save it. Next mandatory step is to select &lt;strong&gt;Entity type&lt;/strong&gt; for which you wish to create a rule. Selected entity type specifies members available in the &lt;strong&gt;Members&lt;/strong&gt; and &lt;strong&gt;Criteria&lt;/strong&gt; fields. And, of course, to test created rule, you will have to open list of a selected entity type. In the example above, &lt;strong&gt;Assignment task&lt;/strong&gt; is selected, which means that any translation assignment should be opened to test a rule, because translation assignment page contains &lt;strong&gt;Assignment tasks&lt;/strong&gt; table, containing records of this type.&lt;/p&gt;
&lt;p&gt;Then, you have to fill &lt;strong&gt;Members&lt;/strong&gt; value. If to leave this field empty, custom formatting will be applied to the whole row. Otherwise, it will be applied only to specified cells. Take a note that if you select members in this field, corresponding columns MUST be visible in a list view.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Priority&lt;/strong&gt; specifies an order of applying a rule, if you have multiple rules for the same entity type. A rule with lower value (higher priority) will override values specified by a rule with lower priority. In other words, it will be applied at the end, drawing all formatting over already applied rules (with lower priority).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Criteria&lt;/strong&gt; allows to build filter string specifying when a rule should be applied. &lt;a href="/product-groups/translationproductivity/business-manager/w/wiki/5909/list-views---filtering-data"&gt;This article&lt;/a&gt; contains more information about building filters.&lt;/p&gt;
&lt;p&gt;Next fields (&lt;strong&gt;Bold, Italic, Crossed, Underline, Font size, Font color, Background color, Border width, Border color&lt;/strong&gt;) define a style of your formatting rule. When you change values there, &lt;strong&gt;Preview&lt;/strong&gt; area displays an example how formatted cells and rows will look like with current values. For example, when no members are specified (rule is applied to a whole row):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/900x600/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1638261778424v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;Or same rule, but with some members specified:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/900x600/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1638261804172v5.png" /&gt;&lt;/p&gt;
&lt;p&gt;To see how a rule looks with real data, save current rule, open a new tab in your browser and open corresponding list view there. After each of your rule, refresh second tab to see changes. This also can be useful when you have multiple riles for the same entity type, so see how they are combined together.&lt;/p&gt;
&lt;p&gt;Finally, a lot of flexibility is provided by &lt;strong&gt;Custom CSS style&lt;/strong&gt; field. It allows to provide custom string using CSS syntax to create any effect you like. For example, this string:&lt;/p&gt;
&lt;div style="background-color:#e9f1f4;border-left:15px solid #D9E4E8;border-right:3px solid #D9E4E8;margin-bottom:15px;margin-top:15px;padding:10px;"&gt;background: linear-gradient(90deg, rgba(226,254,238,1) 0%, rgba(65,123,126,1) 20%, rgba(182,110,96,1) 31%, rgba(177,135,177,1) 95%);&lt;/div&gt;
&lt;p&gt;Creates this effect:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/900x600/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1638262039708v6.png" /&gt;&lt;/p&gt;
&lt;p&gt;But the real value of this field is in possibility to provide custom images for cells (or rows). If you open TBM installation folder (doesn&amp;#39;t matter if you use &lt;strong&gt;Essential&lt;/strong&gt; or &lt;strong&gt;Team&lt;/strong&gt; version), you can find &lt;strong&gt;wwwroot\images&lt;/strong&gt; folder there. This folder contains all images (most of them are in SVG format) used in the TBM application. You can use any of these images, or even place your own images into this folder or to any other folder on your hard drive. Then, the following approach can be used in the &lt;strong&gt;Custom CSS style&lt;/strong&gt; field to use custom image:&lt;/p&gt;
&lt;div style="background-color:#e9f1f4;border-left:15px solid #D9E4E8;border-right:3px solid #D9E4E8;margin-bottom:15px;margin-top:15px;padding:10px;"&gt;background-image: url(&amp;quot;../images/other/Security_Security.svg&amp;quot;); background-size: 24px 24px; background-position: left center; background-repeat: no-repeat; padding-left: 27px;&lt;/div&gt;
&lt;p&gt;This string uses some image from the &lt;strong&gt;Other&lt;/strong&gt; folder. Background image size is set to 24 pixels, and text left padding is set to 27 pixels, to prevent overlapping with background image.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/900x600/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1638264361318v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Using this approach, you&amp;#39;re free to use any image, regardless where it&amp;#39;s placed (on your hard drive or in Internet), which provides a lot of flexibility when creating custom formatting rules.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>List views - Custom formatting rules</title><link>https://community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/6044/list-views---custom-formatting-rules/revision/1</link><pubDate>Tue, 30 Nov 2021 08:47:44 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:c5ac4e45-0d46-440d-9bf7-812d4728a27b</guid><dc:creator>Eugene Kuchynski</dc:creator><comments>https://community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/6044/list-views---custom-formatting-rules#comments</comments><description>Revision 1 posted to Wiki by Eugene Kuchynski on 11/30/2021 8:47:44 AM&lt;br /&gt;
&lt;p&gt;Custom formatting rules allow you to apply some styling to rows and/or cells in lists based on a provided criteria. As an example, you may highlight unpaid invoices, undelivered jobs, assignments with approaching deadlines, projects with non-provided PO numbers, etc. In other words, any data which you can describe with allowed criteria syntax.&lt;/p&gt;
&lt;p&gt;For highlighting data, Custom formatting rules allow you to choose the following formatting options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Font size&lt;/li&gt;
&lt;li&gt;Font color&lt;/li&gt;
&lt;li&gt;Background color&lt;/li&gt;
&lt;li&gt;Bold, italic, underline and strikethrough font&lt;/li&gt;
&lt;li&gt;Borders (left, right, top, bottom, with specifying border color and width)&lt;/li&gt;
&lt;li&gt;Custom CSS style&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The latter gives unlimited styling possibilities, provided that you&amp;#39;re familiar with CSS language. If not, you can always try to search in Internet how to achieve certain effect using CSS. For example, you can add custom image, render gradients, add shadows, masks etc.&lt;/p&gt;
&lt;p&gt;To start working with custom formatting rules, please open corresponding page, by clicking &lt;strong&gt;Settings &amp;gt; Formatting rules&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/900x600/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1638261095734v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;A page will be opened, where you can view and create custom rules. Workflow here is the same as with any list in TBM: you can add new entities, clone and edit existing rules, delete them, filter, etc.&lt;/p&gt;
&lt;p&gt;To create a new rule, click &lt;strong&gt;Add&lt;/strong&gt; on the toolbar. The following page will be opened:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/900x600/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1638261214674v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;First of all, you have to provide rule &lt;strong&gt;Name&lt;/strong&gt;, otherwise it won&amp;#39;t be possible to save it. Next mandatory step is to select &lt;strong&gt;Entity type&lt;/strong&gt; for which you wish to create a rule. Selected entity type specifies members available in the &lt;strong&gt;Members&lt;/strong&gt; and &lt;strong&gt;Criteria&lt;/strong&gt; fields. And, of course, to test created rule, you will have to open list of a selected entity type. In the example above, &lt;strong&gt;Assignment task&lt;/strong&gt; is selected, which means that any translation assignment should be opened to test a rule, because translation assignment page contains &lt;strong&gt;Assignment tasks&lt;/strong&gt; table, containing records of this type.&lt;/p&gt;
&lt;p&gt;Then, you have to fill &lt;strong&gt;Members&lt;/strong&gt; value. If to leave this field empty, custom formatting will be applied to the whole row. Otherwise, it will be applied only to specified cells. Take a note that if you select members in this field, corresponding columns MUST be visible in a list view.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Priority&lt;/strong&gt; specifies an order of applying a rule, if you have multiple rules for the same entity type. A rule with lower value (higher priority) will override values specified by a rule with lower priority. In other words, it will be applied at the end, drawing all formatting over already applied rules (with lower priority).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Criteria&lt;/strong&gt; allows to build filter string specifying when a rule should be applied. &lt;a href="/product-groups/translationproductivity/business-manager/w/wiki/5909/list-views---filtering-data"&gt;This article&lt;/a&gt; contains more information about building filters.&lt;/p&gt;
&lt;p&gt;Next fields (&lt;strong&gt;Bold, Italic, Crossed, Underline, Font size, Font color, Background color, Border width, Border color&lt;/strong&gt;) define a style of your formatting rule. When you change values there, &lt;strong&gt;Preview&lt;/strong&gt; area displays an example how formatted cells and rows will look like with current values. For example, when no members are specified (rule is applied to a whole row):&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/900x600/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1638261778424v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Or same rule, but with some members specified:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/900x600/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1638261804172v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;To see how a rule looks with real data, save current rule, open a new tab in your browser and open corresponding list view there. After each of your rule, refresh second tab to see changes. This also can be useful when you have multiple riles for the same entity type, so see how they are combined together.&lt;/p&gt;
&lt;p&gt;Finally, a lot of flexibility is provided by &lt;strong&gt;Custom CSS style&lt;/strong&gt; field. It allows to provide custom string using CSS syntax to create any effect you like. For example, this string:&lt;/p&gt;
&lt;div style="background-color:#e9f1f4;border-left:15px solid #D9E4E8;border-right:3px solid #D9E4E8;margin-bottom:15px;margin-top:15px;padding:10px;"&gt;background: linear-gradient(90deg, rgba(226,254,238,1) 0%, rgba(65,123,126,1) 20%, rgba(182,110,96,1) 31%, rgba(177,135,177,1) 95%);&lt;/div&gt;
&lt;p&gt;Creates this effect:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/900x600/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1638262039708v6.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>