<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged contact</title>
<link>https://overflow.efficy.io/?qa=tag/contact</link>
<description>Powered by Question2Answer</description>
<item>
<title>Why can't I bypass the read-only dataset with Efficy.disableSecurity</title>
<link>https://overflow.efficy.io/?qa=6911/cant-bypass-read-only-dataset-with-efficy-disablesecurity</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I want to bypass a security (a customer who haven't the rigth to modify an entity) so I wrote this code : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;SetContactRobinson: function(kCont, blacklisted) {
        if (!kCont) return;
        var editContext = Efficy.openEditContext(ntCont, kCont);

        //on désactive les sécurités pour permettre la modifications des contacts
        var disableSecurityOld = Efficy.disableSecurity;
        Efficy.disableSecurity = true;

        try {
            Efficy.updateField(editContext, 0, 'ROBINSON', (blacklisted ? &quot;1&quot; : &quot;0&quot;));
            Efficy.commitChanges(editContext, false);
        }
        finally {
            Efficy.closeContext(editContext);
            Efficy.disableSecurity = disableSecurityOld;
        }
    },
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But I have this error : &lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;!! ERROR: DS&lt;em&gt;ContEdit&lt;/em&gt;0_Cont: Cannot modify a read-only dataset&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I guess the data set is read only cause my user haven't right to modify this contact, but why &lt;code&gt;Efficy.disableSecurity = true;&lt;/code&gt; dosen't work here ? &lt;/p&gt;

&lt;p&gt;thanks in advance&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6911/cant-bypass-read-only-dataset-with-efficy-disablesecurity</guid>
<pubDate>Thu, 01 Jun 2023 08:49:33 +0000</pubDate>
</item>
<item>
<title>How to have a company show only active contacts with that company?</title>
<link>https://overflow.efficy.io/?qa=6859/how-have-company-show-only-active-contacts-with-that-company</link>
<description>&lt;p&gt;I would like the company view, contacts, to show only contacts that are currently active with that company. I would like to select the active link (in the contact - company relation) for that, but I can't seem to. I have made it work with a filter by selecting only contacts that have an empty end date. Is this the only way or is there an easier way?&lt;/p&gt;
</description>
<category>Other</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6859/how-have-company-show-only-active-contacts-with-that-company</guid>
<pubDate>Fri, 07 Apr 2023 08:04:47 +0000</pubDate>
</item>
<item>
<title>How to select a contact in a document generated from a company</title>
<link>https://overflow.efficy.io/?qa=6070/how-to-select-a-contact-in-a-document-generated-from-company</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am working on an invoice template in Word, with the Efficy Word integration. I save my document as a template.&lt;/p&gt;

&lt;p&gt;In my document, among other things, I insert this :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[$=COMP.NAME]
[$=CONT.TITLE] [$=CONT.FIRSTNAME] [$=CONT.NAME]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then, in Efficy, from a Contact, when I &quot;Add Link to Document&quot; &amp;gt; &quot;Launch Template&quot;, I can show fields from both the Contact table and the Company table.&lt;/p&gt;

&lt;p&gt;I notice that if a Contact has multiple links with multiple Companies, only the Company with the Main Link will be selected.&lt;/p&gt;

&lt;p&gt;Now the problem I have is if I want to Launch Template, but from a Company. Then I am able to show Company name, but it won't retrieve any Contact field to show.&lt;/p&gt;

&lt;p&gt;So my question is : is it possible to generate the document from a Company and show data from a specific contact ? For example I have contacts which have the Function &quot;Invoicing Contact&quot; and I would like to show fields from these.&lt;/p&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6070/how-to-select-a-contact-in-a-document-generated-from-company</guid>
<pubDate>Tue, 04 May 2021 15:15:04 +0000</pubDate>
</item>
</channel>
</rss>