<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged table</title>
<link>https://overflow.efficy.io/?qa=tag/table</link>
<description>Powered by Question2Answer</description>
<item>
<title>Create a template (docx) with a table based on a specific sql request</title>
<link>https://overflow.efficy.io/?qa=7038/create-template-docx-with-table-based-specific-sql-request</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;I want to create a template docx and I want to use something in order to create a table from a specific sql request&lt;/p&gt;

&lt;p&gt;For exemple : &lt;br&gt;
this request : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;SELECT A.field1, B.field2, B.field3
FROM A INNER JOIN B ON (A.k_key = B.k_key)
WHERE condition
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I would like to generate the table approximately this way in the template : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;result = [$RunScript('getAcronyme', module='templateScripts/convention.js')]
[$GetTable('result ')] 
&amp;lt;#repeat&amp;gt;&amp;lt;#F=&quot;field1&quot;&amp;gt;&amp;lt;#F=&quot;field2&quot;&amp;gt;&amp;lt;#F=&quot;field3&quot;&amp;gt;&amp;lt;/#repeat&amp;gt;
[/$]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I know that dosen't work like that, but how could I do to have this result ?&lt;/p&gt;

&lt;p&gt;thanks in advance&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=7038/create-template-docx-with-table-based-specific-sql-request</guid>
<pubDate>Mon, 12 Feb 2024 08:39:22 +0000</pubDate>
</item>
</channel>
</rss>