<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged grid-definition</title>
<link>https://overflow.efficy.io/?qa=tag/grid-definition</link>
<description>Powered by Question2Answer</description>
<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>
</channel>
</rss>