{"id":31788,"date":"2026-01-06T08:49:13","date_gmt":"2026-01-06T08:49:13","guid":{"rendered":"http:\/\/kovaion-new1.local\/creating-multiple-templates-in-a-single-rtf-file\/"},"modified":"2026-01-06T08:49:44","modified_gmt":"2026-01-06T08:49:44","slug":"creating-multiple-templates-in-a-single-rtf-file","status":"publish","type":"post","link":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/creating-multiple-templates-in-a-single-rtf-file\/","title":{"rendered":"Creating Multiple Templates in a Single RTF File"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h2><strong>Overview<\/strong><\/h2>\n<p>Utilizing this approach enables us to develop a variety of templates within a single RTF (Rich Text Format) file. This flexibility is particularly beneficial as it allows us to tailor the content to meet the unique requirements of different countries. By adjusting the header and footer for each specific country, we can ensure that the templates aren&#8217;t only adhering to local standards and regulations but also resonate with the cultural nuances and preferences of the target audience. This method streamlines the document creation process, reduces redundancy, and enhances efficiency, as we can manage multiple templates in one centralized file rather than creating separate documents for each country. Ultimately, this approach fosters consistency in branding and messaging while accommodating the diverse needs of our global clientele.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Implementing Conditional Templates in RTF Documents for Employee Correspondence<\/strong><\/h2>\n<p>Implementing conditional templates in RTF documents allows for dynamic content generation tailored to specific criteria, such as employee roles or locations. This approach enhances document personalization and ensures that recipients receive information pertinent to their context.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Step 1: Access the Report and Analytics Page<\/strong><\/h3>\n<ul>\n<li>Choose the type of report you want to create. Choose the appropriate data source that contains employee information. This could be a database table or a data view.<\/li>\n<li>Start with a basic SELECT statement to retrieve the employee addresses.<\/li>\n<li><strong>For example:<\/strong> &#8220;`sql SELECT employee_id, first_name, last_name, address FROM employees;<\/li>\n<li>If necessary, add WHERE clauses to filter the results based on specific criteria (e.g., department, location).<\/li>\n<li>Run the query to ensure it retrieves the desired data. Review the results to confirm that the addresses are included.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><strong>Step 2: Utilize XML Data<\/strong><\/h3>\n<ul>\n<li>Export the query results in XML format. This will facilitate mapping the data to the RTF file.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Correspondence Address:<\/strong><\/p>\n<p>DISPLAY_NAME<\/p>\n<p>ADDRESS<\/p>\n<p>IfADDRESS_LINE_2end-if<\/p>\n<p>IfADDRESS_LINE_3end-if<\/p>\n<p>TOWN_OR_CITY<\/p>\n<p>COUNTRY<\/p>\n<p>POSTAL_CODE<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Step 3: Inserting a Subtemplate Call in the Word Document Header<\/strong><\/h3>\n<p>Open word file in the Header mention: &lt;?call-template:FirstPage?&gt;<!--?call-template:FirstPage? &gt; &lt;\/p&gt; &lt;p&gt;FIG 1: Letter Template &lt;\/p&gt; &lt;p&gt;Step4: &lt;\/p&gt; &lt;p&gt;Following the content in the Word template, please include the rule stated below. &lt;\/p&gt; &lt;p&gt;&lt;?template: FirstPage?--><\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_14977\" aria-describedby=\"caption-attachment-14977\" style=\"width: 734px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-14977\" src=\"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-content\/uploads\/2026\/01\/Fig_1-Letter-Template-300x228.png\" alt=\"Creating Multiple Templates in a Single RTF File - Fig_1 Letter Template\" width=\"734\" height=\"558\" \/><figcaption id=\"caption-attachment-14977\" class=\"wp-caption-text\">Fig 1: Letter Template<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3><strong>Step 4: Defining Conditional Headers in the Word Template<\/strong><\/h3>\n<p>Following the content in the Word template, please include the rule stated below.<\/p>\n<p>&lt;?template: FirstPage?&gt;<\/p>\n<p>&lt;?if: LEGAL_EMPLOYER = &#8216;Legal Employer1&#8217; ?&gt;<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_14970\" aria-describedby=\"caption-attachment-14970\" style=\"width: 741px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-14970\" src=\"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-content\/uploads\/2026\/01\/Fig_2-Header-Template1-300x32.png\" alt=\"Creating Multiple Templates in a Single RTF File -- Fig_2 Header Template1\" width=\"741\" height=\"79\" \/><figcaption id=\"caption-attachment-14970\" class=\"wp-caption-text\">Fig 2: Header Template 1<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3><strong>Step 5: Configuring Conditional Headers for Multiple Legal Employers in the Word Template<\/strong><\/h3>\n<p>&lt;?end if?&gt;<\/p>\n<p>&lt;?if: LEGAL_EMPLOYER = \u2018Legal Employer 2?&gt;<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_14971\" aria-describedby=\"caption-attachment-14971\" style=\"width: 746px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-14971\" src=\"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-content\/uploads\/2026\/01\/Fig_3-Header-Template2-300x35.png\" alt=\"Creating Multiple Templates in a Single RTF File -- Fig_3 Header Template2\" width=\"746\" height=\"87\" \/><figcaption id=\"caption-attachment-14971\" class=\"wp-caption-text\">Fig 3: Header Template2<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3><strong>Step 6: Saving the Word Document as an RTF File and Integrating It into the Report<\/strong><\/h3>\n<p>Save the Word file in the RTF format and include it in the report.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_14972\" aria-describedby=\"caption-attachment-14972\" style=\"width: 743px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-14972\" src=\"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-content\/uploads\/2026\/01\/Fig_4-Report-Page-300x65.png\" alt=\"Creating Multiple Templates in a Single RTF File -- Fig_4 Report Page\" width=\"743\" height=\"161\" \/><figcaption id=\"caption-attachment-14972\" class=\"wp-caption-text\">Fig 4: Report Page<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3><strong>Step 7: Creating a Page Entry in the Sandbox Environment<\/strong><\/h3>\n<p>Navigate to Sandbox and create a page entry.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_14973\" aria-describedby=\"caption-attachment-14973\" style=\"width: 738px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-14973\" src=\"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-content\/uploads\/2026\/01\/Fig_5-Navigation-Page-300x174.png\" alt=\"Creating Multiple Templates in a Single RTF File -- Fig_5 Navigation Page\" width=\"738\" height=\"428\" \/><figcaption id=\"caption-attachment-14973\" class=\"wp-caption-text\">Fig 5: Navigation Page<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3><strong>Step 8: Updating Report Path and Publishing the Sandbox Configuration<\/strong><\/h3>\n<p>Paste the report path in the destination section. Save and publish the sandbox.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_14974\" aria-describedby=\"caption-attachment-14974\" style=\"width: 738px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-14974\" src=\"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-content\/uploads\/2026\/01\/Fig_6-Sandbox-Page-300x156.png\" alt=\"Creating Multiple Templates in a Single RTF File -- Fig_6 Sandbox Page\" width=\"738\" height=\"384\" \/><figcaption id=\"caption-attachment-14974\" class=\"wp-caption-text\">Fig 6: Sandbox Page<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3><strong>Step 9: Accessing the Address Template from the Employee Dashboard<\/strong><\/h3>\n<p>Login as an employee. Select the Address template in the tile.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_14975\" aria-describedby=\"caption-attachment-14975\" style=\"width: 737px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-14975\" src=\"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-content\/uploads\/2026\/01\/Fig_7-Home-Page-300x200.png\" alt=\"Creating Multiple Templates in a Single RTF File -- Fig_7 Home Page\" width=\"737\" height=\"491\" \/><figcaption id=\"caption-attachment-14975\" class=\"wp-caption-text\">Fig 7: Home Page<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3><strong>Step 10: Dynamic RTF Template Rendering Based on Legal Employer<\/strong><\/h3>\n<p>Based on the legal employer the RTF template will work.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_14976\" aria-describedby=\"caption-attachment-14976\" style=\"width: 733px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-14976\" src=\"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-content\/uploads\/2026\/01\/Fig_8-Letter-Page-300x201.png\" alt=\"Creating Multiple Templates in a Single RTF File - Fig_8 Letter Page\" width=\"733\" height=\"491\" \/><figcaption id=\"caption-attachment-14976\" class=\"wp-caption-text\">Fig 8: Letter Page<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h2><strong>Business Benefits<\/strong><\/h2>\n<p>Implementing conditional templates in RTF documents offers several advantages:<\/p>\n<ul>\n<li><strong>Enhanced Personalization:<\/strong> Tailoring content to specific employee roles or locations ensures that communications are relevant and engaging.<\/li>\n<li><strong>Operational Efficiency:<\/strong> Centralizing multiple templates within a single RTF file streamlines document creation, reducing redundancy and minimizing the need for separate documents for each scenario.<\/li>\n<li><strong>Consistency and Compliance:<\/strong> By adjusting headers and footers to meet local standards and regulations, organizations can maintain consistent branding and messaging across diverse regions.<\/li>\n<li><strong>Cost Savings:<\/strong> Reducing the time and resources spent on creating and managing multiple documents leads to significant cost savings.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong>Bottom Line<\/strong><\/h2>\n<p>Adopting conditional RTF templates empowers organizations to efficiently produce personalized, compliant, and consistent communications. This approach not only enhances operational efficiency but also contributes to cost savings and improved employee engagement.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Enhance Your HR Operations with Oracle HCM Cloud Services<\/strong><\/h2>\n<p>Enhance your organization&#8217;s HR processes with <strong><a href=\"https:\/\/www.kovaion.com\/service\/oracle-hcm-cloud\/\" target=\"_blank\" rel=\"noopener\">Oracle HCM Cloud Services<\/a><\/strong>. Our solutions offer end-to-end management of the employee lifecycle, from recruitment to retirement, ensuring efficiency and compliance across your global operations. By leveraging Oracle&#8217;s comprehensive suite, you can streamline HR functions, improve employee engagement, and drive business success.<\/p>\n<p>Connect with us today to learn how Oracle HCM Cloud can transform your HR operations.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Author<\/strong>:\u00a0Gopinath. U,\u00a0HCM Techno-Functional Consultant<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Overview Utilizing this approach enables us to develop a variety of templates within a single RTF (Rich Text Format) file. This flexibility is particularly beneficial as it allows us to tailor the content to meet the unique requirements of different countries. By adjusting the header and footer for each specific country, we can ensure [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":23005,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-31788","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/posts\/31788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/comments?post=31788"}],"version-history":[{"count":1,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/posts\/31788\/revisions"}],"predecessor-version":[{"id":31789,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/posts\/31788\/revisions\/31789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/media\/23005"}],"wp:attachment":[{"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/media?parent=31788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/categories?post=31788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/tags?post=31788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}