<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged js</title>
<link>https://overflow.efficy.io/?qa=tag/js</link>
<description>Powered by Question2Answer</description>
<item>
<title>Parameters for overriding quotation.js</title>
<link>https://overflow.efficy.io/?qa=5952/parameters-for-overriding-quotation-js</link>
<description>&lt;p&gt;Hi,&lt;br&gt;
How to configure require.config.js for overriding quotation.js ?&lt;/p&gt;

&lt;p&gt;I've tried this way without any success :&lt;/p&gt;

&lt;p&gt;require.overrideModule('misc/quotation', 'misc/quotationOverride');&lt;/p&gt;

&lt;p&gt;Thank you.&lt;br&gt;
Dimitri&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5952/parameters-for-overriding-quotation-js</guid>
<pubDate>Mon, 08 Mar 2021 12:30:33 +0000</pubDate>
</item>
<item>
<title>launch template from Publ or Prof Consult! Efficy 11.2</title>
<link>https://overflow.efficy.io/?qa=4876/launch-template-from-publ-or-prof-consult-efficy-11-2</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I want to launch a template threw a &lt;strong&gt;consult commande&lt;/strong&gt; From &lt;strong&gt;Publications Consult&lt;/strong&gt; page, i've created this function to take the directly the &lt;strong&gt;template key in parameters&lt;/strong&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;const launchTemplateFromConsult = (template) =&amp;gt; {
var extraParam = format('template=$0&amp;amp;Key={key}&amp;amp;{entity}= 
                {key}&amp;amp;copydetail={entity};{key};Comp;Cont,Proj;Oppo', template);
EditNewWithScript2('Docu', extraParam, 'serverscripts/Create', 
                'CreateInstantDoc');
};
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;My problem is that when the document is created the copy detail function does not work properly like &lt;strong&gt;(contacts or companies are not copied)&lt;/strong&gt;, i don't know if there is some thing missing&lt;/p&gt;

&lt;p&gt;I've also add this 2 lines in the Create.js in the &lt;strong&gt;CreateInstantDoc&lt;/strong&gt; function to copy the details that i need,&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var Publ = Efficy.getMainDetail(DocuContext, ntPubl)
Efficy.copyDetails2(DocuContext, ntPubl, Publ, [ntComp, ntCont, ntProj, ntOppo], false, false)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;but the function steel not working.&lt;/p&gt;

&lt;p&gt;Could you help me please?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4876/launch-template-from-publ-or-prof-consult-efficy-11-2</guid>
<pubDate>Wed, 09 Oct 2019 09:25:57 +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 to found the list of columns of a DataSet ?</title>
<link>https://overflow.efficy.io/?qa=1951/how-to-found-the-list-of-columns-of-a-dataset</link>
<description>&lt;p&gt;Hi to all,&lt;/p&gt;

&lt;p&gt;I want to write a &quot;generic&quot; function to read data via a SQL request...&lt;br&gt;
The problem is that I don't know the list of columns inside the Dataset result, while the query is build +/-  dynamically...&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; var mysql = &quot;select * from COMPANIES&quot;   // &amp;lt;- query unknow 
 var myDataSet = Database.ExecuteSystemSQLQuery(0, Database.OpenTemporaryContext, mysql, null, true, true, 36); //
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Is a way to obtain something like :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var columns = myDataSet.Columns(); //   [ 'K_COMPANY', 'NAME',... ]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Regards&lt;br&gt;
Didier&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1951/how-to-found-the-list-of-columns-of-a-dataset</guid>
<pubDate>Fri, 21 Oct 2016 08:28:35 +0000</pubDate>
</item>
<item>
<title>Could someone help me with this code on &quot;ExternalMailing.js&quot;</title>
<link>https://overflow.efficy.io/?qa=1392/could-someone-help-me-with-this-code-on-externalmailing-js</link>
<description>&lt;p&gt;Could someone help me with this code on &quot;ExternalMailing.js&quot;?&lt;br&gt;
Freefield #1-#4 dous not work correctly. Thanks in advance.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;        mailingCode = encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('MAILINGCODE').AsString));
        contLanguage = encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('R_LANGUAGE').AsString));

        // http://www.flexmail.be/fr/api/manual/type/12-emailaddresstype
        contactBatch.push('&amp;lt;Item' + efficyNbExportedCont + ' xsi:type=&quot;flex:EmailAddressType&quot;&amp;gt;');
        contactBatch.push('&amp;lt;emailAddress xsi:type=&quot;xsd:string&quot;&amp;gt;' + encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('EMAIL1').AsString)) + '&amp;lt;/emailAddress&amp;gt;');
        contactBatch.push('&amp;lt;title xsi:type=&quot;xsd:string&quot;&amp;gt;' + encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('TITLE').AsString)) + '&amp;lt;/title&amp;gt;');
        contactBatch.push('&amp;lt;name xsi:type=&quot;xsd:string&quot;&amp;gt;' + encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('FIRSTNAME').AsString)) + '&amp;lt;/name&amp;gt;');
        contactBatch.push('&amp;lt;surname xsi:type=&quot;xsd:string&quot;&amp;gt;' + encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('NAME').AsString)) + '&amp;lt;/surname&amp;gt;');
        ContactBatch.push('&amp;lt;free_field_1 xsi:type=&quot;xsd:string&quot;&amp;gt;' + escape((contactDataSet.FieldByName(&quot;GENDER&quot;).AsString == &quot;M&quot; ? 'Geachte heer' : (contactDataSet.FieldByName(&quot;GENDER&quot;).AsString == &quot;F&quot; ? 'Geachte mevrouw' : 'Geachte heer/mevrouw' ) )) + '&amp;lt;/free_field_1&amp;gt;')
        ContactBatch.push('&amp;lt;free_field_2 xsi:type=&quot;xsd:string&quot;&amp;gt;' + escape(MailingCode) + '&amp;lt;/free_field_2&amp;gt;')
        ContactBatch.push('&amp;lt;free_field_3 xsi:type=&quot;xsd:string&quot;&amp;gt;' + escape(contactDataSet.FieldByName(&quot;MIDDLENAME&quot;).AsString) + '&amp;lt;/free_field_3&amp;gt;')
        ContactBatch.push('&amp;lt;free_field_4 xsi:type=&quot;xsd:string&quot;&amp;gt;' + escape(contactDataSet.FieldByName(&quot;MIDDLENAME&quot;).AsString.slice(0,1).toUpperCase() + contactDataSet.FieldByName(&quot;MIDDLENAME&quot;).AsString.slice(1)) + '&amp;lt;/free_field_4&amp;gt;') 
        contactBatch.push('&amp;lt;free_field_6 xsi:type=&quot;xsd:string&quot;&amp;gt;' + encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('MIDDLENAME').AsString)) + '&amp;lt;/free_field_6&amp;gt;');
        contactBatch.push(getActivityContent(activitiesUrl, mailingCode, contLanguage, fixedUrl));
        contactBatch.push('&amp;lt;referenceId xsi:type=&quot;xsd:string&quot;&amp;gt;' + sourceContDs.FieldByName('K_CONTACT').AsString + '&amp;lt;/referenceId&amp;gt;');
        contactBatch.push('&amp;lt;/Item' + efficyNbExportedCont + '&amp;gt;');
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1392/could-someone-help-me-with-this-code-on-externalmailing-js</guid>
<pubDate>Mon, 07 Mar 2016 10:14:01 +0000</pubDate>
</item>
<item>
<title>Add a &quot;AddAction&quot; button to dashboard Widget</title>
<link>https://overflow.efficy.io/?qa=1256/add-a-addaction-button-to-dashboard-widget</link>
<description>&lt;p&gt;How do we need to approach the addition of an &quot;Add Action&quot; button in the Efficy Dashboard in for example the &quot;Today Tasks&quot; Widget?&lt;/p&gt;

&lt;p&gt;I've been trying several ways to achieve this, but I can't get the button to work.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1256/add-a-addaction-button-to-dashboard-widget</guid>
<pubDate>Wed, 20 Jan 2016 19:34:20 +0000</pubDate>
</item>
<item>
<title>Script which checks a date field an send a mail automatically using a template in the template list</title>
<link>https://overflow.efficy.io/?qa=673/script-which-checks-field-automatically-template-template</link>
<description>&lt;p&gt;I need a script that checks a date field, once the period has been arrived, the script should send a mail automatically using a template in the template list to the related person.&lt;/p&gt;

&lt;p&gt;(It can also be used for B-Days)&lt;/p&gt;

&lt;p&gt;Thx,&lt;br&gt;
Can D.&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=673/script-which-checks-field-automatically-template-template</guid>
<pubDate>Wed, 26 Aug 2015 14:10:36 +0000</pubDate>
</item>
<item>
<title>Override one function instead of whole module</title>
<link>https://overflow.efficy.io/?qa=356/override-one-function-instead-of-whole-module</link>
<description>&lt;p&gt;Is it possible to override one function in the module editView.js without overriding the whole module?&lt;/p&gt;
</description>
<category>Efficy Developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=356/override-one-function-instead-of-whole-module</guid>
<pubDate>Wed, 15 Apr 2015 15:26:06 +0000</pubDate>
</item>
<item>
<title>How to Migrate the function BeforeSubmit(ApplyChanges)</title>
<link>https://overflow.efficy.io/?qa=188/how-to-migrate-the-function-beforesubmit-applychanges</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;I have to Migrate some functionnalities contained in the BeforeSubmit from Efficy 2012 EntityEdit.htm page to Efficy 2014.&lt;/p&gt;

&lt;p&gt;I check where I could insert this code and I have 2 possibilities (or more...) :&lt;br&gt;
1- Instert it into MacroEditS.txt : But since I eard that this file will not be used in next version I don't think it is a good idea.&lt;/p&gt;

&lt;p&gt;2- I remarked that there was a Macro in MacroEdit.txt that is commented, can I insert the BeforeSubmit function directly in this Macro ?&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;EditScriptsCustom {[
&amp;lt;%UseScript('demo/Test')%&amp;gt;
&amp;lt;script&amp;gt;
    $(document).ready(function(){
        alert('Loaded !');
    });
&amp;lt;/script&amp;gt;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If there is any other way can you please describe it below.&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;br&gt;
Stéphane R.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=188/how-to-migrate-the-function-beforesubmit-applychanges</guid>
<pubDate>Tue, 10 Feb 2015 12:19:53 +0000</pubDate>
</item>
<item>
<title>RefreshData parameter in CommitChanges function</title>
<link>https://overflow.efficy.io/?qa=129/refreshdata-parameter-in-commitchanges-function</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Can anybody please explain to me what the RefreshData parameter in the function CommitChanges means? &lt;br&gt;
When this parameter is set to true, then the record stays locked even after the CloseContext function. What is the use of this? &lt;/p&gt;

&lt;p&gt;This is what EDN says:&lt;/p&gt;

&lt;p&gt;RefreshData = after commit, refresh all the data in the edit context; use this if you plan to continue to use the edit context after the commit&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;Michael de Groot.&lt;/p&gt;
</description>
<category>Efficy Developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=129/refreshdata-parameter-in-commitchanges-function</guid>
<pubDate>Fri, 12 Dec 2014 13:03:06 +0000</pubDate>
</item>
<item>
<title>Shim config when library has a dependancy of a custom module</title>
<link>https://overflow.efficy.io/?qa=120/shim-config-when-library-has-a-dependancy-of-a-custom-module</link>
<description>&lt;p&gt;We use some non standard jquery plugins. &lt;br&gt;
I started out by wrapping the library in a define function and put jquery as a dependancy.&lt;br&gt;
But I did it like any other module and did not put it in the shim property because I slightly modified the standard library to use our custom translator module. &lt;/p&gt;

&lt;p&gt;So my question is: is there a better alternative if a jquery plugin depends on a &lt;strong&gt;custom&lt;/strong&gt; module other dan wrapping it in a define function like standard modules?&lt;/p&gt;
</description>
<category>Efficy Developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=120/shim-config-when-library-has-a-dependancy-of-a-custom-module</guid>
<pubDate>Mon, 01 Dec 2014 16:09:06 +0000</pubDate>
</item>
<item>
<title>Casing of variables in require.js define functions</title>
<link>https://overflow.efficy.io/?qa=110/casing-of-variables-in-require-js-define-functions</link>
<description>&lt;p&gt;
    Is there a particular reason why format is not starting with a capital, like the other variables for the libs?&lt;br&gt;
    Could someone explain (again) when should use PascalCasing or camelBackCasing?&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;
    define([&lt;/p&gt;&lt;br&gt;
&lt;div&gt;&lt;br&gt;
      'jquery',&lt;/div&gt;&lt;br&gt;
&lt;div&gt;&lt;br&gt;
      'paperboy',&lt;/div&gt;&lt;br&gt;
&lt;div&gt;&lt;br&gt;
      'base/constants',&lt;/div&gt;&lt;br&gt;
&lt;div&gt;&lt;br&gt;
      'base/model',&lt;/div&gt;&lt;br&gt;
&lt;div&gt;&lt;br&gt;
      'classes/commandListener',&lt;/div&gt;&lt;br&gt;
&lt;div&gt;&lt;br&gt;
    'base/browser',&lt;/div&gt;&lt;br&gt;
&lt;div&gt;&lt;br&gt;
      'utils/format',&lt;/div&gt;&lt;br&gt;
&lt;div&gt;&lt;br&gt;
      'utils/url'&lt;/div&gt;&lt;br&gt;
&lt;div&gt;&lt;br&gt;
    ], function($, Paperboy, Const, Model, CommandListener, Browser, format, Url) {&lt;/div&gt;
</description>
<category>Efficy Developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=110/casing-of-variables-in-require-js-define-functions</guid>
<pubDate>Sat, 15 Nov 2014 16:20:55 +0000</pubDate>
</item>
<item>
<title>Optimization tool for require.js</title>
<link>https://overflow.efficy.io/?qa=15/optimization-tool-for-require-js</link>
<description>&lt;p&gt;Seperating everything into modules is ofcourse the way to go, but the more modules you have, the more http requests are fired. &lt;br&gt;
Assume a project goes live, should we think about using the optimizer for require.js to reduce the number of http requests and js payload when taking into account the possible performance gain?&lt;/p&gt;
</description>
<category>Efficy Developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=15/optimization-tool-for-require-js</guid>
<pubDate>Mon, 22 Sep 2014 10:13:53 +0000</pubDate>
</item>
</channel>
</rss>