<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged html-template</title>
<link>https://overflow.efficy.io/?qa=tag/html-template</link>
<description>Powered by Question2Answer</description>
<item>
<title>convertAttachmentToPdf, PDF generated with an image with a size in style / attributes shows image in original size</title>
<link>https://overflow.efficy.io/?qa=6639/convertattachmenttopdf-generated-style-attributes-original</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;We are using convertAttachmentToPdf to convert HTML to a pdf. This is ok except for image with a size defined (via CKEDITOR), this stores the size in the style attribute. When the size is defined the generated pdf just shows the original size. Adding the width and height attributes to img element changes nothing.&lt;/p&gt;

&lt;p&gt;Does anyone know how to solve this? &lt;/p&gt;

&lt;p&gt;Best regards,&lt;/p&gt;

&lt;p&gt;Rob&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6639/convertattachmenttopdf-generated-style-attributes-original</guid>
<pubDate>Tue, 19 Jul 2022 14:38:39 +0000</pubDate>
</item>
<item>
<title>HTML Template with grid including a normal field</title>
<link>https://overflow.efficy.io/?qa=6396/html-template-with-grid-including-a-normal-field</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;I am looking for a solution to add a field in a HTML Grid definition but I could not find the right way to do it.&lt;/p&gt;

&lt;p&gt;Here is my code, in the template : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;p&amp;gt;[$GetHtmlTable('Prod', entity='Prod', columndefs='GridHTML', columns='F_ID_PANO,F_CODE_CENTRALE,NAME,F_COLISSAGE,F_COLIS1,F_COLIS2,F_COLIS3,F_COLIS4,F_COLIS5,F_TOTAL_COLIS,F_GRATUIT', sum='F_TOTAL_COLIS')]
    &amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In the SYS_STORAGE : GridHTML&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;th.F_COLIS1 {[&amp;lt;th nowrap valign=&quot;top&quot;&amp;gt;&amp;lt;#H=$FIELD$;nomenu=&quot;T&quot;&amp;gt;&amp;lt;/br&amp;gt;[$=OCTU.F_D_LIV1, format=&quot;DD/MM/YYYY&quot;]&amp;lt;/th&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Here I remarked 2 thing : &lt;br&gt;
the HTML Grid definition cannot use the {[...]} to define the macro ... it is just not working.&lt;br&gt;
And it seems the way that HTML templates merge grids cannot cope with inserting the following code &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[$=OCTU.F_D_LIV1, format=&quot;DD/MM/YYYY&quot;]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The final result should look like it is in OTCU main entity product tabs&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=6537760104214581604&quot; alt=&quot;OTCU_PROD tab in edit of OTCU&quot;&gt;&lt;/p&gt;

&lt;p&gt;Or did I do something wrong here ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6396/html-template-with-grid-including-a-normal-field</guid>
<pubDate>Fri, 10 Dec 2021 12:27:50 +0000</pubDate>
</item>
<item>
<title>Email Template using multiple tables</title>
<link>https://overflow.efficy.io/?qa=5374/email-template-using-multiple-tables</link>
<description>&lt;p&gt;Hi all,&lt;br&gt;
I am facing some difficulties to implement a new email template. &lt;br&gt;
In our using context, we have to send an email to a specific contact of a company. &lt;br&gt;
In this email, we include some information about a case in helpdesk like the company which is impacted.&lt;br&gt;
We are using multiple link between an incident and companies. And each company has a specific type (&quot;Adhérent&quot;, &quot;Fournisseur&quot;) &lt;br&gt;
So my question is, I would be able to insert in my template the Company name where the relation between the company and case has the value &quot;1&quot; (Adhérent)&lt;br&gt;
I tried to do this with the operator &quot;onfield&quot; but I cannot obtain  the value of the filed just text. &lt;br&gt;
Can you help me for this ? &lt;br&gt;
Regards,,&lt;br&gt;
Take care.&lt;br&gt;
Julien&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5374/email-template-using-multiple-tables</guid>
<pubDate>Tue, 31 Mar 2020 09:36:03 +0000</pubDate>
</item>
<item>
<title>Multivalue in Email template in Products grid (Efficy 11.3)</title>
<link>https://overflow.efficy.io/?qa=5362/multivalue-in-email-template-in-products-grid-efficy-11-3</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I'm struggling with a emailtemplate and a multivalue field. I haven't been able to find the right syntax to have the multivalues values shown in the grid of Products.&lt;br&gt;
I've tried all of these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&amp;lt;#F=F_ORIGIN;TYPE=MULTIVALUE&amp;gt;&lt;/li&gt;
&lt;li&gt;&amp;lt;#F=F_ORIGIN;MULTIVALUE=T&amp;gt;&lt;/li&gt;
&lt;li&gt;&amp;lt;#F=F_ ORIGIN;TYPE=MULTIVALUE;TABLEID=30022;FIELDID=F_ORIGIN;SEPARATOR=, ;context=tag&amp;gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of these give the values of the keys and not the text values.&lt;/p&gt;

&lt;p&gt;Does anyone know the right syntax to have the values shown in the email?&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br&gt;
Jeroen&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5362/multivalue-in-email-template-in-products-grid-efficy-11-3</guid>
<pubDate>Mon, 16 Mar 2020 08:41:53 +0000</pubDate>
</item>
<item>
<title>EDITING A CATEGORY FIELD VIA A VIRUAL FIELD</title>
<link>https://overflow.efficy.io/?qa=4247/editing-a-category-field-via-a-virual-field</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I want to edit a field created in a category via an html page:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;td&amp;gt;&amp;lt;%GetHeader(&quot;CATEGORY-DOCU$FAC-COMMUNICATION&quot;)%&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;%GetEdit(&quot;CATEGORY-DOCU$FAC-COMMUNICATION&quot;, context=TEXT)%&amp;gt;&amp;lt;/td&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;DS_DocuEdit_0_Docu: Field 'DOCU$FAC-COMMUNICATION' not found
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Any solution ?&lt;br&gt;
Dimitri&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4247/editing-a-category-field-via-a-virual-field</guid>
<pubDate>Wed, 15 May 2019 12:20:53 +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>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>Efficy 2014 HTML Template include a product Table</title>
<link>https://overflow.efficy.io/?qa=800/efficy-2014-html-template-include-a-product-table</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;I would like to include the product table into an HTML Template for sending an email from a document containing products.&lt;/p&gt;

&lt;p&gt;I am using the following code :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[$GetHTMLTable('PROD', columndefs=&quot;GridColumns.txt&quot;, noheader=&quot;true&quot;, columns=&quot;COMMENT,QUANTITY&quot;, sum=&quot;QUANTITY&quot;)]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But I always get the following Error:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;ID&lt;/em&gt;: CORE-1285&lt;br&gt;
&lt;em&gt;Message&lt;/em&gt;: Empty Column Definition File: GridColumns.txt&lt;br&gt;
&lt;em&gt;Comment&lt;/em&gt;: &lt;br&gt;
&lt;em&gt;Details&lt;/em&gt;: &lt;/p&gt;

&lt;p&gt;I tried to change the GridColumns.txt, by another one I have created, but the result is exactly the same.&lt;/p&gt;

&lt;p&gt;The file is not empty and contain the following column definition:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;starttable [&amp;lt;table&amp;gt;]
endtable [&amp;lt;/table&amp;gt;]

startheader []
endheader []

startrow [&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;]
endrow [&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;]

th []
td [&amp;lt;#F=$FIELD$&amp;gt;]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Does someone knows how to do that?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=800/efficy-2014-html-template-include-a-product-table</guid>
<pubDate>Mon, 05 Oct 2015 17:07:49 +0000</pubDate>
</item>
</channel>
</rss>