<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged template</title>
<link>https://overflow.efficy.io/?qa=tag/template</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>
<item>
<title>Invoice module: Invoice batches &gt; product order is alphabetical, order should be by K_SORT</title>
<link>https://overflow.efficy.io/?qa=6981/invoice-module-invoice-batches-product-alphabetical-should</link>
<description>&lt;p&gt;When using Invoice module: Invoice batches&lt;br&gt;
=&amp;gt; product order in PDF invoices is alphabetical, but order should be by K_SORT&lt;/p&gt;

&lt;p&gt;Template we are using is build with fragments:&lt;/p&gt;

&lt;p&gt;| &amp;lt;#F=Quantity&amp;gt; |&amp;lt;#F=Name&amp;gt; |&lt;/p&gt;

&lt;p&gt;I tried to adjust SYS _TABLEVIEWS, but no success:&lt;br&gt;
[SELECTORDERBY] = DOCU _PROD.K _SORT&lt;/p&gt;

&lt;p&gt;Where can I change the sort order for invoice outputs?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6981/invoice-module-invoice-batches-product-alphabetical-should</guid>
<pubDate>Mon, 02 Oct 2023 15:08:26 +0000</pubDate>
</item>
<item>
<title>How can I insert (picture or signature) into a Word template by using runscripts into a contact array</title>
<link>https://overflow.efficy.io/?qa=6947/insert-picture-signature-template-runscripts-contact-array</link>
<description>&lt;p&gt;Hello I have to generate a template with a list of contacts.&lt;br&gt;
Here it's simple, but for each line I have to insert a signature field.&lt;/p&gt;

&lt;p&gt;I have to detect if contact has signed on the morning then on the afternoon or maybe only one of these conditions.&lt;/p&gt;

&lt;p&gt;So we decided to use runscripts. In that case it's working if I display only the name and firstname, but the goal is to be able to display his signature to. &lt;/p&gt;

&lt;p&gt;And here we haven't be able to run the template without errors.&lt;br&gt;
What kind of trick can we use to generate a such document ? &lt;/p&gt;

&lt;p&gt;I also tried to use some arguments like for type memo for instance. &lt;br&gt;
But the document is corrupted. When I keep the syntax &amp;lt;#F=PICTURE&amp;gt; or &amp;lt;#F=F_SIGNATURE&amp;gt; it merge with only this indication : (blob)&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=13609799535560111993&quot; alt=&quot;enter image description here&quot;&gt;&lt;br&gt;
Thank's Laurent&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6947/insert-picture-signature-template-runscripts-contact-array</guid>
<pubDate>Mon, 07 Aug 2023 14:46:34 +0000</pubDate>
</item>
<item>
<title>Template with generateProposal function</title>
<link>https://overflow.efficy.io/?qa=6023/template-with-generateproposal-function</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;When I use the generate Proposal function to generate a template with linked products, the font of the getTable ('Prod') block is automatically in Arial while the rest of the document has another font.&lt;/p&gt;

&lt;p&gt;Is it possible in the options of the function to define the font?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6023/template-with-generateproposal-function</guid>
<pubDate>Thu, 08 Apr 2021 12:44:36 +0000</pubDate>
</item>
<item>
<title>DOCX quotation template with a page per</title>
<link>https://overflow.efficy.io/?qa=5496/docx-quotation-template-with-a-page-per</link>
<description>&lt;p&gt;For a customer I need to create a DOCX template wich contains a Fixed coversheet and a product page for each product linked to the document. In these product pages I want to use the &quot;normal&quot; Efficy fields (PRODUCTS fields, DOCU_PROD fields, OPPORTUNITY fields etc.)&lt;/p&gt;

&lt;p&gt;I can already create a product sheet template (without any scripting) with al the information we need, but it is only filled with the information of the first linked product.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5496/docx-quotation-template-with-a-page-per</guid>
<pubDate>Thu, 25 Jun 2020 12:33:56 +0000</pubDate>
</item>
<item>
<title>Use GetTable in a file excel</title>
<link>https://overflow.efficy.io/?qa=5404/use-gettable-in-a-file-excel</link>
<description>&lt;p&gt;It is unfortunately not possible to use the &quot;GetTable&quot; function in the excel file.&lt;br&gt;
This function is only available for the word format&lt;/p&gt;

&lt;p&gt;Is there a workaround, a form to be filled in on the lines of the table to include the different information related to the products? &lt;/p&gt;

&lt;p&gt;Without the GETABLE form, I can retrieve the information of the first product but not of the following ones...&lt;/p&gt;

&lt;p&gt;If this is not possible, is it possible, in the word document to use the GETABLE formula but with a table with several lines, some of which would remain empty as for the Excel table?&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=5404/use-gettable-in-a-file-excel</guid>
<pubDate>Wed, 22 Apr 2020 13:52:15 +0000</pubDate>
</item>
<item>
<title>Change order of GetTable function in template</title>
<link>https://overflow.efficy.io/?qa=4757/change-order-of-gettable-function-in-template</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Using the GetTable function in a word template listing the linked products, is it possible to change the order of the products?&lt;/p&gt;

&lt;p&gt;In other words, can we sort the products by, for example, the k_sort field?&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;

&lt;p&gt;Ken&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4757/change-order-of-gettable-function-in-template</guid>
<pubDate>Mon, 09 Sep 2019 14:05:17 +0000</pubDate>
</item>
<item>
<title>Insert picture field in word template</title>
<link>https://overflow.efficy.io/?qa=4582/insert-picture-field-in-word-template</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;For a client using efficy 11.2, i would like to add a picture to the description for each linked product in a word template. This makes part of a table generated by the function GetRtfTable.&lt;/p&gt;

&lt;p&gt;When using the add-in option &quot;Insert picture field&quot;, the field appears in the list and i can add it to the table.&lt;/p&gt;

&lt;p&gt;However, when generating the document the placeholder is always shown even when there is clearly a picture uploaded for that product.&lt;/p&gt;

&lt;p&gt;Is there something else that i should be paying attention to? Some other setting?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;/p&gt;

&lt;p&gt;Ken&lt;/p&gt;

&lt;p&gt;Update with screen, the &quot;no photo available&quot; image is an image i chose as placeholder : &lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=10017223859531933880&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4582/insert-picture-field-in-word-template</guid>
<pubDate>Mon, 22 Jul 2019 15:18:46 +0000</pubDate>
</item>
<item>
<title>Docx template with runScript (formated)</title>
<link>https://overflow.efficy.io/?qa=4062/docx-template-with-runscript-formated</link>
<description>&lt;p&gt;Hi!&lt;br&gt;
For one of our client I need to format a template via runScript. on my script I have 4 columns and few lines. I want to return these data in a table each columns in a cell and each line in a row, but I get all lines in one cell for each columns.&lt;/p&gt;

&lt;p&gt;How can i get this working&lt;/p&gt;

&lt;p&gt;Ps: the goal for the client is that each row will be separated by a horizontal line&lt;/p&gt;

&lt;p&gt;thanks&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4062/docx-template-with-runscript-formated</guid>
<pubDate>Tue, 26 Mar 2019 13:31:33 +0000</pubDate>
</item>
<item>
<title>How to display some fields from the table PROD_OPPO in my word template?</title>
<link>https://overflow.efficy.io/?qa=3113/how-display-some-fields-from-table-prodoppo-word-template</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Please i want to display some fields from &lt;code&gt;PROD_OPPO&lt;/code&gt; table using an insert detail function or a run script, I got a field called &quot;Site&quot; in the relation (&lt;code&gt;PROD_OPPO&lt;/code&gt;) ,&lt;br&gt;
When i want to link a product to an opportunity i got fill in this field, &lt;/p&gt;

&lt;p&gt;Note: the &quot;Site&quot; field in not in the product table.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3113/how-display-some-fields-from-table-prodoppo-word-template</guid>
<pubDate>Wed, 02 May 2018 14:55:16 +0000</pubDate>
</item>
<item>
<title>MergeTemplate -&gt; Cannot open template!</title>
<link>https://overflow.efficy.io/?qa=2653/mergetemplate-cannot-open-template</link>
<description>&lt;p&gt;Hi Team,&lt;/p&gt;

&lt;p&gt;I'm building an Extranet for a customer and I have to fill in some fields on a document when clicking a link. Until here, it works fine. After this I simply have to merge a template and store the key of this new attachment. This is done in the same edit context as before.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var editDocu    = Database.OpenEditContext(ntDocu, K_DOCUMENT);
var dataDocu    = Database.GetMasterDataSet(editDocu, 0);

dataDocu.Edit;
/** Here some fields are being filled in, this works. **/

var K_NEW_ATTCHM  = Database.MergeTemplate(editDocu, 7, null);
/** 
    Where 7 is the key of the template. The GUEST user 
    has full-control security on the template
**/
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;When this code gets executed I get the following error: &lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Cannot open Template! Can't show that item. It may have been deleted or you may not have the proper access rights to view this information.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The template (Key: 7) is an empty html template. The GUEST user has full-control security on the linked elements of the document.&lt;/p&gt;

&lt;p&gt;Is there anything else that has to be done in order to make this work?&lt;/p&gt;

&lt;p&gt;Thanks in advance :-)&lt;/p&gt;

&lt;p&gt;Br,&lt;br&gt;
Maxime&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2653/mergetemplate-cannot-open-template</guid>
<pubDate>Thu, 17 Aug 2017 06:25:57 +0000</pubDate>
</item>
<item>
<title>Get table in Html template</title>
<link>https://overflow.efficy.io/?qa=2029/get-table-in-html-template</link>
<description>&lt;p&gt;Bonjour,&lt;/p&gt;

&lt;p&gt;Je souhaitais créer un tableau dans un email instantané depuis une opportunité afin d'afficher les produits qu'elle contient.&lt;/p&gt;

&lt;p&gt;La documentation des templates indique d'utiliser la fonction GetHtmlTable.&lt;/p&gt;

&lt;p&gt;J'ai copié le tableau donné en exemple dans mon modèle d'email :&lt;/p&gt;

&lt;p&gt;[$GetHtmlTable(&quot;Prod&quot;, entity=&quot;Prod&quot;, columndefs=&quot;HTML Columns&quot;,&lt;br&gt;
columns=&quot;NAME,QUANTITY{CENTER},PRICE{NUMERIC},DISCOUNT{CENTER},&lt;br&gt;
COMMENT,VAT,TOTAL{NUMERIC}&quot;, sum=&quot;TOTAL&quot;)]&lt;/p&gt;

&lt;p&gt;L'obtient une erreur en exécutant ce template :&lt;br&gt;
ID: CORE-1285&lt;br&gt;
Message: Empty Column Definition File: HTMLColumns&lt;/p&gt;

&lt;p&gt;Comment et ou renseigner ce fichier sur une version d'Efficy en mode cloud ?&lt;/p&gt;

&lt;p&gt;Merci d'avance,&lt;br&gt;
Joseph&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2029/get-table-in-html-template</guid>
<pubDate>Thu, 17 Nov 2016 14:16:20 +0000</pubDate>
</item>
<item>
<title>[Efficy 10] Adding e-mail template with images</title>
<link>https://overflow.efficy.io/?qa=1996/efficy-10-adding-e-mail-template-with-images</link>
<description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;Is there an easy way to convert an e-mail that contains multiple images from Outlook to Efficy template, without the need to place all the images on our website and link to those images?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1996/efficy-10-adding-e-mail-template-with-images</guid>
<pubDate>Tue, 08 Nov 2016 15:46:39 +0000</pubDate>
</item>
<item>
<title>How format as &quot;HTML&quot;, a memo merged into an HTML TEMPLATE</title>
<link>https://overflow.efficy.io/?qa=1717/how-format-as-html-a-memo-merged-into-an-html-template</link>
<description>&lt;p&gt;The merged MEMO from an ACTION is not well formatted when it used into an HTML TEMPLATE.&lt;br&gt;
Into a word template type=memo work perfectly but into an HTML it's not same.&lt;br&gt;
I tried some keyword like RAW or HTML or RAW HTML without success. &lt;br&gt;
All breaks lines or paragraphs are not interpreted. &lt;/p&gt;

&lt;p&gt;Is there any way to do it very simple ?&lt;br&gt;
Or should I again create a Runscript Function to pre-format the '/n' into '&amp;lt; br /&amp;gt;' ?&lt;br&gt;
No exemples found into EDN&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1717/how-format-as-html-a-memo-merged-into-an-html-template</guid>
<pubDate>Mon, 20 Jun 2016 16:22:01 +0000</pubDate>
</item>
<item>
<title>Is there any options for date format in template more than listed in edn ?</title>
<link>https://overflow.efficy.io/?qa=1656/there-any-options-for-date-format-template-more-than-listed</link>
<description>&lt;p&gt;I got a bug when using &lt;code&gt;[$=ACTI.D_BEGIN,format='hh:nn']&lt;/code&gt;&lt;br&gt;
If my action begin with a &quot;before duration&quot; then the starting date is bad formatted.&lt;/p&gt;

&lt;p&gt;Exemple : &lt;br&gt;
BASIC&lt;br&gt;
 1.I create a RDV which start at 09h00 AM&lt;br&gt;
 2.When merging D_BEGIN is  09h00 AM&lt;/p&gt;

&lt;p&gt;WITH TIME BEFORE&lt;br&gt;
 1.I create a RDV which start at 09h00 AM + TIMEBEFORE 45mn&lt;br&gt;
 2.When merging D_BEGIN is  09h45 AM rather than 08h45 AM&lt;/p&gt;

&lt;p&gt;I just need to have the value of D&lt;em&gt;BEGIN (9h00).&lt;br&gt;
So why the D&lt;/em&gt;BEGIN is wrong ?&lt;br&gt;
How to get the basic hour begin without using an argument or runscript ? &lt;/p&gt;

&lt;p&gt;I used this reference.&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;http://help.efficy.com/HelpEfficy/user/UserGuide/EN/index.html?helppage=templates_example_displayforma.htm&quot;&gt;http://help.efficy.com/HelpEfficy/user/UserGuide/EN/index.html?helppage=templates_example_displayforma.htm&lt;/a&gt;&lt;/p&gt;
</description>
<category>Errors</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1656/there-any-options-for-date-format-template-more-than-listed</guid>
<pubDate>Mon, 23 May 2016 16:04:17 +0000</pubDate>
</item>
<item>
<title>Template Script Return value containing $$ENCODE$$</title>
<link>https://overflow.efficy.io/?qa=1440/template-script-return-value-containing-encode</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;I get the following Template Script from Efficy France and there is a particularity in it.&lt;br&gt;
It return the value $$ENCODE$$ ... so what is it?&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/*
usage
[$RunScript(name=&quot;GetListeParticipants1&quot;, file=&quot;DMS_CRSIPP&quot;,TypeResultat=&quot;var&quot;)]
var= ['NOMPRENOMFONCTION'] 
*/
function GetListeParticipants1(ContextHandle) {
                var K_DOCU = Database.GetFieldValue(ContextHandle, 'K_DOCUMENT')

                var Type = Variables.Values('TypeResultat')

                var QueryHandle;
                var SQLQuery = &quot; SELECT CONTACTS.K_CONTACT, CONTACTS.NAME,CONTACTS.FIRSTNAME, &quot; +
                               &quot; CONT_COMP.JOBTITLE &quot;+
                               &quot; from &amp;lt;#table name = 'DOCU_CONT'&amp;gt; DOCU_CONT &quot;+
                               &quot; INNER JOIN &amp;lt;#table name = 'CONTACTS'&amp;gt; CONTACTS &quot;+
                               &quot; ON DOCU_CONT.K_CONTACT = CONTACTS.K_CONTACT &quot;+
                               &quot; LEFT OUTER JOIN &amp;lt;#table name = 'CONT_COMP'&amp;gt; CONT_COMP &quot;+
                               &quot; ON (CONTACTS.K_CONTACT = CONT_COMP.K_CONTACT AND CONT_COMP.D_END IS NULL AND CONT_COMP.MAIN = '1') &quot;+
                               &quot; LEFT OUTER JOIN &amp;lt;#table name = 'COMPANIES'&amp;gt; COMPANIES &quot;+
                               &quot; ON CONT_COMP.K_COMPANY = COMPANIES.K_COMPANY &quot; +
                               &quot; where DOCU_CONT.K_DOCUMENT = :PARAM1&quot;;

                var Result='';

                var QueryContextHandle = Database.OpenTemporaryContext;
                    var ResultDS = Database.ExecuteSystemSQLQuery(QueryHandle, QueryContextHandle, SQLQuery, K_DOCU, true, true, 0);
                    ResultDS.First;
                    while (!ResultDS.Eof) {
                        var RESULTTEMP=ResultDS.FieldByName('JOBTITLE').AsString;
                        if (Type=='NOMPRENOMFONCTION' &amp;amp;&amp;amp; RESULTTEMP &amp;lt; 64) 
                            Result = Result +ResultDS.FieldByName('NAME').AsString +' '+ResultDS.FieldByName('FIRSTNAME').AsString +'[$LF]'+ResultDS.FieldByName('JOBTITLE').AsString +'[$LF]'+'[$LF]';
                        else
                            Result = Result +ResultDS.FieldByName('NAME').AsString +' '+ResultDS.FieldByName('FIRSTNAME').AsString +'[$LF]'+ResultDS.FieldByName('JOBTITLE').AsString +'[$LF]';
                        ResultDS.Next   
                    }
                return &quot;$$ENCODE$$&quot;+Result;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1440/template-script-return-value-containing-encode</guid>
<pubDate>Tue, 22 Mar 2016 08:48:40 +0000</pubDate>
</item>
<item>
<title>How does &quot;GetTemplateFields&quot; gets the entities and related fields in Office wizard?</title>
<link>https://overflow.efficy.io/?qa=1438/gettemplatefields-entities-related-fields-office-wizard</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm stuck on a case for weeks and hope a little help from the Office integration experts. &lt;/p&gt;

&lt;p&gt;A &lt;em&gt;new entity&lt;/em&gt; fails in getting its own fields in the &quot;field integration wizard&quot; of the Office Add-In :&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=9073906925432082876&quot; alt=&quot;enter image description here&quot;&gt; &lt;/p&gt;

&lt;p&gt;These fields seems to be retrieved by a function called &lt;strong&gt;GetTemplateFields&lt;/strong&gt; (located the DLL, or somewhere else...).&lt;/p&gt;

&lt;p&gt;Understanding what is the principle of the query launched by this function can help me a lot in fixing that issue! &lt;/p&gt;

&lt;p&gt;Does anyone have some info about it?&lt;/p&gt;

&lt;p&gt;Regards,&lt;br&gt;
Cédric Edouard&lt;/p&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1438/gettemplatefields-entities-related-fields-office-wizard</guid>
<pubDate>Mon, 21 Mar 2016 15:39:46 +0000</pubDate>
</item>
<item>
<title>Word Template with Time-Sheet records</title>
<link>https://overflow.efficy.io/?qa=1021/word-template-with-time-sheet-records</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I would like to create a word template containing table with the timesheet records, this template will be lunched from Company consult context (we already made the link between Comp and Time in consult context). But apparently, &quot;GetRtfTable('Time')&quot; is not working. Mybe 'Time' is not considered by this function. We found a work around using &quot;Runscript&quot; in template. But my question is there any way to be able do it in the standard way &quot;GetTable&quot; or &quot;GetRtfTable&quot;? this standard entity and standard function, why it's not working? am i missing something?&lt;/p&gt;

&lt;p&gt;Please let me know your suggestions and advises.&lt;/p&gt;

&lt;p&gt;Thank you.&lt;br&gt;
Best Regards.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1021/word-template-with-time-sheet-records</guid>
<pubDate>Fri, 18 Dec 2015 09:33:26 +0000</pubDate>
</item>
<item>
<title>How disable date into join file when created from template</title>
<link>https://overflow.efficy.io/?qa=959/how-disable-date-into-join-file-when-created-from-template</link>
<description>&lt;p&gt;It is possible to disable the rename automation when creating a new document from templates.&lt;br&gt;
Date is added into the joined file. How to disable this ?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=959/how-disable-date-into-join-file-when-created-from-template</guid>
<pubDate>Wed, 25 Nov 2015 13:05:50 +0000</pubDate>
</item>
<item>
<title>Efficy 2012 : e-mail template - using K_PUBLICATION in Serverscript</title>
<link>https://overflow.efficy.io/?qa=923/efficy-2012-mail-template-using-kpublication-serverscript</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;I recently had to display the field PUBL_CONT.NCOUNT in a Efficy 2012 template (which can not be done with [$=PUBL.CONT.NCOUNT]).&lt;/p&gt;

&lt;p&gt;The issue I had was that I hadn't the K_PUBLICATION value to use it in serverscript (as you only have access to the Contact Context).&lt;/p&gt;

&lt;p&gt;Here is how it has to be done :&lt;/p&gt;

&lt;p&gt;in the e-mail template :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[$RunScript(name=&quot;RetrieveNtCount&quot;, file=&quot;CustomTemplate&quot;, idpubl=&quot;$$GetArgument('k_publication')&quot;)]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then you can access it in serverscript with :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var K_PUBLICATION = Variables.Values('idpubl');
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;For those who need a ready-to-use example :&lt;/p&gt;

&lt;p&gt;in SYS_STORAGE :&lt;/p&gt;

&lt;p&gt;name : CustomTemplate&lt;/p&gt;

&lt;p&gt;text :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function RetrieveNtCount(ContextHandle){

        var K_PUBLICATION = Variables.Values('idpubl');

        var DsEntity = Database.GetMasterDataSet(ContextHandle,0); 
        var K_CONTACT = DsEntity.FieldByName('K_CONTACT').AsString;  

        var EditHandle = Database.OpenEditContextRelation2(ntPubl, ntCont, K_PUBLICATION, K_CONTACT);
        var NCOUNT = false;

        try {
            var DataSet = Database.GetMasterDataSet(EditHandle, 0)
            DataSet.Edit()
            NCOUNT = DataSet.FieldByName('NCOUNT').AsString;

        } finally {
          Database.CloseContext(EditHandle)
        }

        return NCOUNT ; 
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I hope that it will save you some time !&lt;/p&gt;

&lt;p&gt;Geoffrey&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=923/efficy-2012-mail-template-using-kpublication-serverscript</guid>
<pubDate>Mon, 16 Nov 2015 14:56:24 +0000</pubDate>
</item>
<item>
<title>how to merge a template for multiple contacts ?</title>
<link>https://overflow.efficy.io/?qa=423/how-to-merge-a-template-for-multiple-contacts</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;In a document with 10 contacts, i would used a Template to create a one document with 10 pages (1 per contact)&lt;/p&gt;

&lt;p&gt;How a template could be used to generate 1 page per contact :&lt;br&gt;
   - options in function MergeTemplate ?&lt;br&gt;
   - using a detail table ?&lt;br&gt;
   - other ideas?&lt;/p&gt;

&lt;p&gt;For information, this feature was standard (and therefore used) in elink.&lt;/p&gt;
</description>
<category>Efficy Developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=423/how-to-merge-a-template-for-multiple-contacts</guid>
<pubDate>Tue, 02 Jun 2015 07:45:35 +0000</pubDate>
</item>
</channel>
</rss>