{"id":4718,"date":"2023-03-29T14:29:45","date_gmt":"2023-03-29T12:29:45","guid":{"rendered":"https:\/\/help.r2docuo.com\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/"},"modified":"2023-03-29T14:44:57","modified_gmt":"2023-03-29T12:44:57","slug":"table-macro-to-omit-rows-in-word-365-templates","status":"publish","type":"ht_kb","link":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/","title":{"rendered":"Table macro to omit rows in Word 365 templates"},"content":{"rendered":"\n<p>The <kbd>@DOCUO.DeleteRowIfZero<\/kbd> macro, used in a table cell in Word 365, allows you to indicate whether to delete the entire row when the label(s) it contains result in an empty text string or a zero.  <\/p>\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">This functionality must be used in conjunction with the Word table macro <kbd>@DOCUO.Table<\/kbd>, when the table displays data from the document category itself, because in the case of child documents the filter parameter must be used to omit unneeded rows.<\/p>\n\n<p>Table macros in Word templates are only <strong>available in Docuo Enterprise.<\/strong><\/p>\n\n<p>The table definition, for data from the document itself, is marked in Word with a syntax like:<\/p>\n\n<p><kbd>@DOCUO.TABLE{}<br\/><\/kbd><em>Insert here a Word table with labels inside it.<\/em><br\/><kbd>@DOCUO.ENDTABLE{}<\/kbd><\/p>\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">In the case of tables with data from the document itself, the @DOCUO.TABLE macro has no parameters.<\/p>\n\n<p>For more information on how to use table macros to display information from related documents visit the link:<\/p>\n\n<p><a href=\"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macros-in-word-365-templates\/\">https:\/\/help.r2docuo.com\/knowledge-base\/guia-macros-de-tabla-en-plantillas-de-word\/<\/a><\/p>\n\n<p>For example, in the case of an Offer category (within the Word template) where we have a table that breaks down a group of amount fields where we do not want to display lines with zero amount, we would use the macro as:<\/p>\n\n<p><kbd>@DOCUO.TABLE{}<\/kbd><\/p>\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Concept<\/strong><\/td><td class=\"has-text-align-right\" data-align=\"right\"><strong>Amount<\/strong><\/td><\/tr><tr><td>Consulting<\/td><td class=\"has-text-align-right\" data-align=\"right\"><kbd>@DOCUO.DeleteRowIfZero(&lt;@Imports:Consulting&gt;)<\/kbd><\/td><\/tr><tr><td>Development<\/td><td class=\"has-text-align-right\" data-align=\"right\"><kbd>@DOCUO.DeleteRowIfZero(&lt;@Imports:Development&gt;)<\/kbd><\/td><\/tr><tr><td>Training<\/td><td class=\"has-text-align-right\" data-align=\"right\"><kbd>@DOCUO.DeleteRowIfZero(&lt;@Imports:Training&gt;)<\/kbd><\/td><\/tr><tr><td>Licenses<\/td><td class=\"has-text-align-right\" data-align=\"right\"><kbd>@DOCUO.DeleteRowIfZero(&lt;@Imports:Licenses&gt;)<\/kbd><\/td><\/tr><tr><td>Total<\/td><td class=\"has-text-align-right\" data-align=\"right\"><kbd>&lt;Amounts:Total&gt;<\/kbd><\/td><\/tr><\/tbody><\/table><\/figure>\n\n<p><kbd>@DOCUO.ENDTABLE{}<\/kbd><\/p>\n\n<p>In this way, if in the document data only Consulting and Development are filled in, our result table in the Word document would have the final aspect:<\/p>\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Concept<\/strong><\/td><td class=\"has-text-align-right\" data-align=\"right\"><strong>Amount<\/strong><\/td><\/tr><tr><td>Consulting<\/td><td class=\"has-text-align-right\" data-align=\"right\">1.200 \u20ac<\/td><\/tr><tr><td>Development<\/td><td class=\"has-text-align-right\" data-align=\"right\">3.000 \u20ac<\/td><\/tr><tr><td>Total<\/td><td class=\"has-text-align-right\" data-align=\"right\">4.200 \u20ac<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The @DOCUO.DeleteRowIfZero macro, used in a table cell in Word 365, allows you to indicate whether to delete the entire row when the label(s) it contains result in an empty text string or a zero. Table macros in Word templates are only available in Docuo Enterprise. The table definition, for&#8230;<\/p>\n","protected":false},"author":3,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"content-type":"","footnotes":""},"ht-kb-category":[58],"ht-kb-tag":[83],"class_list":["post-4718","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-macros","ht_kb_tag-docuo-enterprise"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Table macro to omit rows in Word 365 templates - R2 Docuo | Help center<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Table macro to omit rows in Word 365 templates - R2 Docuo | Help center\" \/>\n<meta property=\"og:description\" content=\"The @DOCUO.DeleteRowIfZero macro, used in a table cell in Word 365, allows you to indicate whether to delete the entire row when the label(s) it contains result in an empty text string or a zero. Table macros in Word templates are only available in Docuo Enterprise. The table definition, for...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/\" \/>\n<meta property=\"og:site_name\" content=\"R2 Docuo | Help center\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-29T12:44:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2023\/06\/ILUDEST_CENTRODEAYUDA.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@R2Docuo\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/\",\"url\":\"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/\",\"name\":\"Table macro to omit rows in Word 365 templates - R2 Docuo | Help center\",\"isPartOf\":{\"@id\":\"https:\/\/help.r2docuo.com\/#website\"},\"datePublished\":\"2023-03-29T12:29:45+00:00\",\"dateModified\":\"2023-03-29T12:44:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/help.r2docuo.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Table macro to omit rows in Word 365 templates\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/help.r2docuo.com\/#website\",\"url\":\"https:\/\/help.r2docuo.com\/\",\"name\":\"R2 Docuo | Help center\",\"description\":\"Todos los recursos para usuarios, administradores y desarrolladores de de R2 Docuo a tu alcance\",\"publisher\":{\"@id\":\"https:\/\/help.r2docuo.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/help.r2docuo.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/help.r2docuo.com\/#organization\",\"name\":\"R2 Docuo | Help center\",\"url\":\"https:\/\/help.r2docuo.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/help.r2docuo.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2023\/06\/ILUDEST_CENTRODEAYUDA.png\",\"contentUrl\":\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2023\/06\/ILUDEST_CENTRODEAYUDA.png\",\"width\":1200,\"height\":630,\"caption\":\"R2 Docuo | Help center\"},\"image\":{\"@id\":\"https:\/\/help.r2docuo.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/R2Docuo\",\"https:\/\/www.linkedin.com\/company\/r2docuo\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Table macro to omit rows in Word 365 templates - R2 Docuo | Help center","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Table macro to omit rows in Word 365 templates - R2 Docuo | Help center","og_description":"The @DOCUO.DeleteRowIfZero macro, used in a table cell in Word 365, allows you to indicate whether to delete the entire row when the label(s) it contains result in an empty text string or a zero. Table macros in Word templates are only available in Docuo Enterprise. The table definition, for...","og_url":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/","og_site_name":"R2 Docuo | Help center","article_modified_time":"2023-03-29T12:44:57+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2023\/06\/ILUDEST_CENTRODEAYUDA.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@R2Docuo","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/","url":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/","name":"Table macro to omit rows in Word 365 templates - R2 Docuo | Help center","isPartOf":{"@id":"https:\/\/help.r2docuo.com\/#website"},"datePublished":"2023-03-29T12:29:45+00:00","dateModified":"2023-03-29T12:44:57+00:00","breadcrumb":{"@id":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/table-macro-to-omit-rows-in-word-365-templates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/help.r2docuo.com\/"},{"@type":"ListItem","position":2,"name":"Table macro to omit rows in Word 365 templates"}]},{"@type":"WebSite","@id":"https:\/\/help.r2docuo.com\/#website","url":"https:\/\/help.r2docuo.com\/","name":"R2 Docuo | Help center","description":"Todos los recursos para usuarios, administradores y desarrolladores de de R2 Docuo a tu alcance","publisher":{"@id":"https:\/\/help.r2docuo.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/help.r2docuo.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/help.r2docuo.com\/#organization","name":"R2 Docuo | Help center","url":"https:\/\/help.r2docuo.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/help.r2docuo.com\/#\/schema\/logo\/image\/","url":"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2023\/06\/ILUDEST_CENTRODEAYUDA.png","contentUrl":"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2023\/06\/ILUDEST_CENTRODEAYUDA.png","width":1200,"height":630,"caption":"R2 Docuo | Help center"},"image":{"@id":"https:\/\/help.r2docuo.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/R2Docuo","https:\/\/www.linkedin.com\/company\/r2docuo"]}]}},"_links":{"self":[{"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/ht-kb\/4718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/comments?post=4718"}],"version-history":[{"count":0,"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/ht-kb\/4718\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/media?parent=4718"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=4718"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=4718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}