<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged onfield</title>
<link>https://overflow.efficy.io/?qa=tag/onfield</link>
<description>Powered by Question2Answer</description>
<item>
<title>OnField in a macro for a DetailtabButton is not working</title>
<link>https://overflow.efficy.io/?qa=3593/onfield-in-a-macro-for-a-detailtabbutton-is-not-working</link>
<description>&lt;p&gt;Here is the code in MacroConsultCustom.txt&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;EntityMeusinvestProj@CIDE_SOCRAN{[Time;&amp;lt;%OnField(query='isParentProj', 'nbEnfant', condition='equal', value=0, then=|SumT|, else=||)%&amp;gt;]}
DetailTabsButtons.Proj {[&amp;lt;%IfHasTimeLine(then='Tmln;')%&amp;gt;Cont;Comp;Acti;Mail;Docu;Prod;Proj;Publ;Oppo;Case;Prof;Glry;Memo;Catg;Hist;&amp;lt;%Macro(EntityMeusinvestProj)%&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The Onfield is not working because its in the &lt;code&gt;EntityMeusinvestProj&lt;/code&gt; macro.&lt;br&gt;
If I put the onField outside, directly in the detailTabsButton, its working. But I can't, because I have to show the tabs only for the CIDE_SOCRAN group.&lt;/p&gt;

&lt;p&gt;nb: I can't do like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;DetailTabsButtons.Proj@CIDE_SOCRAN{[...
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Cause it will erase the DetailTabsButtons for the other groups&lt;/p&gt;

&lt;p&gt;Any idea to go around this problem ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3593/onfield-in-a-macro-for-a-detailtabbutton-is-not-working</guid>
<pubDate>Mon, 08 Oct 2018 16:01:32 +0000</pubDate>
</item>
</channel>
</rss>