{"id":106,"date":"2023-07-16T15:44:29","date_gmt":"2023-07-16T15:44:29","guid":{"rendered":"https:\/\/kb.ctse.nl\/?page_id=106"},"modified":"2024-05-05T12:23:15","modified_gmt":"2024-05-05T12:23:15","slug":"powerdoc-template-placeholders","status":"publish","type":"page","link":"https:\/\/kb.ctse.nl\/?page_id=106","title":{"rendered":"PowerDoc Word Template"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1. Placeholders<\/h2>\n\n\n\n<p>PowerDoc uses placeholders in the Word template.<\/p>\n\n\n\n<p>For editing Word templates use the Word Application installed on your device, don&#8217;t use Word Online (because Word Online doesn&#8217;t support placeholders in a correct way).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In Word open your template and go to tab &#8220;Developer&#8221;<\/li>\n\n\n\n<li>On the &#8220;Controls&#8221; section there are some controls you can use, but only these are supported by PowerDoc:\n<ul class=\"wp-block-list\">\n<li>Plain Text Content Control<\/li>\n\n\n\n<li>Rich Text Content Control<\/li>\n\n\n\n<li>Picture Content Control<\/li>\n\n\n\n<li>Checkbox Content Control<\/li>\n\n\n\n<li>Date Picker Content Control<\/li>\n\n\n\n<li>Repeating Section Content Control<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>When inserting a content control set also a title in the properties of the Content Control. This title will be the placeholder name and should be the same as the placeholder name in the <a href=\"https:\/\/kb.ctse.nl\/?page_id=121\" data-type=\"page\" data-id=\"121\">Flow template<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.1 Plain Text Content Control<\/h3>\n\n\n\n<p>Use this content control for simple text values without styling.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.2 Rich Text Content Control<\/h3>\n\n\n\n<p>Use this instead of the plain text control if you want to use a different font size, color, etc. or html or charts.<\/p>\n\n\n\n<p>If you set extra style info in the PowerAutomate flow for the placeholder, prefix the title with style@, like: style@myvalue<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.2.1 Html<\/h4>\n\n\n\n<p>If you want to set some html (content from a rich text editor field), prefix the title with html@, like: html@myvalue<\/p>\n\n\n\n<p>If you want to include a full html page (including styles), prefix the title with xhtml@, like: xhtml@myvalue<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.2.2 Word-document<\/h4>\n\n\n\n<p>If you want to insert the content of another docx document, prefix the title with docx@, like: docx@attachment<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.2.3 Chart<\/h4>\n\n\n\n<p>If you want to update a chart, place the chart into a Rich Text Control and prefix the title with chart@, like: chart@piechart1. Note that the chart data should have column names (all of them) which should be set  in the Document flow with exact the same names.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"600\" src=\"https:\/\/kb.ctse.nl\/wp-content\/uploads\/2024\/04\/image-1.png\" alt=\"\" class=\"wp-image-405\" style=\"width:377px;height:auto\" srcset=\"https:\/\/kb.ctse.nl\/wp-content\/uploads\/2024\/04\/image-1.png 686w, https:\/\/kb.ctse.nl\/wp-content\/uploads\/2024\/04\/image-1-300x262.png 300w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">1.3. Picture Content Control<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1.3.1 Picture<\/h4>\n\n\n\n<p>Use the Picture Content Control for displaying a picture of png or jpg. You can manage the size and positioning. Keep in mind that the picture can be larger than the placeholder.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.3.2 QR-code<\/h4>\n\n\n\n<p>If you want to render a value as QR-code as a picture based on a number or text, prefix the title with qrcode@, like: qrcode@websiteurl<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.4 Checkbox Content Control<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.5 Date Picker Content Control<\/h3>\n\n\n\n<p>To display a date in the correct format, set in the properties of the Date Picker the correct display format and locale (for example Dutch or English). For example, to display a date like &#8220;July 16, 2023&#8221; set the format as &#8220;MMMM d, yyyy&#8221;. Ensure that the passed date value from the flow is a valid date in ISO 8601-format like 2023-04-23T22:00:00.000Z<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"323\" height=\"626\" src=\"https:\/\/kb.ctse.nl\/wp-content\/uploads\/2024\/04\/image-2.png\" alt=\"\" class=\"wp-image-418\" style=\"width:183px;height:auto\" srcset=\"https:\/\/kb.ctse.nl\/wp-content\/uploads\/2024\/04\/image-2.png 323w, https:\/\/kb.ctse.nl\/wp-content\/uploads\/2024\/04\/image-2-155x300.png 155w\" sizes=\"auto, (max-width: 323px) 100vw, 323px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">1.6 Repeating Section Content Control<\/h3>\n\n\n\n<p>For a simple list add a repeating section content control, give it a title (for example &#8220;mylist&#8221;) and inside this repeating section content control add other content control(s).<\/p>\n\n\n\n<p>For a table, add a table with 2 rows (a header row and a data row). Select the full data row and add a repeating section content control, give it a title (for example &#8220;myproducts&#8221;). Inside this repeating section content control add other content control(s) in each cell.<\/p>\n\n\n\n<p><strong>Note: <\/strong>when setting the placeholders in a table cell inside a repeater, ensure that the table has an header row and at least 2 columns. Repeater will not work in a table with one row and\/or 1 row.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Tips &amp; Trics<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If after concatenating documents page numbering goes wrong with the count of total pages, use the field NumPages instead of field SectionPages in your template.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1. Placeholders PowerDoc uses placeholders in the Word template. For editing Word templates use the Word Application installed on your device, don&#8217;t use Word Online (because Word Online doesn&#8217;t support placeholders in a correct way). When inserting a content control set also a title in the properties of the Content Control. This title will be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":463,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-106","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kb.ctse.nl\/index.php?rest_route=\/wp\/v2\/pages\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.ctse.nl\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kb.ctse.nl\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kb.ctse.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.ctse.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=106"}],"version-history":[{"count":29,"href":"https:\/\/kb.ctse.nl\/index.php?rest_route=\/wp\/v2\/pages\/106\/revisions"}],"predecessor-version":[{"id":420,"href":"https:\/\/kb.ctse.nl\/index.php?rest_route=\/wp\/v2\/pages\/106\/revisions\/420"}],"up":[{"embeddable":true,"href":"https:\/\/kb.ctse.nl\/index.php?rest_route=\/wp\/v2\/pages\/463"}],"wp:attachment":[{"href":"https:\/\/kb.ctse.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}