<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged efficy-10</title>
<link>https://overflow.efficy.io/?qa=tag/efficy-10</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to manage relationships in a custom HTML page</title>
<link>https://overflow.efficy.io/?qa=5152/how-to-manage-relationships-in-a-custom-html-page</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm currently developing a custom Edit Window for Contact that will be opened when clicking on Edit button in the Consult mode.&lt;br&gt;
I have created a custom html page to handle the fields to be displayed. &lt;/p&gt;

&lt;p&gt;The issue is that I cannot properly execute any functions that are being triggered by the data-msg property through the CommandPublisher.js.&lt;br&gt;
What do I need to do in order for the relationships(right side of the edit window) to function well in a custom HTML page?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br&gt;
Marvin&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5152/how-to-manage-relationships-in-a-custom-html-page</guid>
<pubDate>Wed, 18 Dec 2019 09:21:37 +0000</pubDate>
</item>
<item>
<title>How to manage search in the entitypicker inside a custom HTML page</title>
<link>https://overflow.efficy.io/?qa=5153/how-manage-search-the-entitypicker-inside-custom-html-page</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I have created a custom edit html and I have integrated the EntityPicker.&lt;br&gt;
The problem is that I cannot use the search functionality of the EntityPicker and what is only working in the EntityPicker is the Recent tab.&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5153/how-manage-search-the-entitypicker-inside-custom-html-page</guid>
<pubDate>Wed, 18 Dec 2019 09:21:35 +0000</pubDate>
</item>
<item>
<title>Use entity table as a lookup</title>
<link>https://overflow.efficy.io/?qa=4511/use-entity-table-as-a-lookup</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Is it possible to define a lookup field on an entity table (for example K_LOOKUPFIELD=10000 for COMPANIES), and to filter the results ?&lt;/p&gt;

&lt;p&gt;On CompEdit I need to have a lookup field to choose another company :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The field will contain the key of the selected company&lt;/li&gt;
&lt;li&gt;Only Companies with 'F_GROUPE=1' can be selected, so I need to filter&lt;br&gt;
the lookup result&lt;/li&gt;
&lt;li&gt;This field can be used in QUERIES and display the name of the&lt;br&gt;
selected company (same on the CompEdit form)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I tried but I use two fields...&lt;br&gt;
The first one :&lt;br&gt;
F&lt;em&gt;MEMBRE&lt;/em&gt;GROUPE, used on the CompEdit form with the definition below&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=8515594803348119222&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;field.LOOKUP_MEMBRE_GROUP{[
    &amp;lt;%RunQuery(id='getGroup', store='1', sql='SELECT K_COMPANY, NAME FROM &amp;lt;#TABLE NAME=&quot;COMPANIES&quot;&amp;gt; WHERE F_GROUPE = 1')%&amp;gt;

    &amp;lt;%GetDataGrid(query=&quot;getGroup&quot;, count=-1, TemplateText=&quot;&amp;lt;select name='F_MEMBRE_GROUPE' id='F_MEMBRE_GROUPE'&amp;gt;
        &amp;lt;option value='0' selected&amp;gt;&amp;lt;/option&amp;gt;
        &amp;lt;#repeat&amp;gt;
        &amp;lt;option value='&amp;lt;#F=K_COMPANY&amp;gt;' &amp;lt;%OnField('F_MEMBRE_GROUPE', value='&amp;lt;#F=K_COMPANY&amp;gt;', then='selected')%&amp;gt; &amp;gt;&amp;lt;#F=NAME&amp;gt;&amp;lt;/option&amp;gt;
        &amp;lt;/#repeat&amp;gt;
    &amp;lt;/select&amp;gt;&quot;
    )%&amp;gt;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The second one : V_CENTRAL, used in QUERY and view (on the right) :&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=10537936421406913655&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;update SYS_FIELDS set
NAME='V_CENTRALE',
DATATYPE='A',
DATALENGTH=255,
USAGE='P',
LOOKUPASSOCIATE='=select NAME from COMPANIES cent where cent.K_COMPANY=COMPANIES.F_MEMBRE_GROUPE'
where K_TABLE=10000 and K_FIELD=308
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Thanks! :)&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4511/use-entity-table-as-a-lookup</guid>
<pubDate>Thu, 04 Jul 2019 10:26:25 +0000</pubDate>
</item>
<item>
<title>Announcement: COM+ Server patch for Efficy 11, 10, 2014 and 2012 to correct important security issue</title>
<link>https://overflow.efficy.io/?qa=4441/announcement-server-patch-efficy-correct-important-security</link>
<description>&lt;p&gt;Recently an important security issue was identified that impacts all known Efficy versions. The issue is related to inline SQL parameters that could allow an Efficy user to run unwanted update or delete statement in the database.&lt;/p&gt;

&lt;p&gt;In recognition of the severity of this problem we have decided to release patches for the COM+ server for Efficy releases since 2012.&lt;/p&gt;

&lt;p&gt;The following patched COM+ servers have been made available on the FTP server:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Efficy 11.2 EfficyServer 11.2.17771.dll&lt;/li&gt;
&lt;li&gt;Efficy 11.1 EfficyServer 11.1.17772.dll&lt;/li&gt;
&lt;li&gt;Efficy 11.0 EfficyServer 11.0.17773.dll&lt;/li&gt;
&lt;li&gt;Efficy 10 SP2+ DServerDll 10.2.17791.dll&lt;/li&gt;
&lt;li&gt;Efficy 10 SP1 DServerDll 10.1.17790.dll&lt;/li&gt;
&lt;li&gt;Efficy 10 DServerDll 10.0.17792.dll&lt;/li&gt;
&lt;li&gt;Efficy 2014 (6640) DServerDll 8.0.17794.dll&lt;/li&gt;
&lt;li&gt;Efficy 2012 Summer DServerDll 7.0.17793.dll&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We strongly recommend installing these patches on all production servers as soon as possible.&lt;br&gt;
We apologize for the inconvenience.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br&gt;
Robert&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4441/announcement-server-patch-efficy-correct-important-security</guid>
<pubDate>Tue, 11 Jun 2019 14:21:03 +0000</pubDate>
</item>
<item>
<title>&quot;Duplicate(s) found&quot; notification stuck in SYS_MAILS - how to change recipient</title>
<link>https://overflow.efficy.io/?qa=4082/duplicate-found-notification-sysmails-change-recipient</link>
<description>&lt;p&gt;HI all,&lt;/p&gt;

&lt;p&gt;I just found out that quite a  bunch of emails got stuck in SYS_MAILS, because of a recipient that has no email address. The efficy mail dispatcher had to wait until those emails got deleted...&lt;/p&gt;

&lt;p&gt;Those emails were created by the DoubleFinder.&lt;br&gt;
Here is the question: How does the DoubleFinder determine the recipient and can I change this behaviour?&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

&lt;p&gt;Tim&lt;/p&gt;
</description>
<category>Other</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4082/duplicate-found-notification-sysmails-change-recipient</guid>
<pubDate>Wed, 03 Apr 2019 07:25:41 +0000</pubDate>
</item>
<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>
<item>
<title>fixed headers in Timesheet</title>
<link>https://overflow.efficy.io/?qa=3419/fixed-headers-in-timesheet</link>
<description>&lt;p&gt;Did anyone already made the headers in the timesheet fixed so that column names like &quot;Project&quot; &quot;Subject&quot; etc stay on top when scrolling through the timesheet ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3419/fixed-headers-in-timesheet</guid>
<pubDate>Thu, 26 Jul 2018 09:13:06 +0000</pubDate>
</item>
<item>
<title>How to return K_MAIL when using sendExternalMail()</title>
<link>https://overflow.efficy.io/?qa=3388/how-to-return-kmail-when-using-sendexternalmail</link>
<description>&lt;p&gt;Hi all,&lt;br&gt;
I would like to do something the the newly created email in efficy 10 when I use sendExternalMail() ( - and sendMailToUsers() if also possible).&lt;br&gt;
How can I determine K_MAIL? The online docu offers nothing.&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

&lt;p&gt;Tim&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3388/how-to-return-kmail-when-using-sendexternalmail</guid>
<pubDate>Thu, 12 Jul 2018 10:49:39 +0000</pubDate>
</item>
<item>
<title>How to add an edit context into CONT_USER and COMP_USER to use the USERROLE field.</title>
<link>https://overflow.efficy.io/?qa=3207/how-add-edit-context-into-contuser-compuser-userrole-field</link>
<description>&lt;p&gt;I need to define by a level of proximity my relations between CONT and USER or COMP and USER by using The USERROLE Field.&lt;/p&gt;

&lt;p&gt;I try to do it into an OpenEditContextRelation2 but this context doesn't exist it return an error EntityView='' &lt;/p&gt;

&lt;p&gt;Below a part of my dataSynchro where i try to edit relation between ntComp and ntUser.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;      var Target = 11 // Cont
      var Detail = 1; // Cont_user
      var Key = K_CONTACT
      var DetailKey = 0
      if(!isEmpty(DataStore.AsString('Proxim'))){

    DetailKey = 4  // User--&amp;gt; K_USER 4   

    var EditHandle = Database.OpenEditContextRelation2(Target, Detail, Key, DetailKey)

     try {
     var DataSet = Database.GetMasterDataSet(EditHandle, 0)

    DataSet.Edit()

    SQL = &quot;SELECT K_CONT_USERROLE FROM &amp;lt;#TABLE NAME='LK_CONT_USERROLE'&amp;gt; WHERE USERROLE = :Param&quot;; 

    Database.UpdateFields(EditHandle, 0, 'USERROLE', GetLookupKeyFromQuery(SQL,     DataStore.AsString('Proximité MAN'), 'K_CONT_USERROLE') );

    Database.CommitChanges(EditHandle, false)
     }catch(e){

     Database.log(e.message)
    }
    finally
     {
    Database.CloseContext(EditHandle)
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I need of course to be able to change relation on the Edit context of each Entity. Comp and Cont.&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3207/how-add-edit-context-into-contuser-compuser-userrole-field</guid>
<pubDate>Tue, 29 May 2018 09:45:31 +0000</pubDate>
</item>
<item>
<title>Efficy10: Export to Excel a MultiValue field ?</title>
<link>https://overflow.efficy.io/?qa=3181/efficy10-export-to-excel-a-multivalue-field</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;A customer find that when he export a multivalue field from an Efficy Query, the excel file shows the key values ';20;21;' instead of the values of the lookup 'Retail, Office'&lt;/p&gt;

&lt;p&gt;I check the code inside the DialogExcel.htm but only find that the Export is done from a GetDataGrid&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;%GetDataGrid(queryhandle=&quot;%%GetArgument('queryhandle')&quot;, xls=true, translate=true)%&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Is there any way to have a Patch or a Correction to this behaviour ?&lt;/p&gt;

&lt;p&gt;PS: The query result windows is showing the correct value 'Retail, Office' so it seems it is something in the GetDataGrid&lt;/p&gt;

&lt;p&gt;PS2: I know that this Excel Export has been completely reviewed in Efficy 11 and I tested it and it work for Multivalue fields, but cannot upgrade the customer the GoLive date is very close.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3181/efficy10-export-to-excel-a-multivalue-field</guid>
<pubDate>Fri, 25 May 2018 10:32:45 +0000</pubDate>
</item>
<item>
<title>How can we save changes from an edit form before starting a serverscript with $.ajax</title>
<link>https://overflow.efficy.io/?qa=3099/save-changes-from-edit-form-before-starting-serverscript-with</link>
<description>&lt;p&gt;We need the updated (saved) data of the client form in our serverscript, therefore a &lt;code&gt;CebPerform('CEB_APPLY')&lt;/code&gt; is programmatically executed for launching the serverscript.&lt;br&gt;
The serverscript will be started and finished successfully, but the callback success function is NOT triggered.&lt;/p&gt;

&lt;p&gt;How we can fix this?&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;CebPerform('CEB_APPLY');
var scriptFile = &quot;serverscripts/test.js&quot;
    var scriptFunc = &quot;TestServerScript&quot;
    var URL = &quot;dialog?_macrofile=MacroAjax&amp;amp;_macro=RunScript&amp;amp;File=&quot; + scriptFile + &quot;&amp;amp;Func=&quot; + scriptFunc + &quot;&amp;amp;key=&quot; + Model('key') + &quot;&amp;amp;entity=&quot; + Model('entity') + &quot;&amp;amp;editHandle=&quot; + Model('editHandle');
$.ajax({
    url: URL,
    type: &quot;GET&quot;,
    //data: ExtraParams,
    success:
    function (html, textStatus, jqXHR) {
        // this is never reached ?!
        alert(&quot;Back:&quot; + html)
        if (IsNotEfficyErrorHtml(html, function (errorMsg) {
                alert(errorMsg)
            })) {
            CebPerform('CEB_STATE');
        }
    }
})
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3099/save-changes-from-edit-form-before-starting-serverscript-with</guid>
<pubDate>Thu, 26 Apr 2018 12:36:24 +0000</pubDate>
</item>
<item>
<title>use lookup traduction field  in templates</title>
<link>https://overflow.efficy.io/?qa=3067/use-lookup-traduction-field-in-templates</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Is there a standard way to use the traduction lookup field  (&lt;code&gt;VALUE_FR&lt;/code&gt;, &lt;code&gt;VALUE_NL&lt;/code&gt;, etc) in templates, depending on LANGUAGE field in template.&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3067/use-lookup-traduction-field-in-templates</guid>
<pubDate>Thu, 12 Apr 2018 13:46:18 +0000</pubDate>
</item>
<item>
<title>[Efficy 10] Image in template received by HTTP request</title>
<link>https://overflow.efficy.io/?qa=3021/efficy-10-image-in-template-received-by-http-request</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I have to add an image into a template which is received by HTTP request (post) from a serverscript. I don't find any way to append it on .rtf template.&lt;/p&gt;

&lt;p&gt;When the request is done, I save the image on HDD (I didn't found an other way to save the binary, if you have something, I take!) and now, I should add this image on template.&lt;/p&gt;

&lt;p&gt;How can I do it, please ?&lt;br&gt;
Thanks for your help,&lt;/p&gt;

&lt;p&gt;Best regards.&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3021/efficy-10-image-in-template-received-by-http-request</guid>
<pubDate>Tue, 03 Apr 2018 07:04:18 +0000</pubDate>
</item>
<item>
<title>is there a way to fix button position in DesktopEntitiesButtonsList</title>
<link>https://overflow.efficy.io/?qa=3012/there-way-fix-button-position-desktopentitiesbuttonslist</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I would like to fixe the position of button in DesktopEntitiesButtonsList &lt;br&gt;
So don't put the last used or the more used on top of the list, just keep the same position of each button in the list anytime.&lt;/p&gt;

&lt;p&gt;in Efficy 2012 we had a syntaxe with ;-; but i don't remember yet what that do exactly and if we can use it to fix the ordre of the button anytime.&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3012/there-way-fix-button-position-desktopentitiesbuttonslist</guid>
<pubDate>Thu, 29 Mar 2018 15:02:54 +0000</pubDate>
</item>
<item>
<title>Best way to launch Modal Window on logon in Efficy when specific conditions are fullfilled</title>
<link>https://overflow.efficy.io/?qa=3007/launch-modal-window-efficy-specific-conditions-fullfilled</link>
<description>&lt;p&gt;Which is technically the best way to launch Modal Window on logon in Efficy when specific conditions are fullfilled to &quot;block&quot; the user with the message that they need to acknowledge?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3007/launch-modal-window-efficy-specific-conditions-fullfilled</guid>
<pubDate>Wed, 28 Mar 2018 08:26:04 +0000</pubDate>
</item>
<item>
<title>How to remove security using Efficy Functions serverside?</title>
<link>https://overflow.efficy.io/?qa=2991/how-to-remove-security-using-efficy-functions-serverside</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;From a workflow script I try to remove securities from specified users.&lt;/p&gt;

&lt;p&gt;The documentation says that RemoveUsers only affect visible Users so it s not what I need.&lt;br&gt;
I ve try to calculate the Users I want to keep in securities and apply a SetSecurityUsers because the documentation told me that the other users will be removed from security but this doesn't work either in Efficy SP2+ &lt;br&gt;
I ve try to used a custom storedProcedure to delete the Comp_User records, but this doesn't refresh my ContextHandle so basically it s not the good behaviour either.&lt;/p&gt;

&lt;p&gt;Basically I just want to know how to remove a user from the securities of a record...&lt;/p&gt;

&lt;p&gt;Please help.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2991/how-to-remove-security-using-efficy-functions-serverside</guid>
<pubDate>Thu, 22 Mar 2018 15:48:57 +0000</pubDate>
</item>
<item>
<title>field validation before submit: not a function</title>
<link>https://overflow.efficy.io/?qa=2971/field-validation-before-submit-not-a-function</link>
<description>&lt;p&gt;Hi!&lt;/p&gt;

&lt;p&gt;On the entitie Opportunity I want to validate custom fields before save/apply change in Edit form.&lt;/p&gt;

&lt;p&gt;I do it like this:&lt;br&gt;
&lt;strong&gt;FormFieldsEditCustom.txt:&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;label.CESURE {[&amp;lt;dd&amp;gt;Cesure&amp;lt;/dd&amp;gt;]}
field.CESURE {[&amp;lt;%GetEdit(&quot;$FIELD$&quot;, constraint=&quot;ComputePercent('$FIELD$')&quot;)%&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;MacroEditSCustom.txt:&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;JsScriptsTRW.Oppo {[
&amp;lt;script&amp;gt;
//Other efficy methods
    function ComputePercent(callField){
        console.log(callField);
        /**
         * callField = field name that called the function
         * values : F_CESURE1, F_CESURE2, F_CESURE3, F_CESURE4
         */

        //if value is negative --&amp;gt; err
        if(document.getElementById(callField).value&amp;lt;0){
            alert(callField+ &quot; n'admet pas de valeur négative&quot;);
            document.getElementById(callField).value = Model(callField);
            return false;
        }
        return true;
    }
&amp;lt;/script&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

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

&lt;pre&gt;&lt;code&gt;JsonEditModelCustom.Oppo {[
    ,&quot;F_CESURE1&quot;: &quot;&amp;lt;%GetField(F_CESURE1)%&amp;gt;&quot;
    ,&quot;F_CESURE2&quot;: &quot;&amp;lt;%GetField(F_CESURE2)%&amp;gt;&quot;
    ,&quot;F_CESURE3&quot;: &quot;&amp;lt;%GetField(F_CESURE3)%&amp;gt;&quot;
    ,&quot;F_CESURE4&quot;: &quot;&amp;lt;%GetField(F_CESURE4)%&amp;gt;&quot;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In my Edit form I have 4 field (F&lt;em&gt;CESURE1, F&lt;/em&gt;CESURE2, F&lt;em&gt;CESURE3, F&lt;/em&gt;CESURE4) with the definition &quot;CESURE&quot;. When I click on &quot;save&quot; or &quot;apply&quot; button, the first field works good, but the second throw the excpetion below in the console:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Uncaught TypeError: ComputePercent(...) is not a function&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Can anyone explain me why ?&lt;br&gt;
These fields are a percentage, how can I check if their sum = 100 when I click on &quot;save&quot; or &quot;apply&quot;&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2971/field-validation-before-submit-not-a-function</guid>
<pubDate>Mon, 12 Mar 2018 10:25:45 +0000</pubDate>
</item>
<item>
<title>Explain Session Timout handling</title>
<link>https://overflow.efficy.io/?qa=2933/explain-session-timout-handling</link>
<description>&lt;p&gt;Under which circumstances is a user not able to log back into efficy while his session is still valid?&lt;br&gt;
We often (everyday) have the cases where users left their efficy and return within the seession time and are blocked.&lt;/p&gt;

&lt;p&gt;Our settings: &lt;br&gt;
Allow IP Switching: Yes&lt;br&gt;
Use Files Caching: Yes&lt;br&gt;
Active debug mode: no&lt;br&gt;
Session Timeout: 120&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

&lt;p&gt;Tim&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2933/explain-session-timout-handling</guid>
<pubDate>Thu, 15 Feb 2018 09:11:00 +0000</pubDate>
</item>
<item>
<title>Opening windows with standard custom view selected</title>
<link>https://overflow.efficy.io/?qa=2917/opening-windows-with-standard-custom-view-selected</link>
<description>&lt;p&gt;Has anyone already made a custom to open for example the search window for products from a Opportunity &lt;strong&gt;with a specific custom view selected (always)&lt;/strong&gt;?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2917/opening-windows-with-standard-custom-view-selected</guid>
<pubDate>Thu, 08 Feb 2018 09:15:36 +0000</pubDate>
</item>
<item>
<title>Create a lookup table from scripts</title>
<link>https://overflow.efficy.io/?qa=2879/create-a-lookup-table-from-scripts</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;To install a custom module to an other base I have to create lookup tables in the new base. &lt;br&gt;
Since the dbstaging doesn't work fine in this context (the iscustom field is not taken into consideration plus the keygen is not managed by this tool and since in the new base the Key of the lookup table is not the same)&lt;/p&gt;

&lt;p&gt;I had to make it work so this is the script I finally used. Please note that The keygen will works now, plus the ISCUSTOM field issue has been fixed as well.&lt;/p&gt;

&lt;p&gt;I would recommand to perticulary look after the use of ADMIN user and schema in my code because this part is not dynamic.&lt;/p&gt;

&lt;p&gt;NB: I chose to ignore the sys label of my table since it's a configuration table&lt;/p&gt;

&lt;p&gt;So far it works fine (on MSSQL) cheers,&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;EXECUTE AS USER = 'ADMIN'

create table LK_DP_HYPERLINKS (
    K_DP_HYPERLINKS INTEGER NOT NULL,
    K_SORT INTEGER NULL,
    K_LABEL INTEGER NULL,
    DISABLED VARCHAR(1) NOT NULL DEFAULT '0',
    F_VALUE NVARCHAR(128) NULL,
    F_URL NVARCHAR(255) NULL,
    F_SECURITY NVARCHAR(32) NULL, constraint PKLK_DP_HYPERLINKS Primary Key (K_DP_HYPERLINKS)
)

declare @K1 float
exec admin.GETNEWKEY @FIELDNAME = 'K_TABLE', @NEWIDVAL = @K1 OUTPUT

Insert into ADMIN.SYS_TABLES (K_TABLE, NAME, D_CREATE, D_CHANGE, KIND, K_LABEL, RANKING, D_REPLIC, K_REPLICUSER, ISCUSTOM) values (@K1, 'LK_DP_HYPERLINKS', GETDATE(), GETDATE(), 'L', NULL, '0', GETDATE(), 0, '1')

   Insert into ADMIN.SYS_FIELDS (K_TABLE, K_FIELD, NAME, D_CREATE, D_CHANGE, DATATYPE, DBALLOWNULL, USAGE, ALLOWNULL, LABELPOS, SEARCH, QUERY, PUBLISH, D_REPLIC, K_REPLICUSER, ISCUSTOM) values (@K1, 1, 'K_DP_HYPERLINKS', getdate(), getdate(), 'I', '0', 'K', '0', 0, '0', '1', '0', getdate(), 0, '1')
Insert into ADMIN.SYS_FIELDS (K_TABLE, K_FIELD, NAME, D_CREATE, D_CHANGE, DATATYPE, DBALLOWNULL, ALLOWNULL, LABELPOS, SEARCH, QUERY, PUBLISH, D_REPLIC, K_REPLICUSER, ISCUSTOM) values (@K1, 2, 'K_SORT', getdate(), getdate(), 'I', '1', '1', 0, '0', '1', '0', getdate(), 0, '1')
Insert into ADMIN.SYS_FIELDS (K_TABLE, K_FIELD, NAME, D_CREATE, D_CHANGE, DATATYPE, DBALLOWNULL, ALLOWNULL, LABELPOS, SEARCH, QUERY, PUBLISH, D_REPLIC, K_REPLICUSER, ISCUSTOM) values (@K1, 3, 'K_LABEL', getdate(), getdate(), 'I', '1', '1', 0, '0', '1', '0', getdate(), 0, '1')
Insert into ADMIN.SYS_FIELDS (K_TABLE, K_FIELD, NAME, D_CREATE, D_CHANGE, DATATYPE, DBDEFAULT, DBALLOWNULL, DEFAULTVALUE, ALLOWNULL, LABELPOS, SEARCH, QUERY, PUBLISH, D_REPLIC, K_REPLICUSER, ISCUSTOM) values (@K1, 4, 'DISABLED', getdate(), getdate(), 'L', '0', '0', '0', '0', 0, '0', '1', '0', getdate(), 0, '1')
Insert into ADMIN.SYS_FIELDS (K_TABLE, K_FIELD, NAME, D_CREATE, D_CHANGE, DATATYPE, DATALENGTH, DBALLOWNULL, ALLOWNULL, LABELPOS, SEARCH, QUERY, PUBLISH, D_REPLIC, K_REPLICUSER, ISCUSTOM) values (@K1, 1924, 'F_VALUE', getdate(), getdate(), 'A', 128, '1', '0', 0, '0', '1', '0', getdate(), 0, '1')
Insert into ADMIN.SYS_FIELDS (K_TABLE, K_FIELD, NAME, D_CREATE, D_CHANGE, DATATYPE, DATALENGTH, DBALLOWNULL, ALLOWNULL, LABELPOS, SEARCH, QUERY, PUBLISH, D_REPLIC, K_REPLICUSER, ISCUSTOM) values (@K1, 1925, 'F_URL', getdate(), getdate(), 'A', 255, '1', '0', 0, '0', '1', '0', getdate(), 0, '1')
Insert into ADMIN.SYS_FIELDS (K_TABLE, K_FIELD, NAME, D_CREATE, D_CHANGE, DATATYPE, DATALENGTH, DBALLOWNULL, ALLOWNULL, LABELPOS, SEARCH, QUERY, PUBLISH, D_REPLIC, K_REPLICUSER, ISCUSTOM) values (@K1, 1926, 'F_SECURITY', getdate(), getdate(), 'A', 32, '1', '0', 0, '0', '1', '0', getdate(), 0, '1')
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2879/create-a-lookup-table-from-scripts</guid>
<pubDate>Mon, 15 Jan 2018 12:08:16 +0000</pubDate>
</item>
<item>
<title>Efficy 10 R8930 - Batch printing with FileLoader ?</title>
<link>https://overflow.efficy.io/?qa=2869/efficy-10-r8930-batch-printing-with-fileloader</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;Before in Efficy 2012 we used the sidebar to prints documents something like this : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;try {
    var EfficySideBar = new ActiveXObject(&quot;DSoftSideBar.EfficySideBar&quot;);
} catch(ex) {
    alert(&quot;Efficy SideBar not installed&quot;);
    return;
}
for (var i=0; i&amp;lt;DocumentKeys.length; i++) {
    var KDOCUMENT = DocumentKeys[i];
    try {
        alert('Printing KDOCUMENT ' + KDOCUMENT)
        EfficySideBar.PrintDocuments(KDOCUMENT);
    } finally {
        EfficySideBar = null;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But this only works for Internet Explorer because of the ActiveX. So, I would like to do something similar but working to any browsers. I thought I could use the &quot;filehelper&quot; js module by using the following function ... which is not quite the same because it prints file attachments instead of the whole Efficy document, but this is the only methods I could find in the fileHelper  js module :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;print: function (fileId)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It works &quot;a bit&quot; but I have an issue.&lt;/p&gt;

&lt;p&gt;It opens each &quot;files&quot; with a specific program and try to save them each time after printing, and this doesn't work with Word because it tried to save the Normal.dot with is already in use by other word document that are also being printed ... and with some other kind of file too that needs apparently human interaction and which I would like to avoid ... we don't want any windows opening and any human interaction ... background process only.&lt;/p&gt;

&lt;p&gt;here is the code I used (most of it wasn't developped by me, but I reviewed the DialogPrint.htm page to try to make it works)&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://ivm.efficy.com/efficy.dll/dialog?page=remote/DialogOperation&amp;amp;action=view;Docu;214379&amp;amp;close=T&quot;&gt;Batch Printing Code Example&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, I could not find anywhere something that can print an Efficy document from its key without looking through all file attachments, or did I missed something somewhere ? &lt;/p&gt;

&lt;p&gt;Please advise&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2869/efficy-10-r8930-batch-printing-with-fileloader</guid>
<pubDate>Thu, 11 Jan 2018 08:25:05 +0000</pubDate>
</item>
<item>
<title>Data Synchro - Import data in multivalue field</title>
<link>https://overflow.efficy.io/?qa=2860/data-synchro-import-data-in-multivalue-field</link>
<description>&lt;p&gt;Hi all!&lt;/p&gt;

&lt;p&gt;I want to import some data in Efficy with DataSync Tool. In a Relation Table i have a multivalue field. Its choices come from the F&lt;em&gt;ROLE field of a LookUp Table (LK&lt;/em&gt;THEMROLE).&lt;br&gt;
1 | role1&lt;br&gt;
2 | role2&lt;br&gt;
...&lt;/p&gt;

&lt;p&gt;I tried to import data from an Excel file wich looks like this :&lt;br&gt;
Them.Name | Cont.FirstName | Cont.Name | THEM&lt;em&gt;CONT.F&lt;/em&gt;ROLES&lt;br&gt;
Them1 | Firstname1 | Name1 | role1;role2;role5&lt;br&gt;
...&lt;/p&gt;

&lt;p&gt;when i run  the synchro the tool throw me this exception :&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;[10:48:17.083] Error while creating or modifying destination record.&lt;br&gt;
  [10:48:17.087] Error: WKFL-2142 Error while executing Script&lt;br&gt;
  &quot;EVariantTypeCastError&quot; at line 42 char 5. Message: &quot;Could not convert&lt;br&gt;
  variant of type (Dispatch) into type (Integer)&quot;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I tried to replace the name of each role by it's id in the LookUp Table but it's the same&lt;/p&gt;

&lt;p&gt;Can anyone help me ?&lt;br&gt;
Thanks a lot&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2860/data-synchro-import-data-in-multivalue-field</guid>
<pubDate>Fri, 29 Dec 2017 10:27:56 +0000</pubDate>
</item>
<item>
<title>DataSync : find multiple contact per row</title>
<link>https://overflow.efficy.io/?qa=2851/datasync-find-multiple-contact-per-row</link>
<description>&lt;p&gt;Hi all!&lt;/p&gt;

&lt;p&gt;I have an Excel file with several contacts to import.&lt;br&gt;
Each of them can be linked to another contact (maybe not).&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Header : FIRSTNAME; NAME; [contact fields...]; managerFIRSTNAME; managerNAME
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I generated the script with DataSynchro Tool and modified it, but I can not find the 2 contacts.&lt;br&gt;
I want to :&lt;br&gt;
- search if the contact already exists (with &lt;strong&gt;FIRSTNAME&lt;/strong&gt; and &lt;strong&gt;NAME&lt;/strong&gt;), insert or update him,&lt;br&gt;
-  search if his referent exists (with &lt;strong&gt;managerFIRSTNAME&lt;/strong&gt; and &lt;strong&gt;managerNAME&lt;/strong&gt;), insert or update this one&lt;br&gt;
- and finally link the twice (to link them i have a field &quot;referent&quot; to fill and use &quot;insertDetail2&quot;).&lt;/p&gt;

&lt;p&gt;I checked &quot;&lt;em&gt;Use field to find existing record at import&lt;/em&gt;&quot; for  FIRSTNAME, NAME, managerFIRSTNAME, managerNAME&lt;br&gt;
Do I have to separate them in 2 worksheets and import them like this ? :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;select Cont.NAME,
       Cont.FIRSTNAME,
       Cont.COMPANY,
       Cont.EMAIL1,
       [...], 
       Cont.CITY,
       User.FIRSTNAME, User.LASTNAME from [Contacts$] Cont
       LEFT JOIN [Users$] User
            ON Cont.ReferentFIRSTNAME = User.FIRSTNAME
            AND Cont.ReferentLASTNAME = User.LASTNAME;
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2851/datasync-find-multiple-contact-per-row</guid>
<pubDate>Mon, 18 Dec 2017 19:37:05 +0000</pubDate>
</item>
<item>
<title>I can only import data in Relation Table with DataSync Tool</title>
<link>https://overflow.efficy.io/?qa=2826/i-can-only-import-data-in-relation-table-with-datasync-tool</link>
<description>&lt;p&gt;Hi all!&lt;/p&gt;

&lt;p&gt;I have an Excel file that contains a list of Contact with one column that says his Company&lt;br&gt;
In &lt;strong&gt;&lt;em&gt;Efficy Data&lt;/em&gt; -&amp;gt; &lt;em&gt;Impot Table&lt;/em&gt;&lt;/strong&gt;, Entity Tables do not appear, there are only Relation Tables (Acti&lt;em&gt;Case, Acti&lt;/em&gt;Comp, etc.)&lt;/p&gt;

&lt;p&gt;Anyone can say me why pls?&lt;/p&gt;

&lt;p&gt;Thanks a lot!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=8457370763225427667&quot; alt=&quot;Only Relation Table&quot;&gt;&lt;/p&gt;
</description>
<category>Other</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2826/i-can-only-import-data-in-relation-table-with-datasync-tool</guid>
<pubDate>Tue, 12 Dec 2017 10:55:48 +0000</pubDate>
</item>
<item>
<title>error after adding custom value to the model</title>
<link>https://overflow.efficy.io/?qa=2824/error-after-adding-custom-value-to-the-model</link>
<description>&lt;p&gt;Hi all!&lt;/p&gt;

&lt;p&gt;A wanted to change &quot;belgium financial buttons&quot; with others in Company:&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=700374284893068016&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;To do this, my function (that works) in consultToolsCmd.js need to access Model('F_SIRET')&lt;/p&gt;

&lt;p&gt;So I customized MacroConsultCustom.txt like that:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;//new buttons definition
ConsultCmdsTools.Comp      {[CmdMap;FindOnSocieteCom;FindOnInfogreffeFr;FindOnCorporamaCom]}

//buttons call send msg in my channel : financialFR
FindOnSocieteCom {[&amp;lt;%Macro(name=$macro$, $_more$=$more$, $class$=&quot;&quot;, $icon$=&quot;i-money&quot;, $caption$=&quot;voir sur societe.com&quot;, $msg$=&quot;financialFR;societe.com&quot;, $macro_sub_menu$=&quot;&quot;)%&amp;gt;]}
FindOnInfogreffeFr {[&amp;lt;%Macro(name=$macro$, $_more$=$more$, $class$=&quot;&quot;, $icon$=&quot;i-money&quot;, $caption$=&quot;voir sur infogreffe.fr&quot;, $msg$=&quot;financialFR;infogreffe.fr&quot;, $macro_sub_menu$=&quot;&quot;)%&amp;gt;]}
FindOnCorporamaCom {[&amp;lt;%Macro(name=$macro$, $_more$=$more$, $class$=&quot;&quot;, $icon$=&quot;i-money&quot;, $caption$=&quot;voir sur corporama.com&quot;, $msg$=&quot;financialFR;corporama.com&quot;, $macro_sub_menu$=&quot;&quot;)%&amp;gt;]}

//Add the field to the Model (my script need it)
JsonConsultModelCustom {[
        ,&quot;F_SIRET&quot;: &quot;&amp;lt;%GetField(F_SIRET,type=JSTEXT)%&amp;gt;&quot;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And finally i added a line in require.config.js&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;require.overrideModule('commands/consultToolsCmd');
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;My buttons works an Exception is thrown in Product and Contact:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Message: DS&lt;em&gt;ProdConsult&lt;/em&gt;0&lt;em&gt;Prod: Field 'F&lt;/em&gt;SIRET' not found&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I don't understand why the Exception is thrown only in these entities (an Opportunity don't have F_SIRET)..&lt;/p&gt;

&lt;p&gt;Do I have to override JsonConsultModel.Comp instead of JsonConsultModelCustom ??&lt;/p&gt;

&lt;p&gt;Thanks a lot!&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2824/error-after-adding-custom-value-to-the-model</guid>
<pubDate>Mon, 11 Dec 2017 11:51:21 +0000</pubDate>
</item>
<item>
<title>1st import script for a DataSynchro</title>
<link>https://overflow.efficy.io/?qa=2818/1st-import-script-for-a-datasynchro</link>
<description>&lt;p&gt;Hi all!&lt;/p&gt;

&lt;p&gt;I wanted to train me with scripting (import data from Excel file with Data Synchro)&lt;br&gt;
 Excel:&lt;br&gt;
Company;External ID;COMPANY;Contact external Id;FIRSTNAME;LASTNAME&lt;br&gt;
1 | COMP &amp;amp; CIE | 1 | BERNARD | A.&lt;br&gt;
1 | COMP &amp;amp; CIE | 2 | BART | B.&lt;br&gt;
2 | IKEA | 3 | ABDUL | C.&lt;br&gt;
2 | IKEA | 4 | WORLD | D.&lt;/p&gt;

&lt;p&gt;Objectives: insert this data in the DB, link the Contact to the Company, and link all these new entities to the same Publication&lt;/p&gt;

&lt;p&gt;this script&lt;br&gt;
I have some questions:&lt;br&gt;
- Does my script respect good practices&lt;br&gt;
- I have difficulties to understanding the difference between Relation (with AddLink2) and Details (with InsertDetail2). For me Detail is a &quot;type&quot; of relation&lt;br&gt;
A Detail is the sub Entity in the selected Entity right?&lt;br&gt;
- in InsertDetail2 what does the last parameter?? I don't undersand the &quot;automatically link the contact’s main company&quot;&lt;/p&gt;

&lt;p&gt;Finally, DataSync Tool thorws an Exception when i run it:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[15:52:44.744]     4 Records Found
[15:52:44.744]   Handling Record &quot;MAXIME&quot;...
[15:52:52.076] 
[15:52:52.076] *** ERROR ***
[15:52:52.076] Error while creating or modifying destination record.
[15:52:52.076] Error: WKFL-2142 Error while executing Script &quot;EOleException&quot; at line 16 char 5.
Message: &quot;SLC_Publ_Cont_750
Cannot add a new Relation

ErrorContext
=============================     
EDatabaseError 0
L'instruction INSERT est en conflit avec la contrainte FOREIGN KEY &quot;FK_PUBLICATIONS_PUBL_CONT1&quot;. Le conflit s'est produit dans la base de données &quot;TESTFORMATION&quot;, table &quot;ADMINFORMATION.PUBLICATIONS&quot;, column 'K_PUBLICATION'

Error
=============================     
EEfficyTableViewException 1116
(ENTT-1616) SLC_Publ_Cont_750
Cannot add a new Relation
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;my script:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var PUBLICATION_KEY = 2;

function EfficyImportRecord(DataStore) {
  var companyKey = DataStore.FindExistingEntity('Comp');
  var compEdit = Database.OpenEditContext(ntComp, companyKey);
  try {
    var dsComp = Database.GetMasterDataSet(compEdit, 0);
    dsComp.Edit();
    companyKey = dsComp.FieldByName('K_COMPANY').AsFloat; // Dans le cas où on crée un nouvel enregistrement, sinon la valeur était déjà initialisée par la méthode DataStore.FindExistingEntity
    dsComp.FieldByName('F_EXTERNALID').AsString = DataStore.AsString('Company External ID');
    dsComp.FieldByName('NAME').AsString = DataStore.AsString('COMPANY');

    // Pour identifier clairement les sociétés impactées par la datasynchro, la lier à une publication add-hoc
    Database.AddLink2(ntPubl, ntComp, PUBLICATION_KEY, companyKey, true);


    Database.CommitChanges(compEdit, false);
  } 
  finally
  {
    Database.CloseContext(compEdit);
  }


  var contKey = DataStore.FindExistingEntity('Cont');
  var contEdit = Database.OpenEditContext(ntCont, contKey);
  try {
    var dsCont = Database.GetMasterDataSet(contEdit, 0);
    dsCont.Edit();
    contKey = dsCont.FieldByName('K_CONTACT').AsFloat;
    dsCont.FieldByName('F_EXTERNALID').AsString = DataStore.AsString('Contact external Id');
    dsCont.FieldByName('NAME').AsString = DataStore.AsString('LASTNAME');
    dsCont.FieldByName('FIRSTNAME').AsString = DataStore.AsString('FIRSTNAME');

    Database.InsertDetail2(contEdit, ntPubl, PUBLICATION_KEY, false);  //passer false a true??
    Database.InsertDetail2(contEdit, ntComp, compKey, false);

    Database.CommitChanges(contEdit, false);
  } 
  finally
  {
    Database.CloseContext(contEdit);
  }


  return true
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Thanks a lot!&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2818/1st-import-script-for-a-datasynchro</guid>
<pubDate>Thu, 07 Dec 2017 15:30:13 +0000</pubDate>
</item>
<item>
<title>Add a new widget</title>
<link>https://overflow.efficy.io/?qa=2807/add-a-new-widget</link>
<description>&lt;p&gt;Hi all!&lt;/p&gt;

&lt;p&gt;I'm new with Efficy customization and i wanted to train with macros by adding 2 widgets to the dashboard like this:&lt;/p&gt;

&lt;p&gt;\customs\training\macros\MacroWidgetsCustom.txt&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;WidgetTemplate100 {[&amp;lt;%Macro(&quot;$MACRO$&quot;, $KEY$=100, $KIND$=&quot;Macro&quot;, $TITLE$=&quot;Top 10 Clients&quot;, 
        $ICON$=&quot;i-Comp&quot;, $COLLAPSED$=&quot;$COLLAPSE$&quot;, $SENTITY$=&quot;Comp&quot;,
        $CONFIG$=|{url:&quot;dialog?entity=Comp&amp;amp;_MACRO=First10Customers&amp;amp;_MACROFILE=MacroWidgets.txt&quot;,pollSecs:1800}|)%&amp;gt;]}

First10Customers#Comp {[
        &amp;lt;%RunQuery(id=&quot;First10CustomersQuery&quot;, store=1000, SQL=&quot;select TOP 10 K_COMPANY, NAME from R_COMPANIES where KIND = 12 order by K_COMPANY desc&quot;)%&amp;gt;
        &amp;lt;%GetDataGrid(query=&quot;First10CustomersQuery&quot;, count=-1, noheader=&quot;true&quot;, norecords=&quot;Aucune fiche&quot;, columndefs=&quot;GridColumns.txt&quot;, entity=&quot;Comp&quot;, columns=&quot;NAME{COMPANY}&quot;)%&amp;gt;
    ]}

WidgetTemplate101 {[&amp;lt;p&amp;gt;Second Widget is Here!&amp;lt;/p&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The first one works, but I can not display the second&lt;/p&gt;

&lt;p&gt;I tried to custom \dialog\WidgetsTodayCustom.htm but it's like if Efficy ignore this custom file... (these 2 lines do the same things: The first widget works but the second don't show up...)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;%Macros('WidgetTemplate7;WidgetTemplate8;WidgetTemplate9;WidgetTemplate12;WidgetTemplate17;WidgetTemplate18',$MACRO$='TodayWidgetLibraryTitle')%&amp;gt;
&amp;lt;%Macros('WidgetTemplate7;WidgetTemplate8;WidgetTemplate9;WidgetTemplate12;WidgetTemplate17;WidgetTemplate18;WidgetTemplate100;WidgetTemplate101',$MACRO$='TodayWidgetLibraryTitle')%&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Are there other places where it's defined ?&lt;/p&gt;

&lt;p&gt;Thanks a lot!&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2807/add-a-new-widget</guid>
<pubDate>Wed, 06 Dec 2017 14:59:44 +0000</pubDate>
</item>
<item>
<title>How add a tag into the document attachment list to indicate this attachement has archived</title>
<link>https://overflow.efficy.io/?qa=2784/into-document-attachment-list-indicate-attachement-archived</link>
<description>&lt;p&gt;One of my customer want to add an information into the attachement list &lt;br&gt;
Via the left menu I want to add a new entry like archive this file. Then the document will be marked as archived like into this picture.&lt;/p&gt;

&lt;p&gt;I didn't find where implement this. Any ideas ? &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=3954970644031015664&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=2784/into-document-attachment-list-indicate-attachement-archived</guid>
<pubDate>Thu, 30 Nov 2017 11:50:13 +0000</pubDate>
</item>
<item>
<title>how to get Current User Language from a serverside script</title>
<link>https://overflow.efficy.io/?qa=2783/how-to-get-current-user-language-from-a-serverside-script</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I try to get the language code of the current user in a serverscript to do something like &lt;/p&gt;

&lt;p&gt;&quot;select STATUS&lt;em&gt;&quot; + langue + &quot; from LK&lt;/em&gt;OPPO_STATUS&quot;;&lt;/p&gt;

&lt;p&gt;but if I use the Database.Language it only return &quot;9&quot;.... that seems to correspond to ... nothing...&lt;/p&gt;

&lt;p&gt;should I use a client side GetLanguage and pass the value to the server as a parameter?&lt;/p&gt;

&lt;p&gt;It sure will work but is it really the best way to do that?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2783/how-to-get-current-user-language-from-a-serverside-script</guid>
<pubDate>Thu, 30 Nov 2017 10:35:37 +0000</pubDate>
</item>
<item>
<title>BCC in SendExternalMail possible???</title>
<link>https://overflow.efficy.io/?qa=2771/bcc-in-sendexternalmail-possible</link>
<description>&lt;p&gt;SendExternalMail(SendFrom, SendTo, SendCc, Subject, Body: string; [Entity: TEntityHandle = ntNone]; [IDLinked: double = 0], SendCode: string)&lt;/p&gt;

&lt;p&gt;There is no BCC option here, is it possible to send a mail from Efficy in BCC.&lt;br&gt;
Client wants to use The Mailings to send mails to committees (from publications) and certain persons need to be put in BCC or CC&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2771/bcc-in-sendexternalmail-possible</guid>
<pubDate>Tue, 28 Nov 2017 09:57:20 +0000</pubDate>
</item>
<item>
<title>Timesheet Macro not translating $LINEID$</title>
<link>https://overflow.efficy.io/?qa=2684/timesheet-macro-not-translating-lineid</link>
<description>&lt;p&gt;For some reason my custom doesn't translate the $LINEID$ in one place although it does everywhere else... Any idea why this is possible.&lt;/p&gt;

&lt;p&gt;TimesheetNewItem translates into this :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;small-12 medium-3 hide-for-large-up columns&quot;&amp;gt;&amp;lt;label class=&quot;inline&quot; for=&quot;subject-Monday-6&quot;&amp;gt;Onderwerp&amp;lt;/label&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;small-12 medium-9 large-2 columns&quot;&amp;gt;&amp;lt;input name=&quot;_SUBJECT&quot; id=&quot;subject-Monday-6&quot; type=&quot;text&quot; placeholder=&quot;Onderwerp&quot; value=&quot;&quot; data-cmd=&quot;updateItem&quot;&amp;gt;&amp;lt;/div&amp;gt;

    &amp;lt;div class=&quot;small-12 medium-3 hide-for-large-up columns&quot;&amp;gt;&amp;lt;label class=&quot;inline&quot; for=&quot;quantity-Monday-6&quot;&amp;gt;Hoeveelheid&amp;lt;/label&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;small-12 medium-9 large-1 columns&quot;&amp;gt;&amp;lt;input name=&quot;_QUANTITY&quot; class=&quot;text-end&quot; id=&quot;quantity-Monday-6&quot; type=&quot;text&quot; placeholder=&quot;Hoeveelheid&quot; value=&quot;&quot; data-cmd=&quot;updateItem&quot;&amp;gt;&amp;lt;/div&amp;gt;

    &amp;lt;div class=&quot;small-12 medium-3 hide-for-large-up columns&quot;&amp;gt;&amp;lt;label class=&quot;inline&quot; for=&quot;duration-Monday-6&quot;&amp;gt;Duur&amp;lt;/label&amp;gt;&amp;lt;/div&amp;gt;

    &amp;lt;div class=&quot;small-12 medium-9 large-1 columns input-button&quot; autocomplete=&quot;off&quot; novalidate=&quot;T&quot;&amp;gt;
        &amp;lt;span class=&quot;button postfix i-down&quot; id=&quot;B_DURATION&quot; style=&quot;width: 15px;&quot; data-cmd=&quot;dialogDuration&quot; data-target=&quot;duration-Monday-$LINEID$&quot;&amp;gt;&amp;lt;/span&amp;gt;

        &amp;lt;div&amp;gt;
            &amp;lt;input name=&quot;_DURATION&quot; id=&quot;duration-Monday-6&quot; style=&quot;width: 80px;&quot; type=&quot;text&quot; placeholder=&quot;Duur&quot; value=&quot;&quot; data-cmd=&quot;updateItem&quot;&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;where the $LINEID$ in &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;span class=&quot;button postfix i-down&quot; id=&quot;B_DURATION&quot; style=&quot;width: 15px;&quot; data-cmd=&quot;dialogDuration&quot; data-target=&quot;duration-Monday-$LINEID$&quot;&amp;gt;&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;doesn't give a 6 where it should...&lt;br&gt;
How can this be ? It translates it fine in all other places&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2684/timesheet-macro-not-translating-lineid</guid>
<pubDate>Mon, 11 Sep 2017 10:52:13 +0000</pubDate>
</item>
<item>
<title>Force Widget to specific user(s)</title>
<link>https://overflow.efficy.io/?qa=2683/force-widget-to-specific-user-s</link>
<description>&lt;p&gt;Probably a simple one, &lt;br&gt;
but never done it before an maybe handy for everyone,&lt;/p&gt;

&lt;p&gt;How can we push a (new) widget on the dashboard of specific user(s) ?&lt;br&gt;
with an sql script maybe ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2683/force-widget-to-specific-user-s</guid>
<pubDate>Fri, 08 Sep 2017 14:48:28 +0000</pubDate>
</item>
<item>
<title>Is there a way to base64 encode a database.OpenUrl() result ?</title>
<link>https://overflow.efficy.io/?qa=2661/is-there-a-way-to-base64-encode-a-database-openurl-result</link>
<description>&lt;p&gt;Hi !&lt;/p&gt;

&lt;p&gt;Does anyone knows if there is a manner or possibility to get a http request's response encoded to a base64 string ? &lt;/p&gt;

&lt;p&gt;We have to display a captcha png (generated with captcha.net) on a guest page, but the problem is that we can see (in developer mode on browser) the ajax call done to captcha.net and this one contains credentials.&lt;/p&gt;

&lt;p&gt;I saw that there is the TMagickWand object to display images from disk, but does it work with web paths ?&lt;br&gt;
I tried something like &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;return &quot;data:image/png;base64,&quot; + database.openUrl(url, &quot;&quot;)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But it don't gives correct base64, maybe that we should use some kind of encoding on the database.openUrl(url, &quot;&quot;) result ? and then concatenate it with &quot;data:image/png;base64,&quot; ?&lt;/p&gt;

&lt;p&gt;Thank you in advance !&lt;/p&gt;

&lt;p&gt;Angel&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2661/is-there-a-way-to-base64-encode-a-database-openurl-result</guid>
<pubDate>Thu, 24 Aug 2017 20:46:38 +0000</pubDate>
</item>
<item>
<title>How would I create a new widget? Is there a how to guide?</title>
<link>https://overflow.efficy.io/?qa=2631/how-would-i-create-a-new-widget-is-there-a-how-to-guide</link>
<description>&lt;p&gt;Hi all!&lt;/p&gt;

&lt;p&gt;I need to integrate the result of a query into a new widget.&lt;br&gt;
What's the best practice to do this? There is nothing in edn!?&lt;/p&gt;

&lt;p&gt;This is what I did, but I think I am missing something here:&lt;/p&gt;

&lt;p&gt;Edit MacroWidgetsCustom.txt and add somthing like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;CustomerAnniversaries {[&amp;lt;%LoadScript(&quot;serverscripts/Global.js&quot;)%&amp;gt;                                     
    &amp;lt;%RunQuery(id=&quot;CustomerAnniversaries&quot;, store=&quot;59&quot;, SQL=&quot;exec  ADMINALS.CUSTOM_CONT_ANNIVERSARIES :p1;&quot;, Param1=&quot;%%GetUserKey()&quot;)%&amp;gt;
    &amp;lt;%GetDataGrid(query=&quot;CustomerAnniversaries&quot;, columndefs=&quot;GridColumns.txt&quot;, entity=&quot;CONT&quot;, noheader=true, count=-1, columns=&quot;SampleColumn1,SampleColumn2,SampleColumn3,SampleColumn4&quot;)%&amp;gt;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then edit:MacroDashBoardCustom.txt and add&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&amp;lt;%Macro(&quot;WidgetTemplate59&quot;, $MACRO$=&quot;TodayWidget&quot;, $COLLAPSE$=&quot;0&quot;)%&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;like &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ContainerWidgetsDefault3 {[
&amp;lt;%Macro(&quot;WidgetTemplate59&quot;, $MACRO$=&quot;TodayWidget&quot;, $COLLAPSE$=&quot;0&quot;)%&amp;gt;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&quot;Refresh Settings&quot; in Admin....&lt;/p&gt;

&lt;p&gt;Bute the Widget won't show up the the widget list ...&lt;br&gt;
What is wrong here?&lt;/p&gt;

&lt;p&gt;Thank you&lt;br&gt;
Tim&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2631/how-would-i-create-a-new-widget-is-there-a-how-to-guide</guid>
<pubDate>Wed, 26 Jul 2017 15:07:54 +0000</pubDate>
</item>
<item>
<title>include in serverscripts with this simple trick</title>
<link>https://overflow.efficy.io/?qa=2589/include-in-serverscripts-with-this-simple-trick</link>
<description>&lt;p&gt;Hi guys, &lt;/p&gt;

&lt;p&gt;sometime in serverscripts you can wish to organize your code over several serverscripts like a tools.js library by example.&lt;/p&gt;

&lt;p&gt;in almost cases you can just do the trick from your serverscripts call like : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;%LoadScript(&quot;mylib1.js;mylib2.js;myscriptfile.js&quot;)%&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;same goes for ajax calls.&lt;/p&gt;

&lt;p&gt;this does not correspond to a real include from a file so we can't just use this trick for scheduler.exe.&lt;/p&gt;

&lt;p&gt;I found a way to make an include like call from a serverscript that works in scheduler as well so please enjoy it (even if the solution is a bit obvious I never thought about that before so...)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var root = &quot;C:/inetpub/wwwroot/customs/mycustom/&quot;;
var dependencies = [
    &quot;serverscripts/mylib1.js&quot;,
    &quot;serverscripts/mylib2.js&quot;
];

for (var i=0; i&amp;lt;dependencies.length; i++){
    eval(StrLoadBinaryFile(root + dependencies[i]));
}

function myFunction(){ //-----(called by the scheduler)
    return functionFromMyLib1(); //-----(definition in mylib1.js)
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;since I havn't tested it in a workflow I can only assume that it would do the trick as well.&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=2589/include-in-serverscripts-with-this-simple-trick</guid>
<pubDate>Fri, 07 Jul 2017 08:05:16 +0000</pubDate>
</item>
<item>
<title>ZeosSession.Rollback: No Active Transaction</title>
<link>https://overflow.efficy.io/?qa=2568/zeossession-rollback-no-active-transaction</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;I have an issue with the following code on an Efficy 10 R7987 : &lt;/p&gt;

&lt;p&gt;Database.SendExternalMail(sendFrom, emailInterCom, emailDirector, subject, body, &lt;strong&gt;ntOppo, oppoKey, 'U'&lt;/strong&gt;);&lt;/p&gt;

&lt;p&gt;when it is executed I get the following error Message: &lt;em&gt;&quot;ZeosSession.Rollback: No Active Transaction&lt;/em&gt; &lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=18221185059637508915&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;if I change it by : &lt;br&gt;
Database.SendExternalMail(sendFrom, emailInterCom, emailDirector, subject, body, &lt;strong&gt;ntNone, 0&lt;/strong&gt;);&lt;/p&gt;

&lt;p&gt;I don't have the error message.&lt;/p&gt;

&lt;p&gt;this serverscript is called from the consult of the Opportunity, so the opportunity already exists ... I just want to save the External mail into Efficy ...&lt;/p&gt;

&lt;p&gt;Do any body have any idea ? &lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2568/zeossession-rollback-no-active-transaction</guid>
<pubDate>Fri, 16 Jun 2017 15:04:26 +0000</pubDate>
</item>
<item>
<title>Scheduled Workflow Window not able to display UTF-8 Characters</title>
<link>https://overflow.efficy.io/?qa=2547/scheduled-workflow-window-not-able-display-utf-characters</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;I don't want to believe it, but it looks as the Scheduled Workflow window is not able to display non latin characters :-/&lt;/p&gt;

&lt;p&gt;Am I mistaken or is this a bug/feature?&lt;/p&gt;

&lt;p&gt;I am dealing with japanese &amp;amp; chinese contacts ;-)&lt;/p&gt;

&lt;p&gt;Thank you &lt;/p&gt;

&lt;p&gt;Tim&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2547/scheduled-workflow-window-not-able-display-utf-characters</guid>
<pubDate>Tue, 13 Jun 2017 09:40:31 +0000</pubDate>
</item>
<item>
<title>Datagrid with the new headers options HOW?</title>
<link>https://overflow.efficy.io/?qa=2525/datagrid-with-the-new-headers-options-how</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;I would like to create a datagrid in a page that will allow me to use the fancy filters and order columns features as on below : &lt;/p&gt;

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

&lt;p&gt;How can I do that? the getDataGrid macro I use just allow me to force certain parameters as a filter or an order but I would like to make my datagrid as interactive as possible.&lt;/p&gt;

&lt;p&gt;thank you&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2525/datagrid-with-the-new-headers-options-how</guid>
<pubDate>Wed, 07 Jun 2017 09:14:07 +0000</pubDate>
</item>
<item>
<title>Google Geocoding via scheduled workflow</title>
<link>https://overflow.efficy.io/?qa=2513/google-geocoding-via-scheduled-workflow</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;is there already a solution available to do geocoding in (scheduled) workflow?&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

&lt;p&gt;Tim&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2513/google-geocoding-via-scheduled-workflow</guid>
<pubDate>Wed, 31 May 2017 12:52:00 +0000</pubDate>
</item>
<item>
<title>How using the kind Page or Macro into a new widget while consulting the DETAIL=Chrt</title>
<link>https://overflow.efficy.io/?qa=2510/using-kind-page-macro-into-widget-while-consulting-detail-chrt</link>
<description>&lt;p&gt;I try to force into the tab chart an other kind of widget. I have to display a grid like into overview.&lt;br&gt;
So I basically tried to charging OvrwWidget rather than  ChrtWidget.&lt;br&gt;
I tried first by charging a standard Macro provide into the OvrwWidget. But no return.&lt;br&gt;
Then i tried by returning &quot;xxxx&quot; displayed into the macro. Nothing.&lt;br&gt;
After I seach how my content was charged. I shown the option Page to generate an iframe.&lt;br&gt;
No more result.&lt;/p&gt;

&lt;p&gt;So is there any way to change widget into chart tab or something reduce each DETAIL on one type of content. HIGHCHARTS for CHRT and MACRO for OVRW     &lt;/p&gt;

&lt;p&gt;Here one of my tests&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;%Macro(&quot;OvrwBoxWidget&quot;, rights=&quot;Sale&quot;, $KEY$=3, $KIND$=&quot;Page&quot;, $SENTITY$=&quot;Sale&quot;, $TITLE$=&quot;Details by Articles (Month year vs Month previous year)&quot;,
                $CONFIG$=|{url:&quot;consult?key=&amp;lt;%GetKey()%&amp;gt;&amp;amp;entity=&amp;lt;%GetEntity()%&amp;gt;&amp;amp;detail=Ovrw&amp;amp;_MACRO=SalesDetailVolCAM&amp;amp;_MACROFILE=MacroWidgets.txt&amp;amp;norecent=T&quot;}|)%&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2510/using-kind-page-macro-into-widget-while-consulting-detail-chrt</guid>
<pubDate>Fri, 26 May 2017 13:12:21 +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 keep header fixed on top of a long grid list.</title>
<link>https://overflow.efficy.io/?qa=2500/how-keep-header-fixed-on-top-of-a-long-grid-list</link>
<description>&lt;p&gt;Some of customers expect to keep on the top of the grid like that : &lt;a rel=&quot;nofollow&quot; href=&quot;http://imaputz.com/cssStuff/bigFourVersion.html&quot;&gt;http://imaputz.com/cssStuff/bigFourVersion.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The problem in that case is that the adjustment of the header vs tablebody is not similar and not responsive.&lt;/p&gt;

&lt;p&gt;I need to implement something like that for one of our customer.&lt;/p&gt;

&lt;p&gt;Anybody has already done something similar in Efficy witch is compatible with some moderns browser ? Could it be standardized for the future versions by a complete review of the grid in Efficy by using something else than th,tr,td in a table ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2500/how-keep-header-fixed-on-top-of-a-long-grid-list</guid>
<pubDate>Thu, 18 May 2017 12:14:01 +0000</pubDate>
</item>
<item>
<title>How do we use the navigateDate Macro?</title>
<link>https://overflow.efficy.io/?qa=2491/how-do-we-use-the-navigatedate-macro</link>
<description>&lt;p&gt;Hi everyone, &lt;/p&gt;

&lt;p&gt;I'm in a migration process and I'm trying to set some &quot;navigation date&quot; button.&lt;/p&gt;

&lt;p&gt;Here is how it was done in Efficy2012: &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;%NavigateDate(width=&quot;24&quot;, height=&quot;24&quot;, hspace=&quot;5&quot;,
 PREVWEEKIMAGE=&quot;i-previous&quot;, PREVWEEKTEXT=&quot;Previous Week&quot;,
 PREVIMAGE=&quot;img/previous24.gif&quot;, PREVTEXT=&quot;Previous Day&quot;,
 TODAYIMAGE=&quot;img/today24.gif&quot;, TODAYTEXT=&quot;Today&quot;,
 NEXTIMAGE=&quot;img/next24.gif&quot;, NEXTTEXT=&quot;Next Day&quot;
 NEXTWEEKIMAGE=&quot;img/last24.gif&quot;, NEXTWEEKTEXT=&quot;Next Week&quot;,
 )%&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I'm trying to reuse that macro but I can't find any explanation about it. &lt;br&gt;
When I use it as it is, the navigation is generated but I do not get any image (arows left/right, ect.).&lt;/p&gt;

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

&lt;p&gt;Do someone have an idea? &lt;/p&gt;

&lt;p&gt;KR,&lt;/p&gt;

&lt;p&gt;Prince&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2491/how-do-we-use-the-navigatedate-macro</guid>
<pubDate>Tue, 16 May 2017 09:22:06 +0000</pubDate>
</item>
<item>
<title>How to have a TreeView in a search result grid, when linking entities ?</title>
<link>https://overflow.efficy.io/?qa=2484/how-have-treeview-search-result-grid-when-linking-entities</link>
<description>&lt;p&gt;Hello,&lt;br&gt;
Customer is asking to have a treeview in the search result list, this feature was in Efficy 2012...&lt;br&gt;
Scenario :&lt;br&gt;
 Open an Opportunity, &lt;br&gt;
 -&amp;gt; link a Product&lt;br&gt;
      -&amp;gt; Search screen shows-up, input a product name&lt;br&gt;
          -&amp;gt; from the result list, be able to drill down the product hierarchy and pick the desired article&lt;/p&gt;

&lt;p&gt;Does anyone knows if this can be customised in Efficy 10 SP2 ?&lt;/p&gt;

&lt;p&gt;Tkx,&lt;br&gt;
Frédéric&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2484/how-have-treeview-search-result-grid-when-linking-entities</guid>
<pubDate>Thu, 11 May 2017 09:18:49 +0000</pubDate>
</item>
<item>
<title>Easy default queryviews in Efficy10</title>
<link>https://overflow.efficy.io/?qa=2478/easy-default-queryviews-in-efficy10</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;in most projects the customers needs some queryviews to be by &quot;default&quot;.&lt;br&gt;
so there is a solution I ve done to help them having control about it : &lt;/p&gt;

&lt;p&gt;in the workflow add the code : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function AfterLogon(){
    initUserOptions();
}

function initUserOptions(){
    //Database.Log(&quot;Ok then&quot;);

    var 
        qh = 0,
        tc = Database.OpenTemporaryContext(),
        sql = &quot;&quot;;

    sql += &quot;select &quot;;
    sql += &quot;    V.K_QUERYVIEW, &quot;;
    sql += &quot;    (select E.NAME from admin.SYS_ENTITIES E where E.K_ENTITY = V.K_MASTER) as MASTER_NAME, &quot;;
    sql += &quot;    (select E.NAME from admin.SYS_ENTITIES E where E.K_ENTITY = V.K_DETAIL) as DETAIL_NAME, &quot;;
    sql += &quot;    (case V.K_DETAIL when -1 then 'Search' else 'Consult' end) as CONTEXT &quot;; 
    sql += &quot;from admin.QUERYVIEWS V &quot;;
    sql += &quot;where V.NAME = 'default' &quot;;

    var ds = Database.ExecuteSystemSQLQuery(qh, tc, sql, &quot;&quot;, true, false, 1);
    ds.First();

    while (!ds.EoF){
        var 
            context = ds.FieldByName(&quot;CONTEXT&quot;).AsString,
            master = ds.FieldByName(&quot;MASTER_NAME&quot;).AsString,
            detail = ds.FieldByName(&quot;DETAIL_NAME&quot;).AsString,
            key = ds.FieldByName(&quot;K_QUERYVIEW&quot;).AsString;

        var section = context + master + &quot;_&quot;;
        section += (context == &quot;Consult&quot;)? detail + &quot;_&quot;: &quot;&quot;;
        section += &quot;QueryView&quot;;

        Database.WriteString(&quot;Efficy&quot;, section, key);

        ds.Next();
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The only thing you have to do after that is create a queryview where you want (it works for consult and search context, feel free to make it evolve if you need)&lt;/p&gt;

&lt;p&gt;your query view has to be named : &quot;Default&quot; and be careful that your queryview is linked to everyone.&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=2478/easy-default-queryviews-in-efficy10</guid>
<pubDate>Wed, 10 May 2017 14:16:53 +0000</pubDate>
</item>
<item>
<title>is it possible to create a multiple drilldown with HighCharts</title>
<link>https://overflow.efficy.io/?qa=2467/is-it-possible-to-create-multiple-drilldown-with-highcharts</link>
<description>&lt;p&gt;I want to display CA for family product then be able to down to the articles in this families.&lt;br&gt;
I try this but drilldown doesn't work if I have double call. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here the code into my macro&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;div id=&quot;containerCommCAProd&quot; style=&quot;height: 260px; margin: 0 auto; overflow: hidden&quot;&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;%LoadScript(&quot;serverscripts/Highcharts.js&quot;)%&amp;gt;
&amp;lt;script&amp;gt;
    &amp;lt;%Macro(&quot;HighChartsTheme&quot;)%&amp;gt;
    this._chart = new Highcharts.Chart({
        chart: {
            renderTo: 'containerCommCAProd',
            type: 'column'
        },
        title: {
            text: 'CA Mensuel'
        },
        xAxis: {
            type: 'category'
        },
        yAxis: {
             title: {
                text: 'CA'
            }
        },
        legend: {
            enabled: true
        },
        plotOptions: {
            series: {
                borderWidth: 0,
                dataLabels: {
                    enabled: true,
                    overflow:&quot;none&quot;,
                    crop:false,
                    rotation: 310,
                    x: 4,
                    y: -15
                }
            }

        }
        ,
        series :[ {name: 'Produit', colorByPoint: true, 
        &amp;lt;%RunScript(&quot;GetFirstDrillDown&quot;, CompID=&quot;%%GetKey()&quot;,UserId=&quot;%%GetUserKey()&quot;,Type=&quot;CA&quot;,detail=&quot;%%GetDetail()&quot;)%&amp;gt;}
        ]
        ,
        drilldown : {
            series : [{name: 'Article', colorByPoint: true, data: [
            &amp;lt;%RunScript(&quot;GetSecondDrillDown&quot;, CompID=&quot;%%GetKey()&quot;,UserId=&quot;%%GetUserKey()&quot;,Type=&quot;CA&quot;,detail=&quot;%%GetDetail()&quot;)%&amp;gt;], 
            drilldown : {
                series : [&amp;lt;%RunScript(&quot;GetThirdDrillDown&quot;, CompID=&quot;%%GetKey()&quot;,UserId=&quot;%%GetUserKey()&quot;,Type=&quot;CA&quot;,detail=&quot;%%GetDetail()&quot;)%&amp;gt;]
            }
        }]
        }
    });
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;here the statics test data I inject &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GetFirstDrillDown :&lt;/strong&gt; &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ChartKey =&quot;data: [&quot;
    ChartKey +=&quot;{name: 'Beurre au 01/2016', y: 56.33, drilldown: 'BEURRE-01-2016'},{name: 'Chevre au 01/2016', y: 20.10, drilldown: 'CHEVRE-01-2016'}&quot;
    ChartKey +=&quot;]&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;GetSecondDrillDown :&lt;/strong&gt; &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ChartKey = &quot;{ name: 'BEURRE', id: 'BEURRE-01-2016', data: [['BEURRE NIZO',30.12],['BEURRE-BIO', 15.26, {name:'BEURRE-BIO-01-2016', y:15.26, drilldown: 'BEURRE-BIO-01-2016'}],['BEURRE AOC',10.48]]}&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;GetThirdDrillDown :&lt;/strong&gt; &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ChartKey =&quot;{ name: 'BEURRE BIO', id: 'BEURRE-BIO-01-2016', data: [['BEUR DSELMER BIO GFERM 250GC3K',30.12],['BEURRE DSEL BIO GFERM 250G C5K',15.26],['BEUR DX BIO BDA PAIN5K B540KPB',10.48]]}&quot;
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2467/is-it-possible-to-create-multiple-drilldown-with-highcharts</guid>
<pubDate>Thu, 04 May 2017 10:28:04 +0000</pubDate>
</item>
<item>
<title>Projects file importer</title>
<link>https://overflow.efficy.io/?qa=2431/projects-file-importer</link>
<description>&lt;p&gt;Hey guys,&lt;/p&gt;

&lt;p&gt;A customer would like to have an additional import button. &lt;br&gt;
Would it also be possible to add this importation functionality in the opportunity page by the project team, or is this hardcoded, since it requires the new sidebar addins?&lt;/p&gt;

&lt;p&gt;KR,&lt;br&gt;
Gert&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2431/projects-file-importer</guid>
<pubDate>Fri, 14 Apr 2017 09:03:45 +0000</pubDate>
</item>
<item>
<title>Overriding MacroDashboard.txt in customs not working ?</title>
<link>https://overflow.efficy.io/?qa=2423/overriding-macrodashboard-txt-in-customs-not-working</link>
<description>&lt;p&gt;I need to ovveride the MacroDashboard.txt file in my customs macros folder to display something different than &quot;main board efficy - date&quot; so I create a MacroDashboardCustom.txt but nothing change it seems that is not overrided at all, Can someone help me on that?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2423/overriding-macrodashboard-txt-in-customs-not-working</guid>
<pubDate>Tue, 11 Apr 2017 07:46:55 +0000</pubDate>
</item>
<item>
<title>InspectLogService Error  &quot;File too old&quot; - meaning</title>
<link>https://overflow.efficy.io/?qa=2419/inspectlogservice-error-file-too-old-meaning</link>
<description>&lt;p&gt;Hi ho all!&lt;/p&gt;

&lt;p&gt;I getting this error message from the InspectLogService:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;LogFile: D:\inetpub\efficy\customs\xxxxxxx\DataSynchro\xxxxxxx\logs\DataSynchro.log&lt;br&gt;
&lt;strong&gt;Reason: File too old&lt;/strong&gt;&lt;br&gt;
Date Sent: 05.04.2017 10:50:14&lt;br&gt;
Extract:&lt;br&gt;
[2017/04/03 11:01:07.803] Starting Synchro&lt;br&gt;
[2017/04/03 11:01:08.552]   Retrieving List of Records...&lt;br&gt;
[2017/04/03 11:01:08.661]     0 Records Found&lt;br&gt;
[2017/04/03 11:01:08.677] Synchro Finished&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;What is the meaning of &quot;File too old&quot; and of course how can I get rid of it?&lt;/p&gt;

&lt;p&gt;Thank you and have agreat day!&lt;/p&gt;

&lt;p&gt;Tim&lt;/p&gt;
</description>
<category>Other</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2419/inspectlogservice-error-file-too-old-meaning</guid>
<pubDate>Wed, 05 Apr 2017 09:31:08 +0000</pubDate>
</item>
<item>
<title>How to use modules features in Dialog pages</title>
<link>https://overflow.efficy.io/?qa=2416/how-to-use-modules-features-in-dialog-pages</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;Recently I had to implement a feature in Efficy that would allow the user to interact with some custom data through different pages. Those pages were not related to any entity nor records of the CRM. &lt;/p&gt;

&lt;p&gt;the use of dialogs appeared to me to be the best practice, so my problematic was to open an empty page (dialog) that would allow me to use the data-msg and data-channel and commands features in custom modules. This post is here to explain how to make this works all together.&lt;/p&gt;

&lt;p&gt;Behold, you will need a good understanding of the modules overrides techniques, and how macros works.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First step : create your page template&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;so there is a test2.htm template that I ve put in : &lt;br&gt;
customs\Test\pages\dialog\test2.htm&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;%SetBookmark()%&amp;gt;
&amp;lt;%LoadMacros('MacroLibrary;MacroDialog')%&amp;gt;
&amp;lt;%Macro('Doctype')%&amp;gt;
&amp;lt;html lang=&quot;&amp;lt;%GetLanguage(lowercase=T)%&amp;gt;&quot; dir=&quot;&amp;lt;%OnLanguage(ar='rtl', else='ltr')%&amp;gt;&quot;&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;test&amp;lt;/title&amp;gt;
    &amp;lt;%Macro('MetaHead')%&amp;gt;
    &amp;lt;%UseStyleSheet(page='%%OnLanguage(ar=&quot;efficy-rtl&quot;, else=&quot;efficy&quot;)')%&amp;gt;
    &amp;lt;%UseScript('../lib/js/vendor/modernizr.js', fixedline=T, fixedpath=T)%&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body onload=&quot;Loaded()&quot; data-keep-size&amp;gt;
&amp;lt;div class=&quot;row dialog-wrapper&quot; data-channel=&quot;dialog/main&quot;&amp;gt;
    &amp;lt;div class=&quot;small-12 columns&quot;&amp;gt;
        &amp;lt;h3 class=&quot;section-title&quot;&amp;gt;&amp;lt;%GetLabel('My dialog is awesome')%&amp;gt;&amp;lt;/h3&amp;gt;

        &amp;lt;div class=&quot;toolbar medium&quot; data-channel=&quot;dialog/main&quot;&amp;gt;

            &amp;lt;button class=&quot;action i-add&quot; data-msg=&quot;msgAddChart&quot; type=&quot;button&quot;&amp;gt;&amp;lt;/button&amp;gt;

        &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;!--&amp;lt;/body&amp;gt;--&amp;gt;
&amp;lt;%Macro('DialogScriptsRequire')%&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;some explaination:&lt;/p&gt;

&lt;p&gt;As you can see I already add a data-channel class in my wrapper and a data-msg in my button. (it's not a guide step by step, it s more a file by file^^)&lt;/p&gt;

&lt;p&gt;the MacroLibrary file and MacroDialog are the 2 only macro files I wanted to need to make it work but feel free to use some more for your personnal customs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2nd step : Override MacroDialog&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The DialogScriptsRequire is loaded in the body to respect the architecture and async loads spirit.&lt;/p&gt;

&lt;p&gt;this is what you ll find in my MacroDialogCustomFile : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;MainJsModuleCustom {[custom/main/dialog]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This will allow me to completely override the main dialog module.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;RequireConfigCustom {[
    &amp;lt;%UseScript('custom/js/config/require.config.js')%&amp;gt;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;since I will need to override some module I will need to edit my custom require.config file so I need my dialog to know that the custom file has to be loaded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3rd step : override the main/dialog module&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Implement the main/dialog module now : this is what i ve put in my custom/main/dialog.js file : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;define([
    'domReady!',
    'jquery',
    'class',
    'windowManager',
    'config/foundation',
    'custom/commands/dialogCmd',
    'commandPublisher'
], function (doc, $, Class, WindowManager, Foundation, DialogCmd, CommandPublisher) {

    var dialog = new (Class.extend({

        start: function() {
            console.log(&quot;Custom module dialog.js started&quot;);
            window.__debug = true;
            $(document).foundation();
            WindowManager.start();
            DialogCmd.start();
            CommandPublisher.start();
        },

        stop: function() {
            WindowManager.stop();
        }

    }))();

    // Auto start when loaded via data-main
    dialog.start();

    return dialog;
});
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;you will probably recognize the standard dialog module with more modules : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;custom/commands/dialogCmd : a full custom modules that will be in&lt;br&gt;
charge to have all the commands I need (just a test function in my&lt;br&gt;
example)&lt;/li&gt;
&lt;li&gt;commandPublisher : the module that will transform a data-channel/data-msg classes in events emitters&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;these modules are started on start and I ve added a console log and a __debug = true to monitor in firebug that my code is well loaded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;step 4 : create a custom/commands/dialogCmd module&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is my dialogCmd minimum code : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;define([
    'jquery',
    'constants',
    'model',
    'browser',
    'commandListener',
    'format',
    'url'
], function($, Const, Model, Browser, CommandListener, format, Url) {
    console.log(&quot;custom module dialogCmd loaded&quot;);

    function test(){
        alert(&quot;test ok&quot;);
    }

    var commands = {
        &quot;msgTest&quot; : test,
    };

    return new CommandListener(Const.VIEW_CHANNEL + 'dialog/main', commands);
});
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;the only required modules here are : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;constants &lt;/li&gt;
&lt;li&gt;commandListerner&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;the rest is here because I like those modules and I did intend to use it later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5th step : double check...&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;you will need to check in your console when your dialog is loaded that you will have this :&lt;/p&gt;

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

&lt;p&gt;but right now you won't cause you probably have not edit your require.config.js file there is the line you will have to add :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;require.overrideModule('commands/dialogCmd');
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I know you are not overriding any existing module but, if it's stupid and it works... it's not supid.&lt;/p&gt;

&lt;p&gt;I am pretty sure plenty of optimizition are makable, feel free to answer this post to improve the solution I ve found.&lt;/p&gt;

&lt;p&gt;Cheers, May ficy be with you folks&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2416/how-to-use-modules-features-in-dialog-pages</guid>
<pubDate>Tue, 28 Mar 2017 16:25:22 +0000</pubDate>
</item>
</channel>
</rss>