<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged custom</title>
<link>https://overflow.efficy.io/?qa=tag/custom</link>
<description>Powered by Question2Answer</description>
<item>
<title>Setting default widget list per user group</title>
<link>https://overflow.efficy.io/?qa=7102/setting-default-widget-list-per-user-group</link>
<description>&lt;p&gt;Hi everyone !&lt;/p&gt;

&lt;p&gt;Maybe is it a stupid question but i havn't found any documentation on how to add default widgets to the dashboard of a group of user.&lt;/p&gt;

&lt;p&gt;We are switching from efficy 11 to 12 and we have a large custom to adapt to the specifications of v12.&lt;br&gt;
Previously we made changes to the WidgetsTody.htm file but now that there is some change in v12 for the widgets (making them a system entity) i'm unable to reproduce its comportment.&lt;/p&gt;

&lt;p&gt;If not possible could we at least pre load the favorite widget list when user is trying to add a widget ?&lt;/p&gt;

&lt;p&gt;Thanks in advance&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=7102/setting-default-widget-list-per-user-group</guid>
<pubDate>Fri, 06 Sep 2024 09:35:27 +0000</pubDate>
</item>
<item>
<title>How to fill a multivalue field in a list criteria via SyntaxNode class</title>
<link>https://overflow.efficy.io/?qa=7050/how-fill-multivalue-field-list-criteria-via-syntaxnode-class</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm trying to render default values into a multivalued criteria field exactly like the method sessionActor() which is defined in the class SyntaxNode.&lt;/p&gt;

&lt;p&gt;The method works for one value return. When I try to return multiple values separated by pipe. The view does't render.&lt;/p&gt;

&lt;p&gt;I would like to know if it's possible to render default values via SyntaxNode.&lt;/p&gt;

&lt;p&gt;In my list:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;   &amp;lt;line&amp;gt;
         &amp;lt;field value=&quot;OffAgences_&quot; multicond=&quot;true&quot;&amp;gt;
               sessionActorAgences()            
          &amp;lt;/field&amp;gt;
   &amp;lt;/line&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Things that didn't work:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;1: I tried returning String &quot;&amp;lt;default&amp;gt;id1&amp;lt;/default&amp;gt;&amp;lt;default&amp;gt;id2&amp;lt;/default&amp;gt;&quot;  in the string too

2: separated the id with a pipe i.e, &quot;id1|id2&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Things that work:&lt;/p&gt;

&lt;p&gt;If I send one id. It's rendered perfectly.&lt;/p&gt;

&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br&gt;
Binoy&lt;/p&gt;
</description>
<category>E-Deal developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=7050/how-fill-multivalue-field-list-criteria-via-syntaxnode-class</guid>
<pubDate>Tue, 19 Mar 2024 15:27:36 +0000</pubDate>
</item>
<item>
<title>Get regional settings in serverJS</title>
<link>https://overflow.efficy.io/?qa=6816/get-regional-settings-in-serverjs</link>
<description>&lt;p&gt;Is it possible to get usersettings by a serverJS function?&lt;/p&gt;

&lt;p&gt;This is an working example:&lt;br&gt;
var maxUsedDays = Efficy.getSetting('User', 'MaxUsedDays');&lt;/p&gt;

&lt;p&gt;This is what I am looking for  and currently not working:&lt;br&gt;
Efficy.getSetting('User', 'DecimalPoint')&lt;br&gt;
Efficy.getSetting('User', 'decimalPoint')&lt;br&gt;
Efficy.getSetting('User', 'ShortDateFormat')&lt;br&gt;
I also tried:&lt;br&gt;
Efficy.getSetting('Efficy.User', '') &lt;br&gt;
etc.&lt;/p&gt;

&lt;p&gt;Questions:&lt;br&gt;
Is it possible to get this working?&lt;br&gt;
Is there a list of working examples?&lt;br&gt;
Or an other way to get user regional settings?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6816/get-regional-settings-in-serverjs</guid>
<pubDate>Fri, 17 Feb 2023 11:47:47 +0000</pubDate>
</item>
<item>
<title>Can't toggle element when using Group by field in a list</title>
<link>https://overflow.efficy.io/?qa=6707/cant-toggle-element-when-using-group-by-field-in-a-list</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am facing an issue with the toggling of elements in a list when I use the Group function.&lt;br&gt;
It works fine in all the entities in the CRM except for one.&lt;br&gt;
When I use Group function on this entities, the grouping is fine BUT the little arrow is not displayed near the name of the Companies (I grouped by company's names).&lt;br&gt;
And when I try to toggle by clicking on a company name, I get this error in the Chrome console :&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Uncaught ReferenceError: CollapseGroup is not defined&lt;br&gt;
      at HTMLTableCellElement.onclick (entitylist?ENTITY=Cred&amp;amp;PAGE=pages/desktop/List.htm&amp;amp;GRIDNAME=CredList&amp;amp;active=true&amp;amp;OPENED=T&amp;amp;recentlyused=true&amp;amp;DETAIL=List&amp;amp;group=NOM_SCT:581:81)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If I look at the source, I have indeed a CollapseGroup function on the attribute :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;td colspan=12 onclick=&quot;CollapseGroup('52C20544')&quot; style=&quot;cursor:
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I tried to search for this function in the code, but I just found the definition in GridToolsExcel.htm (custom page).&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6707/cant-toggle-element-when-using-group-by-field-in-a-list</guid>
<pubDate>Fri, 07 Oct 2022 06:50:34 +0000</pubDate>
</item>
<item>
<title>how change recent list information for companies into mobile application</title>
<link>https://overflow.efficy.io/?qa=6359/change-recent-list-information-companies-mobile-application</link>
<description>&lt;p&gt;I want to add into the recent view into mobile application more fields.&lt;br&gt;
so I updated into my custom the listCardDefinitions because decree fields are similar as the the informations displayed into the recent list.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;{
   &quot;entities&quot;:{
      &quot;Amou&quot;:{
         &quot;active&quot;:false,
         &quot;icon&quot;:&quot;coin-euro&quot;
      }
   },
   &quot;listCardDefinitions&quot;:{
      &quot;Amou&quot;:{
         &quot;default&quot;:[
            {
               &quot;field&quot;:&quot;NAME&quot;,
               &quot;spaces&quot;:13
            },
            {
               &quot;field&quot;:&quot;F_D_START&quot;,
               &quot;display&quot;:&quot;date&quot;
            },
            {
               &quot;field&quot;:&quot;R_F_KIND&quot;
            },
            {
               &quot;field&quot;:&quot;F_OBJECTIVE&quot;
            },
            {
               &quot;field&quot;:&quot;F_HEAD&quot;
            },
            {
               &quot;field&quot;:&quot;F_HAND&quot;
            },
            {
               &quot;field&quot;:&quot;F_BODY&quot;
            },
            {
               &quot;field&quot;:&quot;F_FOOT&quot;
            },
            {
               &quot;field&quot;:&quot;F_FALL&quot;
            },
            {
               &quot;field&quot;:&quot;F_OTHER&quot;
            }
         ]
      },
      &quot;Comp&quot;:{
         &quot;default&quot;:[
            {
               &quot;field&quot;:&quot;NAME&quot;,
               &quot;template&quot;:&quot;#NAME#&quot;
            },
            {
               &quot;field&quot;:&quot;PHONE1&quot;,
               &quot;display&quot;:&quot;phone&quot;,
               &quot;spaces&quot;:7
            },
            {
               &quot;field&quot;:&quot;EMAIL1&quot;,
               &quot;display&quot;:&quot;email&quot;,
               &quot;spaces&quot;:8
            },
            {
               &quot;field&quot;:[
                  &quot;STREET&quot;,
                  &quot;BUILDING&quot;,
                  &quot;CITY&quot;
               ],
               &quot;template&quot;:&quot;#STREET# #BUILDING#, #CITY#&quot;,
               &quot;display&quot;:&quot;map&quot;,
               &quot;forceLabel&quot;:&quot;Address&quot;,
               &quot;spaces&quot;:8
            },
            {
               &quot;field&quot;:&quot;POSTCODE&quot;,
               &quot;spaces&quot;:8
            },
            {
               &quot;field&quot;:&quot;F_ERP_CODE&quot;,
               &quot;spaces&quot;:8
            },
            {
               &quot;field&quot;:&quot;F_CODE&quot;
            }
         ],
         &quot;_params&quot;:{
            &quot;search&quot;:{
               &quot;queryview&quot;:99999017
            }
         }
      }
   },
   &quot;entityRelations&quot;:{
      &quot;Amou&quot;:&quot;User,Cont,Comp&quot;
   }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Is that the good way to do that ?&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=17555084666499838911&quot; alt=&quot;enter image description here&quot;&gt;&lt;br&gt;
the &lt;strong&gt;F&lt;em&gt;ERP&lt;/em&gt;CODE&lt;/strong&gt; and &lt;strong&gt;F_CODE&lt;/strong&gt; are not displayed.&lt;/p&gt;

&lt;p&gt;Any ideas ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6359/change-recent-list-information-companies-mobile-application</guid>
<pubDate>Thu, 18 Nov 2021 16:53:01 +0000</pubDate>
</item>
<item>
<title>Custom filename after launch template</title>
<link>https://overflow.efficy.io/?qa=6286/custom-filename-after-launch-template</link>
<description>&lt;p&gt;How can I manipulate filename after launching a template?&lt;br&gt;
For example I want to have the reference as prefix in my filename&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6286/custom-filename-after-launch-template</guid>
<pubDate>Tue, 14 Sep 2021 08:19:51 +0000</pubDate>
</item>
<item>
<title>Can the treeview show 2 holdings?</title>
<link>https://overflow.efficy.io/?qa=5929/can-the-treeview-show-2-holdings</link>
<description>&lt;p&gt;Hi Guys,&lt;/p&gt;

&lt;p&gt;Is it possible to show 2 holdings in the treeview?&lt;br&gt;
Using Efficy 11.3&lt;/p&gt;

&lt;p&gt;Situation:&lt;/p&gt;

&lt;p&gt;1 company has 2 holdings but when you open the treeview of that company only 1 holding shows.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5929/can-the-treeview-show-2-holdings</guid>
<pubDate>Mon, 01 Mar 2021 12:12:53 +0000</pubDate>
</item>
<item>
<title>Possible to change agenda view for confidential items?</title>
<link>https://overflow.efficy.io/?qa=5906/possible-to-change-agenda-view-for-confidential-items</link>
<description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;In the agenda planning view the confidential items are shown on top of the users separately.&lt;/p&gt;

&lt;p&gt;Is it possible to have the confidential items shown behind the user that has the confidential appointment instead?&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=7980334257065366300&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=5906/possible-to-change-agenda-view-for-confidential-items</guid>
<pubDate>Thu, 18 Feb 2021 14:50:01 +0000</pubDate>
</item>
<item>
<title>I need to use a custom definition declared into my gridColumnsCustom into some grids widgets.</title>
<link>https://overflow.efficy.io/?qa=5575/custom-definition-declared-gridcolumnscustom-grids-widgets</link>
<description>&lt;p&gt;I created a &lt;strong&gt;new definition&lt;/strong&gt; Into my &lt;strong&gt;GridColumnsCustom&lt;/strong&gt; + a new definition into &lt;strong&gt;MacroEditCustom&lt;/strong&gt; to have my definition into grid wizard.&lt;/p&gt;

&lt;p&gt;The goal of this custom is to be able do like in &quot;action list&quot; the live done undone but here to check if a line as been paid or not on opened field.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;QrvwWiz1StylesItems {[
&amp;lt;option value=&quot;&quot;&amp;gt;(&amp;lt;%GetLabel(&quot;Default&quot;)%&amp;gt;)&amp;lt;/option&amp;gt;
&amp;lt;option value=&quot;ABSENT&quot;&amp;gt;&amp;lt;%GetLabel(&quot;Possibly absent&quot;)%&amp;gt;&amp;lt;/option&amp;gt;
&amp;lt;option value=&quot;BOOLEAN&quot;&amp;gt;&amp;lt;%GetLabel(&quot;Checkbox&quot;)%&amp;gt;&amp;lt;/option&amp;gt;
&amp;lt;option value=&quot;PAID&quot;&amp;gt;&amp;lt;%GetLabel(&quot;Paid&quot;)%&amp;gt;&amp;lt;/option&amp;gt;

td.PAID {[&amp;lt;td class=&quot;icon-cell &amp;lt;#L=OPENED;false=i-done done;true=i-not-done not-done&amp;gt;&quot; data-msg=&quot;paid;$this;&amp;lt;#F=$KEY$;context=ATTR&amp;gt;;&amp;lt;#F=OPENED;context=ATTR&amp;gt;&quot; title=&quot;&amp;lt;%Delay(1)%&amp;gt;GetLabel('Mark as &amp;lt;#L=OPENED;TRUE=Paid;FALSE=Not Paid&amp;gt;')%&amp;gt;&quot;&amp;gt;&amp;lt;/td&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

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

&lt;p&gt;It's working fine into the custom views but not into widgets grids rather than using the same custom grid definition&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=12493827194278269076&quot; alt=&quot;enter image description here&quot;&gt; &lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=6488824927079386396&quot; alt=&quot;enter image description here&quot;&gt; &lt;/p&gt;

&lt;p&gt;I tried to do like in an other post by adding a definition into &lt;strong&gt;DashTmpl_WidgetGrid&lt;/strong&gt; and pages/grid/WidgetGrid.htm but nothing append. &lt;br&gt;
I added my definition in different ways, here one of them with adding for paid the field open as suggested for sum@ I added a paid@&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;data-url=&quot;runquery?page=modal/setWidgetQueryParams&amp;amp;pageresult=grid/WidgetGrid&amp;amp;entity=Quer&amp;amp;key=&amp;lt;#F=K_QUERY;context=ATTR&amp;gt;&amp;amp;&amp;lt;#F=PARAMS_QUERY;context=ATTR&amp;gt;&amp;amp;columns=&amp;lt;#F=COLUMNS;context=URL,ATTR&amp;gt;&amp;amp;queryentity=&amp;lt;%If('&amp;lt;#F=_QUERY_ENTITY;context=ATTR&amp;gt;',then='&amp;lt;#F=_QUERY_ENTITY;context=ATTR&amp;gt;',else='$ENTITY$')%&amp;gt;&amp;amp;paid=&amp;lt;#F=opened;context=URL,ATTR&amp;gt;&amp;amp;expires=10&amp;amp;norecent=T&quot;&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Any idea to be able to check or uncheck list  into widgets ? &lt;/p&gt;

&lt;p&gt;Here EDN documentation about it.&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.io/edn/admin/crft_11_gridwidgets&quot;&gt;&lt;/a&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.io/edn/admin/crft_11_gridwidgets&quot;&gt;https://help.efficy.io/edn/admin/crft_11_gridwidgets&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Grid widgets display an efficy grid based on a query. Technically, the content of this grid is equivalent to the content of the runquery window, except that columns are taken from the definitions from the macro definition file GridColumns.txt.&lt;/p&gt;
&lt;/blockquote&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5575/custom-definition-declared-gridcolumnscustom-grids-widgets</guid>
<pubDate>Fri, 11 Sep 2020 09:48:50 +0000</pubDate>
</item>
<item>
<title>Add custom definition for Fragment</title>
<link>https://overflow.efficy.io/?qa=5543/add-custom-definition-for-fragment</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;For a customer, I need to add some custom definition to be used in Fragment.&lt;br&gt;
I have several custom LOOKUPS that I need to use in template, so I need to create the definition for these fields to have a good display in the result.&lt;/p&gt;

&lt;p&gt;I have added a new macro FragmentFieldsCustom.txt with the following definition :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;field.VERIN.Prod {[&amp;lt;%GetEdit(&quot;$FIELD$&quot;, type=&quot;LOOKUP&quot;, icon=&quot;i-down&quot;, message=&quot;pickList&quot;, tabindex=&quot;$TAB$&quot;)%&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But in Efficy, the definition doesn't appear.&lt;/p&gt;

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

&lt;p&gt;Sébastien&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5543/add-custom-definition-for-fragment</guid>
<pubDate>Mon, 10 Aug 2020 08:15:55 +0000</pubDate>
</item>
<item>
<title>Can I use a virtual field as a template merge field? (usage= p)</title>
<link>https://overflow.efficy.io/?qa=5532/can-i-use-a-virtual-field-as-a-template-merge-field-usage-p</link>
<description>&lt;p&gt;Can I use a virtual field as a template merge field? &lt;br&gt;
SYS_FIELDS: (usage= p)&lt;/p&gt;

&lt;p&gt;Currently I get empty results when merged results.&lt;/p&gt;

&lt;p&gt;For example: &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[$=PROJ.V_PRODUCTVALUE_Y1] or [$=PROJ.V_TOTALVALUE_Y1, FORMAT=&quot;,0.00&quot;]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Et cetera.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5532/can-i-use-a-virtual-field-as-a-template-merge-field-usage-p</guid>
<pubDate>Mon, 03 Aug 2020 09:27:58 +0000</pubDate>
</item>
<item>
<title>Application Server Error: QueryBuilder No fields selected</title>
<link>https://overflow.efficy.io/?qa=5489/application-server-error-querybuilder-no-fields-selected</link>
<description>&lt;p&gt;When following the Kristof manual putting virtual fields on Consult. &lt;br&gt;
I get the following error: &lt;/p&gt;

&lt;p&gt;Application Server Error: QueryBuilder No fields selected&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[Trace]
Call RunQuery(id=KBVIPS, querytext= [Select] COMPANIES.K_COMPANY hidden COMPANIES.V_CEO COMPANIES.V_CFO COMPANIES.V_CHRO [From] COMPANIES [Where] COMPANIES.K_COMPANY = 0 , param1=#K, store=333) Call Macros(=DetailBadgeQueryActi;DetailBadgeQueryOppo) Call Macros(=ConsultQueries;DetailBadgesQueries;ConsultQueriesCustom;ConsultContentHtml;ConsultModel;ConsultScriptsCustom) Call Macros(=ConsultContent) Call Macro(=MainJsModuleCustom) Call Macro(=MainJsModule) End Inline Function Evaluation Call GetLabel(=Company Manager) Start Inline Function Evaluation Call Macro(=PageTitle, context=ATTR, evaluate=T) Call LoadMacros(=MacroLibrary;MacroDesktop;MacroBadges;MacroGridtools;MacroConsult) Call SetBookmark(inhost=) Call IncludeFile(page=include/DesktopInHost, $MACROFILES$=MacroGridtools;MacroConsult, $QUERIES$=ConsultQueries;DetailBadgesQueries;ConsultQueriesCustom, $TITLE$=PageTitle, $PAGECONTENT$=ConsultContentHtml, $HOSTCONTENT$=ConsultContent, $SCRIPTS$=ConsultModel;ConsultScriptsCustom) Call OnArgument(=InHost, then=include/Desktop, else=include/DesktopInHost) Start Function Evaluation End Initialisation Connect to Application Server Verify Arguments Initialise Request Handling /consult
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The environment = &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Efficy Version:
Efficy (Build 11.2.19857.0 2020-05-11 15:40)
Application Server Version:
EfficyServer.dll 11.2.19857.0 2019-12-07 12:02 on SV-TST-WS01
Database version:
11.2.47
License Name
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Can someone help me?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5489/application-server-error-querybuilder-no-fields-selected</guid>
<pubDate>Tue, 16 Jun 2020 08:32:59 +0000</pubDate>
</item>
<item>
<title>Erro 'Field must have a value' when it is filled in</title>
<link>https://overflow.efficy.io/?qa=5405/erro-field-must-have-a-value-when-it-is-filled-in</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;For a customer I am creating a node API and when I execute the code below I get the error &quot;Field company kind must have a value&quot;.&lt;/p&gt;

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

&lt;p&gt;When I look in the dataset I can see that the field is filled in.&lt;br&gt;
It's also not an error caused by workflow because I already disabled it in a test.&lt;/p&gt;

&lt;p&gt;I think it has something to do with how the relation is created.&lt;br&gt;
Because when i create a link between two companies in the UI a relation is created in both ways (it's some custom).&lt;/p&gt;

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

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

&lt;p&gt;Maybe this screenshots are useful.&lt;/p&gt;

&lt;p&gt;I hope somebody can help me.&lt;/p&gt;

&lt;p&gt;Thanks in advance,&lt;br&gt;
Bart&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5405/erro-field-must-have-a-value-when-it-is-filled-in</guid>
<pubDate>Wed, 22 Apr 2020 14:56:14 +0000</pubDate>
</item>
<item>
<title>Dashboard on extranet</title>
<link>https://overflow.efficy.io/?qa=5369/dashboard-on-extranet</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am trying to integrate a dashboard into the extranet&lt;br&gt;
(like the Dashboard we have when we log in into submariners)&lt;/p&gt;

&lt;p&gt;But it seems quite complicated to integrate it into the extranet&lt;br&gt;
(a lot of files needed)&lt;br&gt;
I have already tried quite some things but didn't get any positive results.&lt;/p&gt;

&lt;p&gt;Is there a guide on how to integrate it and if it is possible to integrate it into the extranet?&lt;br&gt;
It would really help!&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5369/dashboard-on-extranet</guid>
<pubDate>Thu, 19 Mar 2020 14:30:01 +0000</pubDate>
</item>
<item>
<title>Disable mandatory link in custom entity</title>
<link>https://overflow.efficy.io/?qa=5310/disable-mandatory-link-in-custom-entity</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

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

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

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

&lt;p&gt;Any idea ? :)&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5310/disable-mandatory-link-in-custom-entity</guid>
<pubDate>Mon, 02 Mar 2020 07:08:18 +0000</pubDate>
</item>
<item>
<title>Steps of a timesheet</title>
<link>https://overflow.efficy.io/?qa=5323/steps-of-a-timesheet</link>
<description>&lt;p&gt;Hi,&lt;br&gt;
How can I fill the list of steps avalable while creating a timesheet record ?&lt;br&gt;
Thank you&lt;br&gt;
Dimiri&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5323/steps-of-a-timesheet</guid>
<pubDate>Tue, 25 Feb 2020 13:10:15 +0000</pubDate>
</item>
<item>
<title>How to use a group as K_ACCOUNT into a dashboard 11.3 version</title>
<link>https://overflow.efficy.io/?qa=5290/how-to-use-a-group-as-kaccount-into-a-dashboard-11-3-version</link>
<description>&lt;p&gt;It's seem that it's impossible to attach a group into the key accounts of dashboards.&lt;br&gt;
When I attach a user the dashboard is well displayed but not with a group of users.&lt;/p&gt;

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

&lt;p&gt;As explain into the documentation only groups as role are available: &lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.com/edn/admin/crft_11_kpi_dash_levels&quot;&gt;&lt;/a&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.com/edn/admin/crft_11_kpi_dash_levels&quot;&gt;https://help.efficy.com/edn/admin/crft_11_kpi_dash_levels&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Ownership levels The &quot;owner&quot; of the dashboard represents the level of&lt;br&gt;
  ownership which can have one of those three values:&lt;/p&gt;
  
  &lt;p&gt;Company or Global level This is the highest level. Setting a dashboard&lt;br&gt;
  at this level will cause every Efficy user to see its content.&lt;/p&gt;
  
  &lt;p&gt;Role or Group level When a dashboard defines a user group as owner,&lt;br&gt;
  all users having this group as main Role will see the contents in a&lt;br&gt;
  combined dashboard.&lt;/p&gt;
  
  &lt;p&gt;User level When a dashboard has user as owner, only this user will see&lt;br&gt;
  the widgets in this dashboard.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But if you use a group not like a role it's impossible. Is there a solution to do it just by groups ?&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5290/how-to-use-a-group-as-kaccount-into-a-dashboard-11-3-version</guid>
<pubDate>Wed, 05 Feb 2020 10:57:46 +0000</pubDate>
</item>
<item>
<title>is it possible to have cascading rights application like into the project for a custom entity.</title>
<link>https://overflow.efficy.io/?qa=4877/possible-cascading-rights-application-project-custom-entity</link>
<description>&lt;p&gt;I want to report the standard functionality of cascading security used into the projects to a custom entity. Is it possible ? And How ? Database, macros ?  &lt;br&gt;
If it's possible, can we industrialise it for some kinds of conditions.&lt;br&gt;
For exemple I want to add rules without open security screen depending on externals status or role.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=4852090836812488057&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4877/possible-cascading-rights-application-project-custom-entity</guid>
<pubDate>Wed, 09 Oct 2019 12:03:30 +0000</pubDate>
</item>
<item>
<title>How to show a group from ACC_ACCOUNTS in a multivalue field?</title>
<link>https://overflow.efficy.io/?qa=4875/how-to-show-a-group-from-accaccounts-in-a-multivalue-field</link>
<description>&lt;p&gt;Hey all,&lt;/p&gt;

&lt;p&gt;How can i fill in a multivalue field with the specific users of group sales?&lt;/p&gt;

&lt;p&gt;Thanks in advance!&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4875/how-to-show-a-group-from-accaccounts-in-a-multivalue-field</guid>
<pubDate>Tue, 08 Oct 2019 08:56:31 +0000</pubDate>
</item>
<item>
<title>Is it possible to add a custom option in the report server list ?</title>
<link>https://overflow.efficy.io/?qa=4851/is-it-possible-to-add-custom-option-in-the-report-server-list</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'd like to to know if it's possible to add an element in &lt;code&gt;LK_REPO_SERVER&lt;/code&gt; and configure how the option is working in efficy.&lt;/p&gt;

&lt;p&gt;I've added the option in the lookup (no problem there of course) but I don't see how the value is used for the execution of the reports.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;
</description>
<category>Reporting Solutions</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4851/is-it-possible-to-add-custom-option-in-the-report-server-list</guid>
<pubDate>Thu, 03 Oct 2019 11:27:09 +0000</pubDate>
</item>
<item>
<title>How to customise a &quot;private method&quot; in a standard serverJS file</title>
<link>https://overflow.efficy.io/?qa=4789/how-to-customise-a-private-method-in-standard-serverjs-file</link>
<description>&lt;p&gt;Hello Efficy Team, &lt;/p&gt;

&lt;p&gt;This question is related to the answer of Kristof.&lt;br&gt;
We would like to customise the method &quot;importTimesheetFromDataSet&quot;, but we cannot access the method.&lt;/p&gt;

&lt;p&gt;How could we do that ? &lt;/p&gt;

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

&lt;p&gt;Loïc&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4789/how-to-customise-a-private-method-in-standard-serverjs-file</guid>
<pubDate>Fri, 13 Sep 2019 12:42:13 +0000</pubDate>
</item>
<item>
<title>How to customize something in a module of a serverJS</title>
<link>https://overflow.efficy.io/?qa=4783/how-to-customize-something-in-a-module-of-a-serverjs</link>
<description>&lt;p&gt;Hello Efficy team, &lt;/p&gt;

&lt;p&gt;I need to customize the method &quot;importToTimesheet&quot; from serverJS/workload/timesheet&quot;.&lt;br&gt;
This method is part of literal object &quot;module&quot;.&lt;/p&gt;

&lt;p&gt;How could I do that without coping the all file ?&lt;/p&gt;

&lt;p&gt;We tried this (in a timesheet.js file, in the custom) : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/*
@import Timesheet from &quot;workload/timesheet&quot;;
*/

Timesheet.importToTimesheet = function() {
throw new Error('Hello ?');
}

return Timesheet;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But we get this error (when the page load) : &lt;/p&gt;

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

&lt;p&gt;What is the &lt;strong&gt;best practice&lt;/strong&gt; ? Coping the all file make no sens.&lt;/p&gt;

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

&lt;p&gt;Loïc&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4783/how-to-customize-something-in-a-module-of-a-serverjs</guid>
<pubDate>Fri, 13 Sep 2019 10:27:06 +0000</pubDate>
</item>
<item>
<title>Add custom field in Oppo_Prod relation Grid</title>
<link>https://overflow.efficy.io/?qa=4425/add-custom-field-in-oppoprod-relation-grid</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I need to customize the relation Oppo Prod for a client.&lt;br&gt;
I added several custom fields in Product Entity and Oppo_Prod Entity and now I want to display them on the relation's edit grid.&lt;br&gt;
But I can't find what query is executed to get the fields mapped in the GetRelationGrid Macro : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/* Custom de la relation Prod-Oppo */
TabContentProds.Oppo {[
&amp;lt;div class=&quot;content tabs-content-item&quot; id=&quot;tab-prod&quot;&amp;gt;
&amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;lt;div class=&quot;small-12 medium-1 columns&quot;&amp;gt;
&amp;lt;button type=&quot;button&quot; class=&quot;icon i-add &amp;lt;%IfReadOnly(detail='Prod', then='disabled')%&amp;gt;&quot; title=&quot;&amp;lt;%GetLabel('Add Link to Product')%&amp;gt;&quot; data-msg=&quot;addProduct&quot;&amp;gt;&amp;lt;/button&amp;gt;
&amp;lt;%AddRelationButton(entity='Prod')%&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;small-12 medium-11 columns&quot;&amp;gt;
&amp;lt;h3 class=&quot;section-title&quot;&amp;gt;&amp;lt;%GetLabel(&quot;Linked products&quot;)%&amp;gt;&amp;lt;/h3&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;%OnMultiCurrency(0=, else=|&amp;lt;div id=&quot;currcyError&quot;&amp;gt;&amp;lt;span class=&quot;error&quot;&amp;gt;&amp;lt;%GetLabel(&quot;Warning: The currency must be set before adding products&quot;)%&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;|)%&amp;gt;
&amp;lt;%Delay(1)%&amp;gt;GetRelationGrid(columndefs=&quot;GridEditColumns.txt&quot;, entity=&quot;Prod&quot;,
columns=&quot;FULLNAME,QUANTITY,PRICE,DISCOUNT,COMMENT,VAT,TOTAL,CONSO_RATE{HIDDEN},CONSO_TOTAL{HIDDEN},&amp;lt;%IfReadOnly(else=|SORTDELETE|)%&amp;gt;,PRICE1&quot;)%&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;When I try to add a column here, I get an error message because the column doesn't exist in the DS of Oppo_Prod :&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Message: DS&lt;em&gt;OppoEdit&lt;/em&gt;6&lt;em&gt;Prod&lt;/em&gt;Oppo: Field 'PRICE1' not found&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If someone can help me on this, just to find which query I have to modified, thank you all.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4425/add-custom-field-in-oppoprod-relation-grid</guid>
<pubDate>Fri, 07 Jun 2019 08:48:03 +0000</pubDate>
</item>
<item>
<title>Display attachments of a Document in Extranet</title>
<link>https://overflow.efficy.io/?qa=4188/display-attachments-of-a-document-in-extranet</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm a new one in Efficy customization (and use) and I have to do a custom Extranet for a client.&lt;br&gt;
In this custom, I have to set up an item Document : succeed.&lt;br&gt;
But I want that the grid which displays the Document's list has the exact same behavior that the Document's list in the CRM.&lt;br&gt;
Which means when I click on the attachment icon, it should display the dropdown with the attachment file inside it and I should be able to click on the file's name to download it (or open it in the browser).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=4910305819385669083&quot; alt=&quot;dropdown attachment&quot;&gt;&lt;/p&gt;

&lt;p&gt;I don't understand why my custom doesn't work on this point.&lt;/p&gt;

&lt;p&gt;My code in GridColumnsCustom.txt looks like this :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/*
 * Documents
 */

th.ATTACHMENTS.Docu {[&amp;lt;th class=&quot;icon-cell&quot;&amp;gt;&amp;lt;#H=$FIELD$;sort=true;icon=i-attach&amp;gt;&amp;lt;/th&amp;gt;]}
td.ATTACHMENTS.Docu {[&amp;lt;td class=&quot;icon-cell i-attach pointer&quot; data-dropdown=&quot;dd-files&quot; data-options=&quot;align:left&quot;
          data-dropdown-ajax=&quot;consult?page=dropdown/Files&amp;amp;count=-1&amp;amp;filter=false&amp;amp;detail=File&amp;amp;sort=K_SORT&amp;amp;entity=Docu&amp;amp;key=&amp;lt;#F=$KEY$;context=ATTR&amp;gt;&amp;amp;norecent=T&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/td&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I am pretty sure I am missing something, probably a JS part somewhere but after few hours spending on debugging and research, I still can't find what.&lt;/p&gt;

&lt;p&gt;Thank you for your help !&lt;/p&gt;
</description>
<category>Extranet / HelpDesk</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4188/display-attachments-of-a-document-in-extranet</guid>
<pubDate>Thu, 02 May 2019 13:54:23 +0000</pubDate>
</item>
<item>
<title>Customize application mobile</title>
<link>https://overflow.efficy.io/?qa=3963/customize-application-mobile</link>
<description>&lt;p&gt;Hello the team, &lt;/p&gt;

&lt;p&gt;A customer asked me today if it was possible to customize the application mobile, what could be change via conficy : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adding an Entity (I know it is possible, I just don't know how)&lt;/li&gt;
&lt;li&gt;Showing the job-title of the contacts (defined in the cont-comp relation), in the search from&lt;/li&gt;
&lt;li&gt;customize the consult of the cont-comp&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Could you enlighten me ? I found no documentation so far. It would be nice to have some (maybe a project team guide ?)&lt;/p&gt;

&lt;p&gt;Loïc&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3963/customize-application-mobile</guid>
<pubDate>Mon, 18 Feb 2019 17:51:35 +0000</pubDate>
</item>
<item>
<title>Best method to override search</title>
<link>https://overflow.efficy.io/?qa=3551/best-method-to-override-search</link>
<description>&lt;p&gt;Hi Guys,&lt;/p&gt;

&lt;p&gt;I was wondering if there's a nice and clean way to override the result of the search page with a custom function?&lt;/p&gt;

&lt;p&gt;What i need is the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Open the standard search window from a relational detailmenu with the normal search features of Efficy and the createrelation action (so you can also create a new relational record)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you click on one of the search result records, a custom function needs to start.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hopefully someone has a simple way to do it, instead of overriding all pages and macro's.&lt;/p&gt;

&lt;p&gt;Kr,&lt;/p&gt;

&lt;p&gt;Michael de Groot&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3551/best-method-to-override-search</guid>
<pubDate>Mon, 17 Sep 2018 10:25:55 +0000</pubDate>
</item>
<item>
<title>Tool to convert security values to explaination and vice versa</title>
<link>https://overflow.efficy.io/?qa=3468/tool-to-convert-security-values-explaination-and-vice-versa</link>
<description>&lt;p&gt;Hi guys i ve made a really small tool to quickly see what rights are allowed with a security value and which is the security value I need to add for a specific set of rights. &lt;/p&gt;

&lt;p&gt;find the fiddleJs here : &lt;a rel=&quot;nofollow&quot; href=&quot;https://jsfiddle.net/LouisMoisyChapel/eg4rqyt8/&quot;&gt;https://jsfiddle.net/LouisMoisyChapel/eg4rqyt8/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;this is how it works :&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=8741066940000004905&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;you can obviously set the wanted checkboxes to see the value &lt;br&gt;
Or you can set a value and see the checkboxes result.&lt;/p&gt;

&lt;p&gt;this is the full code (add it in a dialog &quot;.htm&quot; page and run it from efficy with a url like : &lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://yourcrmserver/11.0/crm/dialog?page=dialog/securityConverter.htm&quot;&gt;https://yourcrmserver/11.0/crm/dialog?page=dialog/securityConverter.htm&lt;/a&gt;&lt;br&gt;
)&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; Manage Chart&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;style type=&quot;text/css&quot;&amp;gt;
#rightselector {
border: 1px #bbb solid;
padding: 1rem;
}

#rightselector li{
list-style: none;
}

#rightselector li span{
margin-left: 1rem;
vertical-align: top;
}

.NL_switch {
position: relative;
display: inline-block;
width: 40px;
height: 24px;
}

.NL_switch input {
display: none;
}

.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}

.slider:before {
position: absolute;
content: &quot;&quot;;
height: 18px;
width: 18px;
left: 2px;
bottom: 3px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}

input:checked + .slider {
background-color: #368a55;
}

input:focus + .slider {
box-shadow: 0 0 1px #368a55;
}

input:checked + .slider:before {
-webkit-transform: translateX(18px);
-ms-transform: translateX(18px);
transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
border-radius: 20px;
}

.slider.round:before {
border-radius: 50%;
}

&amp;lt;/style&amp;gt;
&amp;lt;script&amp;gt;
var securityValue = 0;
var rights = [
{value: 1, label: &quot;Search&quot;},
{value: 2, label: &quot;Read&quot;},
{value: 4, label: &quot;Write&quot;},
{value: 8, label: &quot;Delete&quot;},
{value: 16, label: &quot;Show content&quot;},
{value: 32, label: &quot;Add content&quot;},
{value: 64, label: &quot;Update content&quot;},
{value: 128, label: &quot;Delete content&quot;},
{value: 256, label: &quot;Secure&quot;},
{value: 512, label: &quot;Secure content&quot;},
{value: 2048, label: &quot;No content&quot;}
];

/**
* Load modules for widgets
**/
function Loaded(){

requirejs([
&quot;jquery&quot;
], function($){
__debug = true;

$.each(rights, function(_index, _item){
$(&quot;#rightselector&quot;).append(&quot;&amp;lt;li&amp;gt;&amp;lt;label class='NL_switch'&amp;gt;&amp;lt;input type='checkbox' id='right_&quot; + _item.value + 
&quot;' onclick='javascript:setSecurityValue();' class='item-checkbox'&amp;gt;&amp;lt;/input&amp;gt;&amp;lt;div class='slider round'&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/label&amp;gt;&quot; + 
&quot;&amp;lt;span style='margin-bottom: 5px'&amp;gt;&quot; + _item.label + &quot;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&quot;)

});

});

console.log(&quot;Page loaded&quot;);
}

function setSecurityValue(){
securityValue = 0;
$.each(rights, function(_index, _item){
if ($(&quot;#right_&quot; + _item.value).is(&quot;:checked&quot;)) securityValue += _item.value;
});
$(&quot;#securityvalue&quot;).val(securityValue);
}

function setRights(){
securityValue = Number($(&quot;#securityvalue&quot;).val());
$.each(rights, function(_index, _item){
var temp = _item.value &amp;amp; securityValue;
if (temp === _item.value) $(&quot;#right_&quot; + _item.value).prop(&quot;checked&quot;, true);
else $(&quot;#right_&quot; + _item.value).prop(&quot;checked&quot;, false);
});
}

&amp;lt;/script&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 button-group toolbar&quot;&amp;gt;
&amp;lt;h3 class=&quot;section-title&quot;&amp;gt;
&amp;lt;%GetLabel('Security converter')%&amp;gt;
&amp;lt;/h3&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;div class=&quot;row small-12 medium-6 large-4 columns left&quot;&amp;gt;
&amp;lt;ul id=&quot;rightselector&quot;&amp;gt;

&amp;lt;/ul&amp;gt;
&amp;lt;label style=&quot;margin-left: 1.1rem;&quot;&amp;gt;Security value
&amp;lt;input type=number width=&quot;100%&quot; id=&quot;securityvalue&quot; onchange=&quot;setRights()&quot;/&amp;gt;
&amp;lt;/label&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;%UseScript('../../lib/js/jquery/jquery', fixedline=T)%&amp;gt;
&amp;lt;%UseScript('../../lib/js/fnd/foundation', fixedline=T)%&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It should be enough to make it work (tell me if not)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It would be definitly cooler if Efficy could add it on Edn.&lt;/strong&gt;&lt;br&gt;
best regards&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3468/tool-to-convert-security-values-explaination-and-vice-versa</guid>
<pubDate>Tue, 14 Aug 2018 08:49:33 +0000</pubDate>
</item>
<item>
<title>Automatic URL redirect to the right custom folder</title>
<link>https://overflow.efficy.io/?qa=3416/automatic-url-redirect-to-the-right-custom-folder</link>
<description>&lt;p&gt;I would like to automatically redirect users from our base weburl efficy.example.nl to the right custom code. &lt;/p&gt;

&lt;p&gt;So normally it already redirects to &lt;em&gt;efficy.example.nl/crm/home?PAGE=pages/logon.htm&amp;amp;custombase=&lt;strong&gt;default&lt;/strong&gt;&amp;amp;filebase=efficy&amp;amp;database=Efficy&lt;/em&gt;, but now I want to change this to &lt;/p&gt;

&lt;p&gt;&lt;em&gt;efficy.example.nl/crm/home?PAGE=pages/logon.htm&amp;amp;custombase=&lt;strong&gt;custom_prod&lt;/strong&gt;&amp;amp;filebase=efficy&amp;amp;database=Efficy&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Since Efficy11 I'm not sure how to set these redirect settings. I tried a lot, but until now without result.&lt;/p&gt;

&lt;p&gt;Thanks for your help!&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3416/automatic-url-redirect-to-the-right-custom-folder</guid>
<pubDate>Tue, 24 Jul 2018 12:21:52 +0000</pubDate>
</item>
<item>
<title>Customize servicy filesharing</title>
<link>https://overflow.efficy.io/?qa=3357/customize-servicy-filesharing</link>
<description>&lt;p&gt;I would like to customize the pages used for the new file-sharing functionality. Of course it would be nice if I can do this without editing the standard code. Is this possible, and how should I do this properly?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3357/customize-servicy-filesharing</guid>
<pubDate>Fri, 29 Jun 2018 06:40:15 +0000</pubDate>
</item>
<item>
<title>Content security feature default security value not selectable</title>
<link>https://overflow.efficy.io/?qa=3354/content-security-feature-default-security-value-selectable</link>
<description>&lt;p&gt;In conficy &lt;/p&gt;

&lt;p&gt;if I want to set the default security of a group about an entity that has the EntitiesWithSecureContent option. ( +  CONTENTSECURED field)&lt;/p&gt;

&lt;p&gt;I don't have the contentSecurity options in the list of security to apply. this is hardly costumizable since the security option list is managed by a tag &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&amp;lt;%GetDefaultSecurityList()%&amp;gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;that is not overridable...&lt;/p&gt;

&lt;p&gt;is there a way to change the default security level with a contentsecurity level?&lt;/p&gt;

&lt;p&gt;Of course i can directly change it in DB with sql but Stephane Roncin made me realize that the default conficy page will probably stop to work since those values are not displayable...&lt;/p&gt;

&lt;p&gt;Thanks for your feed back &lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3354/content-security-feature-default-security-value-selectable</guid>
<pubDate>Mon, 25 Jun 2018 14:48:23 +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>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>'google' not defined error after applying fix CFT-2017-81085</title>
<link>https://overflow.efficy.io/?qa=2765/google-not-defined-error-after-applying-fix-cft-2017-81085</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;A client has custom on search window to search companies in specific radius. I applied the fix mentioned in CFT-2017-81085 (add mapGrid and mapPick pages + override functions in Places.JS and replace it in custom.js), after i applied the fix, and error starts to appear on console saying &quot;google is not defined&quot;.&lt;/p&gt;

&lt;p&gt;Any one has same issue on custom related to google maps? or any advice what to check or missing?&lt;/p&gt;

&lt;p&gt;Thank you.&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=2765/google-not-defined-error-after-applying-fix-cft-2017-81085</guid>
<pubDate>Thu, 23 Nov 2017 13:51:03 +0000</pubDate>
</item>
<item>
<title>How can I use CopyDetails2 to copy all fields of a relation?</title>
<link>https://overflow.efficy.io/?qa=2764/how-can-i-use-copydetails2-to-copy-all-fields-of-a-relation</link>
<description>&lt;p&gt;As a follow up of my other question: &lt;a rel=&quot;nofollow&quot; href=&quot;https://overflow.efficy.com/?qa=2741/how-to-automatically-add-serie-products-linked-to-document&quot;&gt;https://overflow.efficy.com/?qa=2741/how-to-automatically-add-serie-products-linked-to-document&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;I used CopyDetails2 in my serverscript to copy the linked products from one document 'template' to another document. The copy is coming from an existing template document with PRODUCTS, PRICES and QUANTITIES.The only problem I've got now is to also copy the column QUANTITY. Now it only copy's the standard settings for every product. &lt;/p&gt;

&lt;p&gt;So I've got 2 questions now:&lt;br&gt;
1. How can I succesfully copy all details from the template, including the QUANTITY, PRICE  and K&lt;em&gt;SORT?&lt;br&gt;
2. Is it a problem that K&lt;/em&gt;RELATION in DOCU&lt;em&gt;PROD is used more than once, as long as the K&lt;/em&gt;DOCUMENT and K_PRODUCT is different?&lt;/p&gt;

&lt;p&gt;Would be perfect if there is a solution for this. Thanks for your help!&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Database.CopyDetails2(editHandle, 31, templateKey, [ntProd], false, false);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;My Complete code in editCmd.js&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function docuAddProducts() {
    $.ajax({
        //deze regel gaat er nog vanuit dat de VM wordt gevulv vanuit een opportunity. Zo aanpassen dat dit flexibel wordt, ook voor projecten.
        url: format(&quot;dialog?_macrofile=MacroAjax&amp;amp;_macro=RunScript&amp;amp;file=Winkelwagentje;libjson&amp;amp;func=docuAddProducts&amp;amp;editHandle={editHandle}&quot;),
        type: &quot;GET&quot;,
        success: function (html, textStatus, jqXHR) {
            if (IsNotEfficyErrorHtml(html, function(errorMsg) {alert(errorMsg)})) {
                CebPerform(&quot;CEB_STATE&quot;);
            }
        }
    });
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And my complete code in the serverscript&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function docuAddProducts() { 
var editHandle = StrToFloatDef(Request.Argument(&quot;editHandle&quot;), 0);
var Oppo = Database.GetMainDetail(editHandle, ntOppo);
var Proj = Database.GetMainDetail(editHandle, ntProj);
var dienst = 0

if (Oppo != 0){ 
    var oppoContext = Database.OpenConsultContext(ntOppo);
    var oppoDS = Database.Consult(oppoContext, Oppo, true);
    var dienst = oppoDS.FieldByName('F_DIENST').AsString;
    docuProdCopyDetails (dienst);
    Database.CloseContext(oppoContext);
    return;
}

if (Proj !=0){
    var projContext = Database.OpenConsultContext(ntProj);
    var projDS = Database.Consult(projContext, Proj, true);
    var dienst = projDS.FieldByName('F_DIENST').AsString;
    docuProdCopyDetails (dienst);
    Database.CloseContext(projContext);
    return;

}

function docuProdCopyDetails(dienst){
    var SQL = &quot;select K_DOCU_TEMPLATE from LK_OPPO_DIENST where K_OPPO_DIENST = :Param1&quot;; //per dienst wordt 1 VM aangewezen als template
    var tempContext = Database.OpenTemporaryContext();
    var tempDS = Database.ExecuteSystemSQLQuery(0, tempContext, SQL, dienst, true, true, 0);
    var templateKey = tempDS.FieldByName('K_DOCU_TEMPLATE').Value; //templateKey = de k_document van de template VM met het winkelwagentje per dienst
    if (templateKey &amp;gt; 0) {
        try {
            Database.CopyDetails2(editHandle, 31, templateKey, [ntProd], false, false); //31 = Documents
        }
        catch (error) {
        }               
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2764/how-can-i-use-copydetails2-to-copy-all-fields-of-a-relation</guid>
<pubDate>Thu, 23 Nov 2017 10:25:59 +0000</pubDate>
</item>
<item>
<title>How to automatically add a serie of products linked to a document?</title>
<link>https://overflow.efficy.io/?qa=2741/how-to-automatically-add-serie-of-products-linked-document</link>
<description>&lt;p&gt;See screenshot below. I would like to use a button which triggers a serie (&amp;gt;1) of products automatically linked to the document. The serie of products to be loaded depends on the linked project and is based on the type of project. This last part is less important, my main question is how to realize the first part: how to add multiple products to the document.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=5491577173252996204&quot; alt=&quot;How to automatically add products here&quot;&gt;&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2741/how-to-automatically-add-serie-of-products-linked-document</guid>
<pubDate>Fri, 03 Nov 2017 12:53: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>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 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>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>
<item>
<title>How to disable the copy of PROJ - COMP links to DOCU - COMP when creating a new document?</title>
<link>https://overflow.efficy.io/?qa=2407/disable-copy-proj-comp-links-docu-comp-when-creating-document</link>
<description>&lt;p&gt;Hi to all,&lt;/p&gt;

&lt;p&gt;My customer doesn't want to keep the links to COMP when he create a DOCUment  from a PROJect...&lt;/p&gt;

&lt;p&gt;What is the best way to disable this standard functionality ? &lt;/p&gt;
</description>
<category>Other</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2407/disable-copy-proj-comp-links-docu-comp-when-creating-document</guid>
<pubDate>Tue, 21 Mar 2017 17:14:19 +0000</pubDate>
</item>
<item>
<title>Lock remains after a CloseContext in serverscripts</title>
<link>https://overflow.efficy.io/?qa=2360/lock-remains-after-a-closecontext-in-serverscripts</link>
<description>&lt;p&gt;Hi again dear community^^, &lt;/p&gt;

&lt;p&gt;I have a serverscript that is run by the user &quot;admin&quot; through the scheduleradmin.exe and that create a company record : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var ec = Database.OpenEditContext(ntComp, 0, false);

            try{
                Database.UpdateFields(ec, 0, VarArrayOf([&quot;NAME&quot;]), VarArrayOf([compName])); 

                Database.CommitChanges(ec, true);

                Database.Log(&quot;created : &quot; + ds.FieldByName(&quot;K_COMPANY&quot;).AsInteger);
            }
            finally{
                Database.CloseContext(ec);
                Database.log('finally');
            }
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;but right after my code is executed within the lock timeout delay, if I go with my own user on the created company, I have the currently locked record error.&lt;/p&gt;

&lt;p&gt;Is that normal?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2360/lock-remains-after-a-closecontext-in-serverscripts</guid>
<pubDate>Wed, 15 Mar 2017 16:12:29 +0000</pubDate>
</item>
<item>
<title>Prototypes override in serverscripts</title>
<link>https://overflow.efficy.io/?qa=2359/prototypes-override-in-serverscripts</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;in the serverscripts contexts (like a taskscheduler) I try to use some function that are not implemented (eg : Array.prototype.splice, or indexof) by the efficy js compiler (? am I right?).&lt;/p&gt;

&lt;p&gt;anyway, i used in my script a typical prototype's override like : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Array.prototype.splice = function (_index, _length, _elems){
    var result = new Array();
    var i = 0;

    while (i &amp;lt; _index){
        result.push(this[i]);
        i++;
    }

    if (_elems) for (var j=0; j&amp;lt;_elems.length; j++) result.push(_elems[j]);

    i = _index + _length;

    while (i&amp;lt;this.length){
        result.push(this[i]);
        i++;
    }

    this = result;
};
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;At this point I don't even care about my code working or not, being optimized or not...&lt;/p&gt;

&lt;p&gt;Then in my code I try to call my prototype by using a classic : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;myArray.splice(1, 2);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;but efficy throw me an error like my method doesn't exist...&lt;/p&gt;

&lt;p&gt;I can only assume that the prototype I override is not the one called by my code after the Efficy dual language compiler has done its work.&lt;/p&gt;

&lt;p&gt;Am I right in my interpretation? &lt;br&gt;
what would you recommand me to use to make those kind of overrides?  &lt;br&gt;
is it forecast to implement a real JS engine to Efficy? (please tell me you will convert efficy dll as a nodejs application)&lt;/p&gt;

&lt;p&gt;meanwhile if you need to use those kind of functionnalities this is what I ve temporarly done : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function splice(_array, _index, _length, _elems){
    var result = new Array();
    var i = 0;

    while (i &amp;lt; _index){
        result.push(_array[i]);
        i++;
    }

    if (_elems) for (var j=0; j&amp;lt;_elems.length; j++) result.push(_elems[j]);

    i = _index + _length;

    while (i&amp;lt;_array.length){
        result.push(_array[i]);
        i++;
    }

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

&lt;p&gt;and then I call it this way : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;myTab = splice(myTab, 1, 2);
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2359/prototypes-override-in-serverscripts</guid>
<pubDate>Wed, 15 Mar 2017 14:57:52 +0000</pubDate>
</item>
<item>
<title>usinge parameter in SQL statement in queryview</title>
<link>https://overflow.efficy.io/?qa=2354/usinge-parameter-in-sql-statement-in-queryview</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm getting error &quot;Custom view has been disabled&quot; when i try use SQL statement in condition with passing parameter query &quot;userkey&quot;.&lt;/p&gt;

&lt;p&gt;is it possible to do that? like this:&lt;/p&gt;

&lt;p&gt;comp&lt;em&gt;user.keyOfUser in select F&lt;/em&gt;SRG from LK&lt;em&gt;SECURITY&lt;/em&gt;MATRIX where F_USER= 'userkey'&lt;/p&gt;

&lt;p&gt;Thank you in advance for your help.&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=2354/usinge-parameter-in-sql-statement-in-queryview</guid>
<pubDate>Mon, 13 Mar 2017 13:38:21 +0000</pubDate>
</item>
<item>
<title>best practice logon controls Custom and DB question</title>
<link>https://overflow.efficy.io/?qa=2288/best-practice-logon-controls-custom-and-db-question</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;with efficy 10 what would be the cleanest option, to block my users from using a test DB with a PROD custom and a Prod DB with a test Custom?&lt;/p&gt;

&lt;p&gt;I ve several ideas here but what do you recommand me?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2288/best-practice-logon-controls-custom-and-db-question</guid>
<pubDate>Mon, 13 Feb 2017 17:06:22 +0000</pubDate>
</item>
<item>
<title>How to sortactions in a document</title>
<link>https://overflow.efficy.io/?qa=2220/how-to-sortactions-in-a-document</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;When several actions are linked to a document the order seems to be the K&lt;em&gt;ACTIONS Asc.&lt;br&gt;
I would like to change this order to a D&lt;/em&gt;begin asc order, but I can't find any K&lt;em&gt;SORT or any SyS&lt;/em&gt;query about this...&lt;/p&gt;

&lt;p&gt;This is used to merge a document and it's more than convenient to have my actions ordered this way....&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=2220/how-to-sortactions-in-a-document</guid>
<pubDate>Tue, 24 Jan 2017 16:10:10 +0000</pubDate>
</item>
<item>
<title>How to compare old and new value in a workflow</title>
<link>https://overflow.efficy.io/?qa=2165/how-to-compare-old-and-new-value-in-a-workflow</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;in Efficy 10 SP1 this is my workflow function &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function BeforeCommitActi(EditHandle, Inserted){
var ds = Database.GetMasterDataSet(EditHandle, 0);

var result = &quot;&quot;;

result = &quot;old : &quot; + Database.OldFieldValue(EditHandle, 0, &quot;DURATION&quot;);
result += &quot; - &quot;;
result += &quot;new : &quot; + ds.FieldByName(&quot;DURATION&quot;).AsString;

throw new Error(result);

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

&lt;p&gt;after modifying an action duration from 3h to 3h30 my error message only contains the old value : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Message: &quot;old : 10800 - new : 10800&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;How can I access the new one?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2165/how-to-compare-old-and-new-value-in-a-workflow</guid>
<pubDate>Mon, 09 Jan 2017 09:37:28 +0000</pubDate>
</item>
</channel>
</rss>