<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged acti_acti</title>
<link>https://overflow.efficy.io/?qa=tag/acti_acti</link>
<description>Powered by Question2Answer</description>
<item>
<title>Efficy 11 migration exception: Unknown entity for relation grid: &quot;Acti&quot;</title>
<link>https://overflow.efficy.io/?qa=3004/efficy-migration-exception-unknown-entity-relation-grid-acti</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;I've made an upgrade to Efficy11 (well done Efficy Team about this because this version is really enjoyable btw).&lt;/p&gt;

&lt;p&gt;Anyway I've encountered an issue where Editing an Appo is not working : Big orange Error : Unknown entity for relation grid: &quot;Acti&quot;. weirdly it worked fine with tasks.&lt;/p&gt;

&lt;p&gt;After further research I ve found that in this version it's now possible to link task to an appointement and not to a task. &lt;/p&gt;

&lt;p&gt;so this was found in MacroEdit.txt : line 1604&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&quot;data&quot;: [
                    &amp;lt;%GetRelationGrid(entity=&quot;Acti&quot;, key=&quot;K_ACTION2&quot;, noheader=&quot;true&quot;,
                        templatetext=|&amp;lt;#repeat&amp;gt;{&quot;key&quot;: &amp;lt;#F=K_ACTION2;context=JS&amp;gt;, &quot;SUBJECT&quot;: &quot;&amp;lt;#F=SUBJECT;nospace=T;context=JS&amp;gt;&quot;, &quot;D_BEGIN&quot;: &quot;&amp;lt;#F=D_BEGIN;nospace=T;context=JS&amp;gt;&quot;, &quot;D_DUE&quot;: &quot;&amp;lt;#F=D_DUE;nospace=T;context=JS&amp;gt;&quot;, &quot;USERS&quot;: &quot;1;2&quot;, &quot;MEMO&quot;: &quot;&amp;lt;#F=MEMO;puretext=T;context=JS&amp;gt;&quot;, &quot;MAIN&quot;: &quot;&amp;lt;#F=MAIN;context=JS&amp;gt;&quot;, &quot;DONE&quot;: &quot;&amp;lt;#F=DONE;nospace=T;context=JS&amp;gt;&quot; },&amp;lt;/#repeat&amp;gt;|)%&amp;gt;
                ]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;point is that if a link exist between acti and acti the sys&lt;em&gt;entityviews must have changed as well so i ve checked and this is what I had to add in my sys&lt;/em&gt;entityviews named : &quot;ActiEdit&quot;&lt;/p&gt;

&lt;p&gt;the tableviews has to contain : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Acti_Acti=Acti;Acti_Acti2
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;because my entityviews was custom this has not been override by the dbUpgrade.&lt;/p&gt;

&lt;p&gt;it works fine cheers all.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3004/efficy-migration-exception-unknown-entity-relation-grid-acti</guid>
<pubDate>Wed, 28 Mar 2018 07:42:09 +0000</pubDate>
</item>
<item>
<title>Acti_Acti - Cannot change main linked activity</title>
<link>https://overflow.efficy.io/?qa=1454/actiacti-cannot-change-main-linked-activity</link>
<description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;After activating the possibility to link actions amongst themselves, it seems to lead to an unexpected behaviour when trying to change the main linked actions.&lt;/p&gt;

&lt;p&gt;When we create an action and we add links to other actions, the first action that had been linked is naturally set to be the main one.&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=12329680983945306741&quot; alt=&quot;Actions linked but no changes&quot;&gt;&lt;br&gt;
However, changing the main linked action and saving leads to clearing the previously main link (so it indeed becomes a &lt;em&gt;secondary&lt;/em&gt; action) but &lt;strong&gt;not&lt;/strong&gt; setting the expected link to main, resulting in no more &lt;em&gt;main&lt;/em&gt; link.&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=1312583361223967517&quot; alt=&quot;Changing main link to Test task 2&quot;&gt;&lt;br&gt;
But deleting any linked action results in setting one of the remaining ones to &lt;em&gt;main&lt;/em&gt; link.&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=4280153868478679036&quot; alt=&quot;Delete one action leads to restoring a main link&quot;&gt;&lt;/p&gt;

&lt;p&gt;Inspecting the generated code of the webpage does not show anything wrong. IDs for the different labels/buttons are correct and relevant. There is nothing in the custom files that is playing with main linked actions either.&lt;/p&gt;

&lt;p&gt;To me, it sounds like clearing the field &lt;em&gt;MAIN&lt;/em&gt; is done correctly but setting it to 1 does not seem to work.&lt;br&gt;
As to why deleting one random linked action leads to restoring a main link, I assume there is some internal procedure triggered when deleting a link that checks if a &lt;em&gt;main&lt;/em&gt; link still exists and if not, takes the first linked action and sets its &lt;em&gt;MAIN&lt;/em&gt; field to 1. &lt;/p&gt;

&lt;p&gt;I've checked &lt;a rel=&quot;nofollow&quot; href=&quot;http://overflow.efficy.com/?qa=1006/acti_acti-activation-on-efficy-2014&quot;&gt;this link&lt;/a&gt; and everything matches what's said in the answers of that question, yet the issue is still there.&lt;/p&gt;

&lt;p&gt;Any ideas on where that issue could be coming from?&lt;/p&gt;

&lt;p&gt;Thank you very much,&lt;br&gt;
Best regards,&lt;/p&gt;

&lt;p&gt;Laurent&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1454/actiacti-cannot-change-main-linked-activity</guid>
<pubDate>Thu, 24 Mar 2016 10:50:42 +0000</pubDate>
</item>
<item>
<title>ACTI_ACTI activation on efficy 2014</title>
<link>https://overflow.efficy.io/?qa=1006/actiacti-activation-on-efficy-2014</link>
<description>&lt;p&gt;Dear,&lt;/p&gt;

&lt;p&gt;I'm trying t activate ACT&lt;em&gt;ACTI relation on ACTI edit window. i've already mad all necessary insertion to tables sys&lt;/em&gt;tableviews, sys&lt;em&gt;relentities, and sys&lt;/em&gt;entityviews (reference this old post: &lt;a rel=&quot;nofollow&quot; href=&quot;http://overflow.efficy.com/?qa=432/create-acti_acti-relation-sys_entityviews-without-entityview&amp;amp;show=432#q432&quot;&gt;&lt;/a&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://overflow.efficy.com/?qa=432/create-acti_acti-relation-sys_entityviews-without-entityview&amp;amp;show=432#q432&quot;&gt;http://overflow.efficy.com/?qa=432/create-acti_acti-relation-sys_entityviews-without-entityview&amp;amp;show=432#q432&lt;/a&gt; )&lt;br&gt;
After that i start getting error: Can't find detail with key &quot;4&quot; and relation &quot;-1&quot;. after checking i found i need to do more modification on macros MacroEdit and RelationColumns as follows:&lt;/p&gt;

&lt;p&gt;MacroEditCustom.txt:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;EditRelationsList.Acti {[UserRelations;ContRelations;CompRelations;ProjRelations;PublRelations;OppoRelations;CaseRelations;ActiRelations;DocuRelations;MailRelations;ProdRelations;ProfRelations]}

ActiRelations#Acti.Acti {[&amp;lt;%Macro('EntityRelationsTemplate2', detail='Acti', $CAPTION$='Add Link to Action')%&amp;gt;]}

EntityRelationsTemplate2 {[
    &amp;lt;li class=&quot;edit-rels-entity&quot;&amp;gt;
        &amp;lt;button type=&quot;button&quot; class=&quot;i-$DETAIL$ h-$DETAIL$ small quaternary&quot; title=&quot;&amp;lt;%GetLabel('$CAPTION$')%&amp;gt;&quot;
            data-msg=&quot;add;$DETAIL$;$this&quot; &amp;lt;%IfReadOnly(then='disabled')%&amp;gt; data-dropdown=&quot;dd-entity-picker&quot; data-options=&quot;align:left&quot;&amp;gt;&amp;lt;/button&amp;gt;
        &amp;lt;span&amp;gt;&amp;lt;%GetLabel('$DETAIL$s')%&amp;gt;&amp;lt;%AddRelationButton(entity='$DETAIL$')%&amp;gt;&amp;lt;/span&amp;gt;
    &amp;lt;/li&amp;gt;
    &amp;lt;%GetRelationGrid(columndefs=&quot;RelationColumns.txt&quot;, entity=&quot;$DETAIL$&quot;, noheader=&quot;true&quot;, columns=&quot;%%IfReadOnly(then='MAIN2,FULLNAME2', else='MAIN2,COMMANDS2,FULLNAME2')&quot;)%&amp;gt;
    &amp;lt;%Macro('EntityRelationsMenu', entity='$DETAIL$')%&amp;gt;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;RelationColumnsCustom.txt:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;td.FULLNAME2 {[&amp;lt;a href=&quot;javascript:Edit('Acti',&amp;lt;#F=K_ACTION2&amp;gt;)&quot; class=&quot;&amp;lt;#I=DONE;1=inactive&amp;gt;&quot; title=&quot;&amp;lt;#F=SUBJECT&amp;gt; - &amp;lt;#F=D_BEGIN&amp;gt;&quot;&amp;gt;&amp;lt;#F=SUBJECT;emptytext=T&amp;gt;&amp;lt;/a&amp;gt;]}

td.COMMANDS2 {[&amp;lt;button type=&quot;button&quot; class=&quot;i-delete tertiary&quot; data-msg=&quot;delete2;&amp;lt;#F=K_ACTION2&amp;gt;;$ENTITY$&quot; title=&quot;&amp;lt;%GetLabel('Delete Relation')%&amp;gt;&quot;&amp;gt;&amp;lt;/button&amp;gt;
  &amp;lt;%DeleteRelationButton(entity=&quot;$ENTITY$&quot;, key=&quot;&amp;lt;#F=K_ACTION2&amp;gt;&quot;)%&amp;gt;]}

td.MAIN2 {[&amp;lt;div class=&quot;switch compact tiny round&quot;&amp;gt;&amp;lt;input id=&quot;Acti-MAIN-&amp;lt;#F=K_ACTION2&amp;gt;&quot; type=&quot;radio&quot; &amp;lt;#I=MAIN;1=checked&amp;gt; value=&quot;&amp;lt;#F=K_ACTION2&amp;gt;&quot; name=&quot;Acti-MAIN&quot;&amp;gt;&amp;lt;label for=&quot;$ENTITY$-$FIELD$-&amp;lt;#F=K_ACTION2&amp;gt;&quot;&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/div&amp;gt;]}

th.FULLNAME2 [&amp;lt;th nowrap align=&quot;left&quot;&amp;gt;&amp;lt;#H=NAME&amp;gt;&amp;lt;/th&amp;gt;]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But now when i try to Save, i'm getting error says: &lt;strong&gt;DS&lt;em&gt;ActiEdit&lt;/em&gt;0_Acti: Field 'Acti-MAIN' not found&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Please let me know you advises and suggestions.&lt;/p&gt;

&lt;p&gt;Best Regards.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1006/actiacti-activation-on-efficy-2014</guid>
<pubDate>Thu, 10 Dec 2015 14:24:28 +0000</pubDate>
</item>
</channel>
</rss>