<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://uat.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>Binding report elements to data</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4960/binding-report-elements-to-data</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12 Non-Production</generator><item><title>Binding report elements to data</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4960/binding-report-elements-to-data</link><pubDate>Mon, 26 Apr 2021 05:59:48 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:1f52d73e-a3ca-4c1e-a609-5bcfcb22dab8</guid><dc:creator>Eugene Kuchynski</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4960/binding-report-elements-to-data#comments</comments><description>Current Revision posted to Wiki by Eugene Kuchynski on 4/26/2021 5:59:48 AM&lt;br /&gt;
&lt;h1&gt;General binding&lt;/h1&gt;
&lt;p&gt;During invoice template creation the main instrument which you will use to display data in the report will be&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Field list&lt;/strong&gt;.&lt;/p&gt;
&lt;div class="section" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-C4985074-BAF4-4B3E-B69B-F39F17693E0E"&gt;
&lt;p&gt;Nested&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;User&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property provides access to your personal data (your name, address and other details specified in the program settings).&lt;/p&gt;
&lt;p&gt;Expand&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceSet&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table and see which data it contains:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619089959769v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;It contains a number of fields of different types. Type of field is determined by an icon. Some fields contain an arrow near icon, which means that this field contains nested fields.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Nested fields&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;may be contained in the reference fields (example is a&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;client&lt;/strong&gt;, which has name, VAT code, address, etc.) or in table fields (examples are&amp;nbsp;&lt;strong&gt;Rows to print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;or&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment methods&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;nested tables, which contain set of rows).&lt;/p&gt;
&lt;p&gt;If a field is not referenced field or table field, than it can be placed on the design surface. For example, we would like to display invoice date on the surface. The easiest way to do this is to drag and drop&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Date&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;field inside corresponding band. The program will automatically create label control and bind it with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Date&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;field. When any control is bound to any table field, a yellow icon is displayed in the top right corner of that element:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090033365v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Another way to bind an element with a field is to use toolbox panel. Drag and drop Label element from the toolbox, and select binding on the properties panel:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090107002v3.png" /&gt;&lt;/p&gt;
You must clearly understand its meaning to efficiently create templates. In the built-in templates field list contains one single table called&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice&lt;/strong&gt;. This table provides access to all invoice fields and nested tables. All invoice rows re contained in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice to print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table. Selected payments methods can be found in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment methods&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table.&lt;/div&gt;
&lt;ol id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-2265AF1A-4AA3-4267-9041-D5D1F3B57DEE"&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-DB6B304F-CAB0-4FCD-BC8C-CDB613A57B48"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-E2987682-4553-4E71-B39C-038791DA76E0"&gt;To change binding, change a value in the &lt;strong&gt;Data binding&lt;/strong&gt; property. Or, you can simply drag and drop any field from the &lt;strong&gt;Field list&lt;/strong&gt; over existing control, and its binding will be automatically changed.&lt;/span&gt;
&lt;p&gt;When a control is placed on the design surface, the next very common task is to change its formatting. By default, all dates are printed using full form of date (with hours, minutes and seconds). Number usually contain too much decimal places, while you usually need to display only 2 decimals.&lt;/p&gt;
&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_7C3E372F1B644A208190534FD28A95FB"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-B69A5391-C7F8-43DE-B128-1EB4EAED5D2D"&gt;To change formatting, find Text format string property. You can click &lt;strong&gt;...&lt;/strong&gt; to open formatting helper dialog, or specify formatting manually by typing something like {0:d}.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090214632v4.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_4B890A7203A34D2CB12AFF39197588AA"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-E8F10300-DB3D-4D57-967F-22DC0AB1F483"&gt;In the opened window, depending on the type of formatted value, select desired options.&lt;/span&gt;
&lt;p&gt;For dates, your common choice will be&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;d&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;value. For numbers -&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;n2&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(number with thousands separator and 2 decimal places).&lt;/p&gt;
&lt;p&gt;Another interesting feature of format string is possibility to add prefix and postfix to the value.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090244495v5.png" /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_EE19FB2C9B934F978CCAE3E824EADEF2"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-FAA9CD6E-91BD-4514-A13D-738853A68908"&gt;If to type something before or after {0:d}, than this value will be printed along with field value.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Now, in addition to due date, the word &amp;#39;Deadline&amp;#39; will be printed before it. This technique will be useful when printing customer VAT number. If customer do not have VAT number, the whole value would not be printed. But if a customer has VAT number, the following string will be printed in the invoice: &amp;quot;VAT: 2323232&amp;quot;. Therefore, you will avoid situations when invoice contains &amp;quot;VAT: &amp;quot; string, but actual VAT would not be specified.&lt;/li&gt;
&lt;/ol&gt;
&lt;h1&gt;Mail merge binding&lt;/h1&gt;
&lt;p&gt;Template designer provides another way to bind elements to data. This feature is called&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;mail merge&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and allow to bind one element to multiple fields.&lt;/p&gt;
&lt;div class="section" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-E75BB627-2BBC-429F-A7B9-3FED528AA5CE"&gt;
&lt;p&gt;The best option will be putting currency symbol, followed by the amount after single space. In such cases, mail merge function will be a solution.&lt;/p&gt;
This is useful, when you want to print different data from the source table, but using of separate labels is not sufficient because of arrangement limitations. For example, you want to print invoice amount and put currency symbol before it. It is possible to place 2 elements, and bind the first one to the currency symbol, and the second to the amount itself. But since amount may be of different length, how to place both elements in relation to each other:&lt;/div&gt;
&lt;div class="section"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563352077604v1.png" /&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ol id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-25631D19-9EC7-45A2-8199-345C51B552B6"&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-0CD52BF3-9B2D-4840-B04F-1BA41C512ABD"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-F3626EDC-4570-4956-8993-A64711D47EF9"&gt;Place label control on the report surface.&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__STEP_675145DC3AD1472D97EE2A5F432D046A"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-7965E67C-A529-4582-B4C8-A42B842551DB"&gt;Double click on it to start editing.&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__STEP_6946C5B50D684DF49E8F7E1836556970"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-836A9A46-DEBD-4E04-BEB5-1840DE778FF7"&gt;Enter square brackets and drag necessary field from the Field list inside first pair of square brackets.&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__STEP_7C041EF6754F4CABA32E12F774D8B3EC"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-E11A055E-398D-4157-B203-E8806986C461"&gt;Type another pair of square brackets and drag second field from the Field list inside it:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563352095228v2.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__STEP_A49F3CDCCBA145D48E2597777290A01D"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-3A7D653F-B643-416A-852A-146C120023AD"&gt;Now, invoice amount will take the following form: &amp;quot;$ 1346.32000&amp;quot;. Close to desired result.&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__STEP_9A786224CC974A7CB52871C29E752A99"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-B8DA3020-FD9D-48BA-AD59-207E79DCEBA7"&gt;For mail merge boxes, simple way of setting format string would not work, because such element is bound to several fields, which may have different types. To apply formatting to each included field, type exclamation mark before closing bracket, followed by format string.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;You will get the desired result: &amp;quot;$ 1 346.32&amp;quot;&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563352108982v3.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: templates, designer, custom reports&lt;/div&gt;
</description></item><item><title>Field list and adding fields to the designer surface</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4960/binding-report-elements-to-data/revision/3</link><pubDate>Thu, 22 Apr 2021 11:17:59 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:1f52d73e-a3ca-4c1e-a609-5bcfcb22dab8</guid><dc:creator>Eugene Kuchynski</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4960/binding-report-elements-to-data#comments</comments><description>Revision 3 posted to Wiki by Eugene Kuchynski on 4/22/2021 11:17:59 AM&lt;br /&gt;
&lt;h1&gt;General binding&lt;/h1&gt;
&lt;p&gt;During invoice template creation the main instrument which you will use to display data in the report will be&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Field list&lt;/strong&gt;.&lt;/p&gt;
&lt;div class="section" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-C4985074-BAF4-4B3E-B69B-F39F17693E0E"&gt;
&lt;p&gt;Nested&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;User&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property provides access to your personal data (your name, address and other details specified in the program settings).&lt;/p&gt;
&lt;p&gt;Expand&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceSet&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table and see which data it contains:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619089959769v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;It contains a number of fields of different types. Type of field is determined by an icon. Some fields contain an arrow near icon, which means that this field contains nested fields.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Nested fields&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;may be contained in the reference fields (example is a&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;client&lt;/strong&gt;, which has name, VAT code, address, etc.) or in table fields (examples are&amp;nbsp;&lt;strong&gt;Rows to print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;or&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment methods&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;nested tables, which contain set of rows).&lt;/p&gt;
&lt;p&gt;If a field is not referenced field or table field, than it can be placed on the design surface. For example, we would like to display invoice date on the surface. The easiest way to do this is to drag and drop&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Date&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;field inside corresponding band. The program will automatically create label control and bind it with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Date&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;field. When any control is bound to any table field, a yellow icon is displayed in the top right corner of that element:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090033365v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Another way to bind an element with a field is to use toolbox panel. Drag and drop Label element from the toolbox, and select binding on the properties panel:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090107002v3.png" /&gt;&lt;/p&gt;
You must clearly understand its meaning to efficiently create templates. In the built-in templates field list contains one single table called&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice&lt;/strong&gt;. This table provides access to all invoice fields and nested tables. All invoice rows re contained in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice to print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table. Selected payments methods can be found in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment methods&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table.&lt;/div&gt;
&lt;ol id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-2265AF1A-4AA3-4267-9041-D5D1F3B57DEE"&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-DB6B304F-CAB0-4FCD-BC8C-CDB613A57B48"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-E2987682-4553-4E71-B39C-038791DA76E0"&gt;To change binding, change a value in the &lt;strong&gt;Data binding&lt;/strong&gt; property. Or, you can simply drag and drop any field from the &lt;strong&gt;Field list&lt;/strong&gt; over existing control, and its binding will be automatically changed.&lt;/span&gt;
&lt;p&gt;When a control is placed on the design surface, the next very common task is to change its formatting. By default, all dates are printed using full form of date (with hours, minutes and seconds). Number usually contain too much decimal places, while you usually need to display only 2 decimals.&lt;/p&gt;
&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_7C3E372F1B644A208190534FD28A95FB"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-B69A5391-C7F8-43DE-B128-1EB4EAED5D2D"&gt;To change formatting, find Text format string property. You can click &lt;strong&gt;...&lt;/strong&gt; to open formatting helper dialog, or specify formatting manually by typing something like {0:d}.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090214632v4.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_4B890A7203A34D2CB12AFF39197588AA"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-E8F10300-DB3D-4D57-967F-22DC0AB1F483"&gt;In the opened window, depending on the type of formatted value, select desired options.&lt;/span&gt;
&lt;p&gt;For dates, your common choice will be&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;d&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;value. For numbers -&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;n2&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(number with thousands separator and 2 decimal places).&lt;/p&gt;
&lt;p&gt;Another interesting feature of format string is possibility to add prefix and postfix to the value.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090244495v5.png" /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_EE19FB2C9B934F978CCAE3E824EADEF2"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-FAA9CD6E-91BD-4514-A13D-738853A68908"&gt;If to type something before or after {0:d}, than this value will be printed along with field value.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Now, in addition to due date, the word &amp;#39;Deadline&amp;#39; will be printed before it. This technique will be useful when printing customer VAT number. If customer do not have VAT number, the whole value would not be printed. But if a customer has VAT number, the following string will be printed in the invoice: &amp;quot;VAT: 2323232&amp;quot;. Therefore, you will avoid situations when invoice contains &amp;quot;VAT: &amp;quot; string, but actual VAT would not be specified.&lt;/li&gt;
&lt;/ol&gt;
&lt;h1&gt;Mail merge binding&lt;/h1&gt;
&lt;p&gt;Template designer provides another way to bind elements to data. This feature is called&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;mail merge&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and allow to bind one element to multiple fields.&lt;/p&gt;
&lt;div class="section" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-E75BB627-2BBC-429F-A7B9-3FED528AA5CE"&gt;
&lt;p&gt;The best option will be putting currency symbol, followed by the amount after single space. In such cases, mail merge function will be a solution.&lt;/p&gt;
This is useful, when you want to print different data from the source table, but using of separate labels is not sufficient because of arrangement limitations. For example, you want to print invoice amount and put currency symbol before it. It is possible to place 2 elements, and bind the first one to the currency symbol, and the second to the amount itself. But since amount may be of different length, how to place both elements in relation to each other:&lt;/div&gt;
&lt;div class="section"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563352077604v1.png" /&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ol id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-25631D19-9EC7-45A2-8199-345C51B552B6"&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-0CD52BF3-9B2D-4840-B04F-1BA41C512ABD"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-F3626EDC-4570-4956-8993-A64711D47EF9"&gt;Place label control on the report surface.&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__STEP_675145DC3AD1472D97EE2A5F432D046A"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-7965E67C-A529-4582-B4C8-A42B842551DB"&gt;Double click on it to start editing.&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__STEP_6946C5B50D684DF49E8F7E1836556970"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-836A9A46-DEBD-4E04-BEB5-1840DE778FF7"&gt;Enter square brackets and drag necessary field from the Field list inside first pair of square brackets.&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__STEP_7C041EF6754F4CABA32E12F774D8B3EC"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-E11A055E-398D-4157-B203-E8806986C461"&gt;Type another pair of square brackets and drag second field from the Field list inside it:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563352095228v2.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__STEP_A49F3CDCCBA145D48E2597777290A01D"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-3A7D653F-B643-416A-852A-146C120023AD"&gt;Now, invoice amount will take the following form: &amp;quot;$ 1346.32000&amp;quot;. Close to desired result.&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__STEP_9A786224CC974A7CB52871C29E752A99"&gt;&lt;span id="GUID-7FD2D1A1-3B1F-471C-91B2-8C5FF3896ADD__GUID-B8DA3020-FD9D-48BA-AD59-207E79DCEBA7"&gt;For mail merge boxes, simple way of setting format string would not work, because such element is bound to several fields, which may have different types. To apply formatting to each included field, type exclamation mark before closing bracket, followed by format string.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;You will get the desired result: &amp;quot;$ 1 346.32&amp;quot;&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563352108982v3.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: templates, designer, custom reports&lt;/div&gt;
</description></item><item><title>Field list and adding fields to the designer surface</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4960/binding-report-elements-to-data/revision/2</link><pubDate>Thu, 22 Apr 2021 11:17:10 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:1f52d73e-a3ca-4c1e-a609-5bcfcb22dab8</guid><dc:creator>Eugene Kuchynski</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4960/binding-report-elements-to-data#comments</comments><description>Revision 2 posted to Wiki by Eugene Kuchynski on 4/22/2021 11:17:10 AM&lt;br /&gt;
&lt;p&gt;During invoice template creation the main instrument which you will use to display data in the report will be&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Field list&lt;/strong&gt;.&lt;/p&gt;
&lt;div class="section" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-C4985074-BAF4-4B3E-B69B-F39F17693E0E"&gt;
&lt;p&gt;Nested&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;User&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property provides access to your personal data (your name, address and other details specified in the program settings).&lt;/p&gt;
&lt;p&gt;Expand&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;InvoiceSet&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table and see which data it contains:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619089959769v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It contains a number of fields of different types. Type of field is determined by an icon. Some fields contain an arrow near icon, which means that this field contains nested fields.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Nested fields&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;may be contained in the reference fields (example is a&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;client&lt;/strong&gt;, which has name, VAT code, address, etc.) or in table fields (examples are&amp;nbsp;&lt;strong&gt;Rows to print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;or&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment methods&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;nested tables, which contain set of rows).&lt;/p&gt;
&lt;p&gt;If a field is not referenced field or table field, than it can be placed on the design surface. For example, we would like to display invoice date on the surface. The easiest way to do this is to drag and drop&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Date&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;field inside corresponding band. The program will automatically create label control and bind it with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Date&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;field. When any control is bound to any table field, a yellow icon is displayed in the top right corner of that element:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090033365v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Another way to bind an element with a field is to use toolbox panel. Drag and drop Label element from the toolbox, and select binding on the properties panel:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090107002v3.png" alt=" " /&gt;&lt;/p&gt;
You must clearly understand its meaning to efficiently create templates. In the built-in templates field list contains one single table called&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice&lt;/strong&gt;. This table provides access to all invoice fields and nested tables. All invoice rows re contained in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice to print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table. Selected payments methods can be found in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment methods&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table.&lt;/div&gt;
&lt;ol id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-2265AF1A-4AA3-4267-9041-D5D1F3B57DEE"&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-DB6B304F-CAB0-4FCD-BC8C-CDB613A57B48"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-E2987682-4553-4E71-B39C-038791DA76E0"&gt;To change binding, change a value in the &lt;strong&gt;Data binding&lt;/strong&gt; property. Or, you can simply drag and drop any field from the &lt;strong&gt;Field list&lt;/strong&gt; over existing control, and its binding will be automatically changed.&lt;/span&gt;
&lt;p&gt;When a control is placed on the design surface, the next very common task is to change its formatting. By default, all dates are printed using full form of date (with hours, minutes and seconds). Number usually contain too much decimal places, while you usually need to display only 2 decimals.&lt;/p&gt;
&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_7C3E372F1B644A208190534FD28A95FB"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-B69A5391-C7F8-43DE-B128-1EB4EAED5D2D"&gt;To change formatting, find Text format string property. You can click &lt;strong&gt;...&lt;/strong&gt; to open formatting helper dialog, or specify formatting manually by typing something like {0:d}.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090214632v4.png" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_4B890A7203A34D2CB12AFF39197588AA"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-E8F10300-DB3D-4D57-967F-22DC0AB1F483"&gt;In the opened window, depending on the type of formatted value, select desired options.&lt;/span&gt;
&lt;p&gt;For dates, your common choice will be&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;d&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;value. For numbers -&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;n2&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(number with thousands separator and 2 decimal places).&lt;/p&gt;
&lt;p&gt;Another interesting feature of format string is possibility to add prefix and postfix to the value.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1619090244495v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_EE19FB2C9B934F978CCAE3E824EADEF2"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-FAA9CD6E-91BD-4514-A13D-738853A68908"&gt;If to type something before or after {0:d}, than this value will be printed along with field value.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Now, in addition to due date, the word &amp;#39;Deadline&amp;#39; will be printed before it. This technique will be useful when printing customer VAT number. If customer do not have VAT number, the whole value would not be printed. But if a customer has VAT number, the following string will be printed in the invoice: &amp;quot;VAT: 2323232&amp;quot;. Therefore, you will avoid situations when invoice contains &amp;quot;VAT: &amp;quot; string, but actual VAT would not be specified.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: templates, designer, custom reports&lt;/div&gt;
</description></item><item><title>Field list and adding fields to the designer surface</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4960/binding-report-elements-to-data/revision/1</link><pubDate>Wed, 17 Jul 2019 08:33:18 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:1f52d73e-a3ca-4c1e-a609-5bcfcb22dab8</guid><dc:creator>Eugene Kuchynski</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/business-manager/w/wiki/4960/binding-report-elements-to-data#comments</comments><description>Revision 1 posted to Wiki by Eugene Kuchynski on 7/17/2019 8:33:18 AM&lt;br /&gt;
&lt;p&gt;During invoice template creation the main instrument which you will use to display data in the report will be&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Field list&lt;/strong&gt;.&lt;/p&gt;
&lt;div class="section" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-C4985074-BAF4-4B3E-B69B-F39F17693E0E"&gt;
&lt;p&gt;Nested&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;User&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property provides access to your personal data (your name, address and other details specified in the program settings).&lt;/p&gt;
&lt;p&gt;Expand&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table and see which data it contains:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351927572v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It contains a number of fields of different types. Type of field is determined by an icon. Some fields contain an arrow near icon, which means that this field contains nested fields.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Nested fields&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;may be contained in the reference fields (example is a&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;customer&lt;/strong&gt;, which has name, VAT code, address, etc.) or in table fields (examples are&lt;strong&gt;Rows to print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;or&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment methods&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;nested tables, which contain set of rows).&lt;/p&gt;
&lt;p&gt;If a field is not referenced field or table field, than it can be placed on the design surface. For example, we would like to display invoice date on the surface. The easiest way to do this is to drag and drop&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Date&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;field inside corresponding band. The program will automatically create label control and bind it with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Date&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;field. When any control is bound to any table field, a yellow icon is displayed in the top right corner of that element:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351940045v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Another way to bind an element with a field is to use toolbox panel. Drag and drop Label element from the toolbox, open its helper menu and select a field to bind to:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351948866v3.png" alt=" " /&gt;&lt;/p&gt;
You must clearly understand its meaning to efficiently create templates. In the built-in templates field list contains one single table called&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice&lt;/strong&gt;. This table provides access to all invoice fields and nested tables. All invoice rows re contained in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Invoice to print&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table. Selected payments methods can be found in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Payment methods&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;table.&lt;/div&gt;
&lt;div class="tasklabel"&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ol id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-2265AF1A-4AA3-4267-9041-D5D1F3B57DEE"&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-DB6B304F-CAB0-4FCD-BC8C-CDB613A57B48"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-E2987682-4553-4E71-B39C-038791DA76E0"&gt;To change binding, open helper menu again and change value in the Data binding property. Or, you can simply drag and drop any field from the Field list over existing control, and its binding will be automatically changed.&lt;/span&gt;
&lt;p&gt;When a control is placed on the design surface, the next very common task is to change its formatting. By default, all dates are printed using full form of date (with hours, minutes and seconds). Number usually contain too much decimal places, while you usually need to display only 2 decimals.&lt;/p&gt;
&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_7C3E372F1B644A208190534FD28A95FB"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-B69A5391-C7F8-43DE-B128-1EB4EAED5D2D"&gt;To change formatting, open helper menu of the element and select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="uicontrol"&gt;...&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;button in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span class="uicontrol"&gt;Format string&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property:&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351973899v4.png" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_4B890A7203A34D2CB12AFF39197588AA"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-E8F10300-DB3D-4D57-967F-22DC0AB1F483"&gt;In the opened window, depending on the type of formatted value, select desired options.&lt;/span&gt;
&lt;p&gt;For dates, your common choice will be&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;d&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;value. For numbers -&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;n2&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(number with thousands separator and 2 decimal places).&lt;/p&gt;
&lt;p&gt;Another interesting feature of format string is possibility to add prefix and postfix to the value.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-93/pastedimage1563351997416v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li class="stepexpand" id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__STEP_EE19FB2C9B934F978CCAE3E824EADEF2"&gt;&lt;span id="GUID-5C3BC5D4-906F-4190-9F1B-BF40C60CFE72__GUID-FAA9CD6E-91BD-4514-A13D-738853A68908"&gt;If to type something before or after {0:d}, than this value will be printed along with field value.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Now, in addition to due date, the word &amp;#39;Deadline&amp;#39; will be printed before it. This technique will be useful when printing customer VAT number. If customer do not have VAT number, the whole value would not be printed. But if a customer has VAT number, the following string will be printed in the invoice: &amp;quot;VAT: 2323232&amp;quot;. Therefore, you will avoid situations when invoice contains &amp;quot;VAT: &amp;quot; string, but actual VAT would not be specified.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: templates, designer, custom reports&lt;/div&gt;
</description></item></channel></rss>