<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged new-entity</title>
<link>https://overflow.efficy.io/?qa=tag/new-entity</link>
<description>Powered by Question2Answer</description>
<item>
<title>Search menu not displayed in custom entity since Efficy 2021</title>
<link>https://overflow.efficy.io/?qa=6337/search-menu-not-displayed-in-custom-entity-since-efficy-2021</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;We are migrating a client from 11.0 to Efficy 2021.&lt;br&gt;
They use one custom entity named AGREEMENTS, in macrodesktopcustom this entity is displayed in left menu by this macro :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;DesktopEntityAgre {[&amp;lt;%Macro('DesktopEntitiesItem', rights='Agre', entity='Agre', $cmd$='Agre', $caption$='AGREEMENTS', $icon$='i-Agre')%&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Everything works fine in 11.0 but since Efficy 2021 the search menu doesn't appear when i click on the three points (every works fine with standard entities).&lt;br&gt;
I can see history, favorites and add a new agreement but not search as you can see : &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=2706709677971835119&quot; alt=&quot;search disapear&quot;&gt;&lt;/p&gt;

&lt;p&gt;Everything is good in the general search menu too, the custom entity is always here.&lt;/p&gt;

&lt;p&gt;Did we miss something new to add ?&lt;/p&gt;

&lt;p&gt;Thanks for reply.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6337/search-menu-not-displayed-in-custom-entity-since-efficy-2021</guid>
<pubDate>Thu, 28 Oct 2021 14:46:58 +0000</pubDate>
</item>
<item>
<title>Disable mandatory link in custom entity</title>
<link>https://overflow.efficy.io/?qa=5310/disable-mandatory-link-in-custom-entity</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;A custom entity named 'Fonction' has been created.&lt;br&gt;
A 'Fonction' can be added from a company.&lt;br&gt;
Currently, when you add a 'Fonction' from a company, it is mandatory to link a contact, otherwise the 'Fonction' is not saved and no error message is displayed.&lt;/p&gt;

&lt;p&gt;This developpment was realised by Efficy's developpers and we would like to change it to turn the link between a 'Fonction' and a contact optional.&lt;/p&gt;

&lt;p&gt;Our issue is that we can't find where in the code or the designer, this mandatory property was set.&lt;br&gt;
We already searched the workflow code and the designer but didn't find anything.&lt;/p&gt;

&lt;p&gt;Any idea ? :)&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5310/disable-mandatory-link-in-custom-entity</guid>
<pubDate>Mon, 02 Mar 2020 07:08:18 +0000</pubDate>
</item>
<item>
<title>On contact merge, linked custom (stripped) entity records are not linked to remaining contact</title>
<link>https://overflow.efficy.io/?qa=5203/contact-linked-custom-stripped-records-remaining-contact</link>
<description>&lt;p&gt;For customer &quot;Arthur &amp;amp; Willemijn&quot; we have created a stripped custom entity &quot;Factif key&quot; which can linked as detail to a contact. However, when two contacts are merged (manually), the linked Factif Keys to Contact 1 are not added to contact 2.&lt;/p&gt;

&lt;p&gt;Has anyone any idea what the cause could be and how to fix this?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5203/contact-linked-custom-stripped-records-remaining-contact</guid>
<pubDate>Thu, 16 Jan 2020 08:36:55 +0000</pubDate>
</item>
<item>
<title>is it possible to have cascading rights application like into the project for a custom entity.</title>
<link>https://overflow.efficy.io/?qa=4877/possible-cascading-rights-application-project-custom-entity</link>
<description>&lt;p&gt;I want to report the standard functionality of cascading security used into the projects to a custom entity. Is it possible ? And How ? Database, macros ?  &lt;br&gt;
If it's possible, can we industrialise it for some kinds of conditions.&lt;br&gt;
For exemple I want to add rules without open security screen depending on externals status or role.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=4852090836812488057&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4877/possible-cascading-rights-application-project-custom-entity</guid>
<pubDate>Wed, 09 Oct 2019 12:03:30 +0000</pubDate>
</item>
<item>
<title>Word Template did not fill fields from relation table of a new created entity</title>
<link>https://overflow.efficy.io/?qa=4826/word-template-fill-fields-from-relation-table-created-entity</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;I created 2 (Contracts and Brands) new entities in Efficy, now I have a problem with a Word template.&lt;/p&gt;

&lt;p&gt;On the template I need information from &quot;Contracts&quot; and also from &quot;Brands&quot;. I added all needed fields to the template, but when running the template i.e. from the &quot;Contracts&quot; entity, the related information from &quot;Brands&quot; are empty. &lt;br&gt;
The same when I run the template from &quot;Brands&quot;, then &quot;Contracts&quot; informations are not filled.&lt;/p&gt;

&lt;p&gt;So it seems that I missed something but could not find what, any hint would be very helpful.&lt;/p&gt;

&lt;p&gt;Thanks in advance and best regards&lt;/p&gt;

&lt;p&gt;Stephan&lt;/p&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4826/word-template-fill-fields-from-relation-table-created-entity</guid>
<pubDate>Wed, 25 Sep 2019 09:11:24 +0000</pubDate>
</item>
<item>
<title>Delete a custom entity</title>
<link>https://overflow.efficy.io/?qa=4326/delete-a-custom-entity</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;In one of my project, my customer create a custom entity into the designer that we really need to destroy before going live.&lt;/p&gt;

&lt;p&gt;I need to destroy all fields, tables, relation tables, forms, ... linked to this entity. There no data inside and no code mention it into Efficy or into the custom. &lt;/p&gt;

&lt;p&gt;How to do it properly?&lt;/p&gt;

&lt;p&gt;Thanks in advance for your help.&lt;/p&gt;

&lt;p&gt;Laurent&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4326/delete-a-custom-entity</guid>
<pubDate>Thu, 23 May 2019 15:05:17 +0000</pubDate>
</item>
<item>
<title>Commit doesn't work on detail between custom entity and docu</title>
<link>https://overflow.efficy.io/?qa=4284/commit-doesnt-work-on-detail-between-custom-entity-and-docu</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I have created a new entity named &lt;code&gt;PAIEMENTS&lt;/code&gt;. I have added custom fields in the relation &lt;code&gt;PAIE_DOCU&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;As function &lt;code&gt;AfterCommitOppoProd(oppoProdCxt, Inserted)&lt;/code&gt;  works, I thought that « &lt;code&gt;AfterCommitPaieDocu&lt;/code&gt; would work..... But, the folowing Commit operation doesn't work:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function AfterCommitPaieDocu(PaieDocuCxt, Inserted) {
var PaieDocuDS = Database.GetMasterDataset(PaieDocuCxt, 0);
var PaieKey = PaieDocuDS.FieldByName('K_PAIEMENT').AsFloat;
var DocuKey = PaieDocuDS.FieldByName('K_DOCUMENT').AsFloat;
var APayer = PaieDocuDS.FieldByName('F_A_PAYER').AsFloat;
var Paye = PaieDocuDS.FieldByName('F_PAYE').AsFloat;
var Ecart = PaieDocuDS.FieldByName('F_ECART').AsFloat;
var TotalPaye = Paye + Ecart;
PaieDocuDS.FieldByName('F_ENCAISSEMENT_VALIDE').AsInteger = 1;
Efficy.DisableWorkflow = true;
Efficy.CommitChanges(PaieDocuCxt, false);
Efficy.DisableWorkflow = false;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Do you know the reason?&lt;/p&gt;

&lt;p&gt;The following command works:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function OnInsertDetailPaieDocu(EditHandle, Detail, DetailKey) 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Thank you&lt;br&gt;
Dimitri&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4284/commit-doesnt-work-on-detail-between-custom-entity-and-docu</guid>
<pubDate>Thu, 16 May 2019 13:51:36 +0000</pubDate>
</item>
<item>
<title>Query on a new custom Entity does not have hyperlinks (based on the key) to display related record</title>
<link>https://overflow.efficy.io/?qa=4189/query-custom-entity-hyperlinks-based-display-related-record</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;for a customer I created a new entity (Brands), this basically works fine. &lt;/p&gt;

&lt;p&gt;But now when creating a query on this new entity I did not have hyperlinks to display the related record (even I have selected the key in the query).&lt;/p&gt;

&lt;p&gt;Did I missed something when creating the new Entity?&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=399679517395658827&quot; alt=&quot;Qery result&quot;&gt;&lt;/p&gt;

&lt;p&gt;Any hint would be appreciated very much.&lt;/p&gt;

&lt;p&gt;Thanks in advance and best regards&lt;/p&gt;

&lt;p&gt;Stephan&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4189/query-custom-entity-hyperlinks-based-display-related-record</guid>
<pubDate>Fri, 03 May 2019 07:52:49 +0000</pubDate>
</item>
<item>
<title>New Etity Relation : error Unknow EntityView &quot;&quot;</title>
<link>https://overflow.efficy.io/?qa=3825/new-etity-relation-error-unknow-entityview</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I have a custom entity 'Missions', this entity use the PRODUCTS table too&lt;br&gt;
FAMILY  =  1 ==&amp;gt; Missions&lt;br&gt;
FAMILY &amp;lt;&amp;gt; 1 ==&amp;gt; Products&lt;/p&gt;

&lt;p&gt;My problem : When I want to add / delete a relation between a Mission and an other entity I have this error:&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=1250673765610111573&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;It works if I customize CreateRelation(), EditRelation(), DeleteLink() in Custom.js to  replace 'Miss' by 'Prod' like this :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function DeleteLink(Bookmark, Entity, Key, Detail, DetailKey, ItemName, NoConfirm) {
    if (! NoConfirm) {
        var Msg = sRelDelConfirm
        if (ItemName) Msg = sRelDelConfirmName + ItemName + &quot;' ?&quot;
        if (! confirm(Msg)) return
    }

    if(Entity=='Miss') Entity='Prod' // FORCE MISSIONS TO PRODUCTS
    var URL = &quot;deletelink?bookmark=&quot; + Bookmark + &quot;&amp;amp;entity=&quot; + Entity + &quot;&amp;amp;key=&quot; + Key + &quot;&amp;amp;detail=&quot; + Detail + &quot;&amp;amp;detailkey=&quot; + DetailKey
    LocationSet(window, URL, true)
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;How to indicate to Efficy which EntityView use ?&lt;/p&gt;

&lt;p&gt;Systems table for Missions :&lt;br&gt;
&lt;strong&gt;SYS_ENTITIES&lt;/strong&gt;&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=8760125147011586048&quot; alt=&quot;enter image description here&quot;&gt;&lt;br&gt;
&lt;strong&gt;SYS_ENTITYVIEWS&lt;/strong&gt;&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=9446429460873961172&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3825/new-etity-relation-error-unknow-entityview</guid>
<pubDate>Mon, 07 Jan 2019 17:22:18 +0000</pubDate>
</item>
<item>
<title>Trouble ceating a relation between Cont and new entity</title>
<link>https://overflow.efficy.io/?qa=3743/trouble-ceating-a-relation-between-cont-and-new-entity</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I create a new entity named Trai (key 50) and with a servercript I try to create a relation between this entity and a contact. I got an error when I try to link this contact by script but work if I use the right side of the edit form contacts (add link to a contact). To debug I run this script from the scheduler and got this message &lt;/p&gt;

&lt;p&gt;Error: WKFL-2142 Error while executing script &quot;bentest&quot; at line 1020 char 4. (File &quot;C:\inetpub\wwwroot\11.0\customs\xxx\serverscripts\NL&lt;em&gt;server&lt;/em&gt;test.js&quot; line 25)&lt;br&gt;
Message: &quot;Incorrect Detail for Edit Context&quot;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function bentest() {
    var editHandle = Efficy.openEditContext(ntCont, 67067, false);
        try{
            var ds = Efficy.getMasterDataSet(editHandle, 0);
            ds.edit();
            Efficy.insertDetail2(editHandle, 50, 64, false);
            Efficy.commitChanges(editHandle, true);
        } finally {
            Efficy.closeContext(editHandle);
        }   
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;line 25 is the insertDetail2 line.&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3743/trouble-ceating-a-relation-between-cont-and-new-entity</guid>
<pubDate>Wed, 12 Dec 2018 10:00:16 +0000</pubDate>
</item>
<item>
<title>CreateRelation on new Entity : how does this work ?</title>
<link>https://overflow.efficy.io/?qa=3063/createrelation-on-new-entity-how-does-this-work</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;I am trying to search how the relation is created when you click on the + button in the consult grid of an entity. It bring the search window, but when you click on the Add new button in the search button ... then I am confused. Here is what I understand : &lt;/p&gt;

&lt;p&gt;1- when I click on the + button in the consult, it open the search window with the parameter &lt;br&gt;
&quot;action=CreateRelation(1009%3BProp%3B1186)&quot; ... which is used to add the key of the selected entity in this function if I click directly in the search result. Which is ok and I have my hand on it if I want.&lt;/p&gt;

&lt;p&gt;2- if I click on the Add new button in the search button, the parameter is transfer to the Edit windows of the new Entity we want to create &quot;action=CreateRelation(1009%3BProp%3B1186)&quot;&lt;br&gt;
But when I clicked on &quot;OK&quot; or &quot;APPLY&quot;, the new entity is created and I don't know where Efficy has created the linked using the information in the action passed in the URL ... &lt;/p&gt;

&lt;p&gt;The issue is that when we do that the new entity is becoming the parent of the entity where we click on the create relation button, but normally it should be the child.&lt;/p&gt;

&lt;p&gt;And I don't  know where this happened.&lt;/p&gt;

&lt;p&gt;PS : I suspect that this is handled in the Efficy.dll ... but I would like a confirmation of it.&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;br&gt;
Stéphane&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3063/createrelation-on-new-entity-how-does-this-work</guid>
<pubDate>Thu, 12 Apr 2018 12:19:10 +0000</pubDate>
</item>
<item>
<title>How to add a relation between Objectives and a Custom Entity</title>
<link>https://overflow.efficy.io/?qa=2505/how-to-add-a-relation-between-objectives-and-a-custom-entity</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;it seems that the objectives entity can only be linked to users, companies, and contacts. &lt;/p&gt;

&lt;p&gt;does it exist a process to make the objectives table linked to another entity?&lt;/p&gt;

&lt;p&gt;I don't have time to make some explorative research at the moment... so if it's too uncertain I will create a new custom Entity called Objective2^^ but that's not the spirit is it?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2505/how-to-add-a-relation-between-objectives-and-a-custom-entity</guid>
<pubDate>Fri, 19 May 2017 13:45:12 +0000</pubDate>
</item>
<item>
<title>How to see new entity and form</title>
<link>https://overflow.efficy.io/?qa=1877/how-to-see-new-entity-and-form</link>
<description>&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;In conficy I added a new entity with some fields and I created 2 forms, one to consult and one to edit the entity. I logged off and on in conficy and in efficy.&lt;br&gt;
I set the access rights to the table for everyone to read, update, delete, add.&lt;/p&gt;

&lt;p&gt;I hoped this would do, but it doesn't... Can someone tell me how I can access this entity and forms in efficy?&lt;/p&gt;

&lt;p&gt;Cheers&lt;br&gt;
Kathleen&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1877/how-to-see-new-entity-and-form</guid>
<pubDate>Mon, 19 Sep 2016 13:44:45 +0000</pubDate>
</item>
<item>
<title>How does &quot;GetTemplateFields&quot; gets the entities and related fields in Office wizard?</title>
<link>https://overflow.efficy.io/?qa=1438/gettemplatefields-entities-related-fields-office-wizard</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm stuck on a case for weeks and hope a little help from the Office integration experts. &lt;/p&gt;

&lt;p&gt;A &lt;em&gt;new entity&lt;/em&gt; fails in getting its own fields in the &quot;field integration wizard&quot; of the Office Add-In :&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=9073906925432082876&quot; alt=&quot;enter image description here&quot;&gt; &lt;/p&gt;

&lt;p&gt;These fields seems to be retrieved by a function called &lt;strong&gt;GetTemplateFields&lt;/strong&gt; (located the DLL, or somewhere else...).&lt;/p&gt;

&lt;p&gt;Understanding what is the principle of the query launched by this function can help me a lot in fixing that issue! &lt;/p&gt;

&lt;p&gt;Does anyone have some info about it?&lt;/p&gt;

&lt;p&gt;Regards,&lt;br&gt;
Cédric Edouard&lt;/p&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1438/gettemplatefields-entities-related-fields-office-wizard</guid>
<pubDate>Mon, 21 Mar 2016 15:39:46 +0000</pubDate>
</item>
<item>
<title>FYI : New Entity in Efficy2014 : about Name and Active fields</title>
<link>https://overflow.efficy.io/?qa=378/fyi-new-entity-in-efficy2014-about-name-and-active-fields</link>
<description>&lt;p&gt;FYI:&lt;/p&gt;

&lt;p&gt;After creating a new entity, do not add the fields NAME and OPENED (Active) in the Main section of the Edit Form.&lt;/p&gt;

&lt;p&gt;These two fields are already by default present in the edit header, &lt;br&gt;
--&amp;gt; see the header Name field with the 'active' buton in front of it. &lt;/p&gt;

&lt;p&gt;When adding them also in the edit main section, this will generate a malfunction of the header fields.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br&gt;
Jappe. &lt;/p&gt;
</description>
<category>Efficy Developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=378/fyi-new-entity-in-efficy2014-about-name-and-active-fields</guid>
<pubDate>Wed, 06 May 2015 13:36:54 +0000</pubDate>
</item>
<item>
<title>Added entity isn't showing in the recently viewed items list</title>
<link>https://overflow.efficy.io/?qa=332/added-entity-isnt-showing-in-the-recently-viewed-items-list</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I've added a new entity but when I've viewed an item of that entity it isn't added to the recently viewed items list. How can I make this behavior available.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br&gt;
Jeroen&lt;/p&gt;
</description>
<category>Efficy Developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=332/added-entity-isnt-showing-in-the-recently-viewed-items-list</guid>
<pubDate>Thu, 02 Apr 2015 14:30:38 +0000</pubDate>
</item>
</channel>
</rss>