<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged entity-list</title>
<link>https://overflow.efficy.io/?qa=tag/entity-list</link>
<description>Powered by Question2Answer</description>
<item>
<title>How can we activate the list of contact for a &quot;fake&quot; entity &quot;Candidate&quot; which are subsettings of contacts ?</title>
<link>https://overflow.efficy.io/?qa=3456/activate-contact-entity-candidate-which-subsettings-contacts</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;One of our custom asked to activate the list of contacts in Efficy when clicking on the entity button in the Efficy Entity menu. &lt;/p&gt;

&lt;p&gt;We did it by :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;creating the &lt;code&gt;SYS_QUERY&lt;/code&gt; : &lt;code&gt;K_MASTER&lt;/code&gt; = 11, &lt;code&gt;K_DETAIL&lt;/code&gt; = 0&lt;/li&gt;
&lt;li&gt;creating the &lt;code&gt;ShowContList&lt;/code&gt; function in Custom.js&lt;/li&gt;
&lt;li&gt;Adding the command &quot;Cont&quot; to the &lt;code&gt;entitiesCmd.js&lt;/code&gt; customized&lt;/li&gt;
&lt;li&gt;Create the corresponding Macros in &lt;code&gt;MacroList.txt&lt;/code&gt; : &lt;code&gt;ListGrid.Cont&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is working perfectly, but now we have to create a fake entity &quot;Candidate&quot;, we have created the button in the Efficy Entities menu and we have created the Macros and commands to show the list.&lt;/p&gt;

&lt;p&gt;The &quot;candidate&quot; fake entity is pointing to the contact entity, which means that the SYS_QUERIES used by this entity should also be the &lt;code&gt;K_MASTER = 11, K_DETAIL = 0&lt;/code&gt; ... but here it is not correct because we would like to create a subset of the contact, so we think to duplicate this &lt;code&gt;SYS_QUERIES&lt;/code&gt; and create a new one &lt;code&gt;K_MASTER = 11, K_DETAIL = 99&lt;/code&gt; for instance... but then we are block, because we don't know how to make the &lt;code&gt;GetEntityListGrid&lt;/code&gt; Efficy function pointing to this fake entity in order to be able to use the standard List button and Grids functionnalities such as Custom grid views.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;%GetEntityListGrid(columndefs=&quot;GridColumns&quot;, entity=&quot;$ENTITY$&quot;, columns=&quot;$COLUMNS$&quot;, sum=&quot;$SUM$&quot;)%&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;We know it is possible to do it, because the fake standard entity &quot;Galery&quot; in the tabs of a consult company can use the Custom Grid Views.&lt;/p&gt;

&lt;p&gt;If I look at the fake entity configuration &quot;&lt;code&gt;Glry&lt;/code&gt;&quot;, it seems it is configured in the database, in &lt;code&gt;SYS_ENTITIES&lt;/code&gt; ... is it the only place where we should had the configuration of our fake entity &quot;Cand&quot; to make the standard list work or is there any other way to do it ?&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;br&gt;
Stéphane Roncin&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3456/activate-contact-entity-candidate-which-subsettings-contacts</guid>
<pubDate>Thu, 09 Aug 2018 10:34:02 +0000</pubDate>
</item>
</channel>
</rss>