<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions in Major bug fixes</title>
<link>https://overflow.efficy.io/?qa=questions/developers/bug-fixes/major-bug-fixes</link>
<description>Powered by Question2Answer</description>
<item>
<title>10.2.8930: Bug in globals OpenEdit and ParseDuration due to windowManager introduction</title>
<link>https://overflow.efficy.io/?qa=2232/globals-openedit-parseduration-windowmanager-introduction</link>
<description>&lt;p&gt;Efficy 10.2 re-introduces the &lt;strong&gt;window manager&lt;/strong&gt; to store and restore the size of opened windows. Related to these changes, two issues have been identified.&lt;/p&gt;

&lt;p&gt;The patch code below can be applied to your 10.2 release to fix them:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One:&lt;/strong&gt;  Opening a second edit window for the same entity (e.g. appointment) is not possible. The focus is forwarded to the first opened window of the same entity. Below the fixed standard function.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function OpenEdit(Page, Entity, Key, Action, ExtraParam) {
    var URL = &quot;edit?page=&quot; + Page + &quot;&amp;amp;entity=&quot; + Entity + &quot;&amp;amp;key=&quot; + Key + &quot;&amp;amp;action=&quot; + EscapeName(Action)
    if (ExtraParam) URL += &quot;&amp;amp;&quot; + ExtraParam;
    if (Key === 0)
           Key = '0' + GetRandom();
    var wnd = OpenNewWindow('Edit' + Entity + Key, URL, 1014, 0, '', true);
    return wnd
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Two:&lt;/strong&gt; In some situations, the task duration was not correctly translated to a number. &lt;/p&gt;

&lt;p&gt;Replace this code snippet in standard&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function ParseDuration(val) {
                if (val == &quot;&quot;) return 0
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;with&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function ParseDuration(val) {
    // Only parse duration text, not number
    if (!isNaN(val)) return +val;
    if (val.trim() === '') return 0;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;We will continue to use this category for future known issues&lt;/p&gt;
</description>
<category>10.2.8930</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2232/globals-openedit-parseduration-windowmanager-introduction</guid>
<pubDate>Fri, 27 Jan 2017 11:47:26 +0000</pubDate>
</item>
<item>
<title>R6640 - Actions not displayed in the Agenda</title>
<link>https://overflow.efficy.io/?qa=888/r6640-actions-not-displayed-in-the-agenda</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;After an upgrade from R6100 to R6640, the actions are not displayed in the agenda.&lt;/p&gt;

&lt;p&gt;This is due to the fact that some data that were previously in the table ACTIONS need to be on the table ACTI_USER.&lt;/p&gt;

&lt;p&gt;To move this data from the table ACTIONS to ACTI_USER, you need to execute a query :&lt;/p&gt;

&lt;p&gt;For SQL SERVER (to execute in SQL Server Management Studio) :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;UPDATE au
SET 
    P_D_BEGIN = cast(a.D_BEGIN as int) + 1, 
    P_D_END =  cast(a.D_END as int) + 1, 
    ISAGENDA = (SELECT
    CASE 
        WHEN a.PLANNED = '1' AND au.ISACTIVE = '1' AND (au.STATUS IS NULL OR au.STATUS IN ('', '0', '2', '3', '5', '6')) 
        THEN '1' 
        ELSE '0' 
    END)
FROM
 [Admin].ACTI_USER au
LEFT JOIN 
 [Admin].ACTIONS a ON a.K_action = au.k_action;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;For Oracle (to execute in SQL Developer):&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;DECLARE 

TYPE T_ROWID_ARRAY IS TABLE OF ROWID; 

CURSOR C_ACTI_USER IS 

SELECT ROWID 

FROM ACTI_USER 

WHERE P_D_BEGIN IS NULL; 

V_ROWID_ARRAY T_ROWID_ARRAY; 

V_LIMIT NUMBER := 1000; 

BEGIN 

OPEN C_ACTI_USER; 

LOOP 

FETCH C_ACTI_USER BULK COLLECT 

INTO V_ROWID_ARRAY 

LIMIT V_LIMIT; 

FORALL I IN 1 .. V_ROWID_ARRAY.COUNT 

UPDATE ACTI_USER 

SET 

P_D_BEGIN = (SELECT to_number(to_char(D_BEGIN, 'j')) - 2415019 FROM ACTIONS WHERE K_ACTION=ACTI_USER.K_ACTION), 

P_D_END = (SELECT to_number(to_char(D_end, 'j')) - 2415019 FROM ACTIONS WHERE K_ACTION=ACTI_USER.K_ACTION), 

ISAGENDA = 

(SELECT 

CASE 

WHEN ACTIONS.PLANNED = '1' AND ACTI_USER.ISACTIVE = '1'  AND (ACTI_USER.STATUS IS NULL OR ACTI_USER.STATUS IN ('', '0', '2', '3', '5', '6')) 

THEN '1' 

ELSE '0' 

END CASE 

FROM ACTIONS 

JOIN ACTI_USER ON ACTIONS.K_ACTION = ACTI_USER.K_ACTION 

and acti_user.rowid = V_ROWID_ARRAY(I)) 

WHERE 

ROWID = V_ROWID_ARRAY(I); 

COMMIT; 

EXIT WHEN C_ACTI_USER%NOTFOUND; 

END LOOP; 

CLOSE C_ACTI_USER; 


END; 

/ 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Geoffrey&lt;/p&gt;
</description>
<category>2014 - r6640</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=888/r6640-actions-not-displayed-in-the-agenda</guid>
<pubDate>Thu, 22 Oct 2015 09:57:09 +0000</pubDate>
</item>
<item>
<title>R6640 : Is there a way to import 5min meeting in the timesheet</title>
<link>https://overflow.efficy.io/?qa=848/r6640-is-there-a-way-to-import-5min-meeting-in-the-timesheet</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;We have a client in 2012 summer with a custom allowing him to import 5 minutes meeting in his timesheet. This client want a migration to the 2014. Is it possible to do the same custom in 2014 build 6640? I tried this morning and wasnt successful, we can import 10 minutes meeting but the duration is rounded to 15. I of course tried with 5 minutes meeting but it doesn't import at all.&lt;/p&gt;

&lt;p&gt;Thanks in advance,&lt;/p&gt;

&lt;p&gt;Stéphane Xerri&lt;/p&gt;
</description>
<category>2014 - r6100 (+ r6099)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=848/r6640-is-there-a-way-to-import-5min-meeting-in-the-timesheet</guid>
<pubDate>Thu, 15 Oct 2015 14:00:22 +0000</pubDate>
</item>
<item>
<title>Conficy : Add Language and Add External Key (all 2014 versions &lt;= R6100)</title>
<link>https://overflow.efficy.io/?qa=522/conficy-add-language-and-add-external-key-2014-versions-r6100</link>
<description>&lt;p&gt;Dear Efficy Developers,&lt;/p&gt;

&lt;p&gt;In every Efficy versions &amp;lt;=R6100, the option &quot;Add External Key Fields&quot; and &quot;Add Language Field&quot; in Conficy are bugged.&lt;/p&gt;

&lt;p&gt;This is a major issue as the process is not ending correctly and sometimes create duplicates objects in the database (so you wouldn't be able do do a Database Upgrade if this happend).&lt;/p&gt;

&lt;p&gt;Here is the fix :&lt;/p&gt;

&lt;p&gt;in conficy/pages/LookupEdit.htm, replace the functions AddLanguageField() and AddExternalKeyField by :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function AddLanguageField() {
   var LangSel = document.getElementById(&quot;LangFields&quot;)
   if (LangSel.style.display == &quot;none&quot;) {
                   LangSel.style.display = &quot;inline&quot;
                   return
   }
   var NewLanguageField = LangSel.options[LangSel.selectedIndex].value
   if (confirm(msgAddLanguageField + &quot;\n&quot; + NewLanguageField)) {
                   var URL = &quot;commitlookup?table=&amp;lt;%GetArgument('Table')%&amp;gt;&amp;amp;page=pages/DatabaseProgress.htm&quot; +
                          &quot;&amp;amp;finishbookmark=&amp;lt;%GetBookmark(ftext='')%&amp;gt;&amp;amp;action=addlanguagefield&amp;amp;field=&quot; + NewLanguageField;
                   location.href = URL;
   }
}
function AddExternalKeyField() {
   if (confirm(msgAddExternalKeyField)) {
                   var URL = &quot;commitlookup?table=&amp;lt;%GetArgument('Table')%&amp;gt;&amp;amp;page=pages/DatabaseProgress.htm&quot; +
                            &quot;&amp;amp;finishbookmark=&amp;lt;%GetBookmark(ftext='')%&amp;gt;&amp;amp;action=addexternalkeyfield&quot;;
                   location.href = URL;
   }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Geoffrey&lt;/p&gt;
</description>
<category>2014 - r6100 (+ r6099)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=522/conficy-add-language-and-add-external-key-2014-versions-r6100</guid>
<pubDate>Fri, 17 Jul 2015 13:35:51 +0000</pubDate>
</item>
<item>
<title>R6100 - Import from Timesheet not working</title>
<link>https://overflow.efficy.io/?qa=520/r6100-import-from-timesheet-not-working</link>
<description>&lt;p&gt;Dear fellow Efficy Developers,&lt;/p&gt;

&lt;p&gt;The request Agenda: Self has been optimized in order to lower the response time when displaying the Agenda, but causes troubles when importing actions from the agenda (so not for tasks) in the Timesheet (it just doesn’t work anymore because one value is not gathered).&lt;/p&gt;

&lt;p&gt;So we need to modify in the table SYS&lt;em&gt;QUERIES the SQLTEXT value for the record K&lt;/em&gt;MASTER=35 and K_DETAIL=1, and put the following value :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[Select]
ACTIONS.K_ACTION
ACTIONS.DONE
ACTIONS.D_BEGIN
ACTIONS.D_END
ACTIONS.PLANNED hidden
ACTIONS.SUBJECT
ACTIONS.D_CHANGE
ACTIONS.MODE
ACTIONS.NATURE
ACTIONS.TRAVELBEFORE
ACTIONS.TRAVELAFTER
ACTIONS.TIMEZONE
ACTIONS.TIMEZONE [TZMODIFIED]
ACTIONS.LOCATION
ACTIONS.USERS
ACTIONS.ALLDAYEVENT
ACTIONS.P_D_BEGIN hidden
ACTIONS.P_D_END hidden
ACTI_PROJ.K_PROJECT
ACTI_PROJ.MAIN hidden

[From]
ACTIONS
ACTIONS ACTI_PROJ complete

[Where]
ACTIONS.P_D_END &amp;gt;= &quot;1/1/2000&quot;
ACTIONS.P_D_BEGIN &amp;lt; &quot;2/1/2000&quot;
&amp;lt;#USERLINK table=&quot;ACTIONS&quot; usertable=&quot;ACTI_USER&quot; key=&quot;K_ACTION&quot; isactiveparam=&quot;true&quot; actionstatus=&quot;true&quot;&amp;gt;
ACTIONS.PLANNED = 1 [fixed]
ACTI_PROJ.MAIN = 1 [fixed]

[Orderby]

[Columns]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Be aware that in the next release there will be changes in the import from the Timesheet, so the field ISCUSTOM=1 should be changed to ISCUSTOM=0 just before the next Database Upgrade.&lt;/p&gt;

&lt;p&gt;Geoffrey&lt;/p&gt;
</description>
<category>2014 - r6100 (+ r6099)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=520/r6100-import-from-timesheet-not-working</guid>
<pubDate>Fri, 17 Jul 2015 13:05:43 +0000</pubDate>
</item>
<item>
<title>Bug on Relation Edit with IE 11 on R6099 and R6100</title>
<link>https://overflow.efficy.io/?qa=497/bug-on-relation-edit-with-ie-11-on-r6099-and-r6100</link>
<description>&lt;p&gt;Dear Efficy Developers/Partners,&lt;/p&gt;

&lt;p&gt;I post this on the Overflow to inform the Efficy Developers that on the build R6099 and R6100 there is a bug on IE that make impossible to edit a relation.&lt;/p&gt;

&lt;p&gt;Here is the fix :&lt;/p&gt;

&lt;p&gt;Add in custom.js :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/* FIX - TO BE DELETED ON A BUILD &amp;gt; R6100 */ 
function EditRelation(Page, Entity, Key, Detail, DetailKey) {
                var URL = &quot;edit?page=&quot; + Page + &quot;&amp;amp;action=RefreshOpener()&amp;amp;entity=&quot; + Entity + &quot;&amp;amp;key=&quot; + Key + &quot;&amp;amp;detail=&quot; + Detail + &quot;&amp;amp;detailkey=&quot; + DetailKey
                var Test = IsSearchWindow || Relocating;
                var Opener = (Test &amp;amp;&amp;amp; OpenerExists()) ? top.opener : window;
                var wnd = Opener.OpenNewWindow(Entity + Detail + &quot;Edit&quot;, URL, 600, 400, &quot;Edit&quot; + Entity + Key + Detail + DetailKey, true)
                if (Test)
                               CloseTopWindow()
}

/* END FIX*/
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;NB : this does NOT applies to ASP customers as this fix has been modified directly in the standard file (Efficy.js) on ASP.&lt;/p&gt;

&lt;p&gt;Geoffrey&lt;/p&gt;
</description>
<category>2014 - r6100 (+ r6099)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=497/bug-on-relation-edit-with-ie-11-on-r6099-and-r6100</guid>
<pubDate>Tue, 07 Jul 2015 09:46:56 +0000</pubDate>
</item>
</channel>
</rss>