<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged multivalue</title>
<link>https://overflow.efficy.io/?qa=tag/multivalue</link>
<description>Powered by Question2Answer</description>
<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>Multivalue in Email template in Products grid (Efficy 11.3)</title>
<link>https://overflow.efficy.io/?qa=5362/multivalue-in-email-template-in-products-grid-efficy-11-3</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I'm struggling with a emailtemplate and a multivalue field. I haven't been able to find the right syntax to have the multivalues values shown in the grid of Products.&lt;br&gt;
I've tried all of these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&amp;lt;#F=F_ORIGIN;TYPE=MULTIVALUE&amp;gt;&lt;/li&gt;
&lt;li&gt;&amp;lt;#F=F_ORIGIN;MULTIVALUE=T&amp;gt;&lt;/li&gt;
&lt;li&gt;&amp;lt;#F=F_ ORIGIN;TYPE=MULTIVALUE;TABLEID=30022;FIELDID=F_ORIGIN;SEPARATOR=, ;context=tag&amp;gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of these give the values of the keys and not the text values.&lt;/p&gt;

&lt;p&gt;Does anyone know the right syntax to have the values shown in the email?&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br&gt;
Jeroen&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5362/multivalue-in-email-template-in-products-grid-efficy-11-3</guid>
<pubDate>Mon, 16 Mar 2020 08:41:53 +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>Showing fields issu on categorie tutorial</title>
<link>https://overflow.efficy.io/?qa=3777/showing-fields-issu-on-categorie-tutorial</link>
<description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;just for telling if someone have the same issue. &lt;br&gt;
I got some error of editHandle in following the tutorial to display fields in consult inside category with the category form responsive because of a multivalue and lookup inside consult.&lt;/p&gt;

&lt;p&gt;I've send a mail to kristof, to let it know : but i've wrote a litle code to overcome this mistake, it's maybe not the best, but it's working till waiting to a better solution from Kristoph :).&lt;/p&gt;

&lt;p&gt;Just add this code inside FormFieldsEditCustom.txt. It should work. :)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/**
* Rewrite field for displaying fields inside category for comp
*/
field.MULTIVALUE {[
&amp;lt;%If(&quot;%%GetArgument('page', context=ATTR)&quot;, value=&quot;pages/desktop/Consult.htm&quot;,  then=|&amp;lt;textarea id=&quot;a-CATEGORY-$CATG$-$FIELD$&quot; readonly&amp;gt;&amp;lt;%GetField('$FIELD$', type=&quot;MULTIVALUE&quot;, separator=&quot;, &quot;, context=&quot;TEXT&quot;)%&amp;gt;&amp;lt;/textarea&amp;gt;|,else=|
&amp;lt;%GetEdit('$FIELD$',
data-ajax-url='dialog?_macro=JsonMultiValueList&amp;amp;_macrofile=MacroAjax&amp;amp;edithandle=&amp;lt;%GetEditHandle()%&amp;gt;&amp;amp;field=$FIELD$&amp;amp;detail=&amp;lt;%GetArgument(&quot;DETAIL&quot;,context=ATTR)%&amp;gt;&amp;amp;detailkey=&amp;lt;%GetArgument(&quot;DETAILKEY&quot;,context=ATTR)%&amp;gt;',
data-json='{&amp;lt;%GetField(&quot;$FIELD$&quot;, type=&quot;MULTIVALUE&quot;, json=T, context=ATTR)%&amp;gt;}')%&amp;gt;
|)%&amp;gt;
]}
field.CATG_MULTIVALUE {[
&amp;lt;%If(&quot;%%GetArgument('page', context=ATTR)&quot;, value=&quot;pages/desktop/Consult.htm&quot;,  then=|&amp;lt;textarea id=&quot;b-CATEGORY-$CATG$-$FIELD$&quot; readonly&amp;gt;&amp;lt;%GetField('$FIELD$', category=&quot;$CATG$&quot;, type=&quot;MULTIVALUE&quot;, separator=&quot;, &quot;, context=&quot;TEXT&quot;)%&amp;gt;&amp;lt;/textarea&amp;gt;|,else=|
&amp;lt;%GetEdit('$FIELD$', category=&quot;$CATG$&quot;,
        data-ajax-url='dialog?_macro=JsonMultiValueList&amp;amp;_macrofile=MacroAjax&amp;amp;edithandle=&amp;lt;%GetEditHandle()%&amp;gt;&amp;amp;field=CATEGORY-$CATG$-$FIELD$&amp;amp;detail=&amp;lt;%GetArgument(&quot;DETAIL&quot;,context=ATTR)%&amp;gt;&amp;amp;detailkey=&amp;lt;%GetArgument(&quot;DETAILKEY&quot;,context=ATTR)%&amp;gt;',
        data-json='{&amp;lt;%GetField(&quot;$FIELD$&quot;, category=&quot;$CATG$&quot;, type=&quot;MULTIVALUE&quot;, json=T, context=ATTR)%&amp;gt;}')%&amp;gt;
        |)%&amp;gt;
]}
field.LOOKUP {[
&amp;lt;%If(&quot;%%GetArgument('page', context=ATTR)&quot;, value=&quot;pages/desktop/Consult.htm&quot;,  then=|&amp;lt;textarea id=&quot;c-CATEGORY-$CATG$-$FIELD$&quot; readonly&amp;gt;&amp;lt;%GetField(&quot;R_$FIELD$&quot;, context=TEXT)%&amp;gt;&amp;lt;/textarea&amp;gt;|,else=|
&amp;lt;%GetEdit(&quot;$FIELD$&quot;, type=&quot;LOOKUP&quot;, data-placeholder=&quot;&amp;lt;%GetLabel('Select Value')%&amp;gt;...&quot;)%&amp;gt;
|)%&amp;gt; ]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Have a nice working day :).&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3777/showing-fields-issu-on-categorie-tutorial</guid>
<pubDate>Tue, 18 Dec 2018 12:20:19 +0000</pubDate>
</item>
<item>
<title>Efficy10: Export to Excel a MultiValue field ?</title>
<link>https://overflow.efficy.io/?qa=3181/efficy10-export-to-excel-a-multivalue-field</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

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

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

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

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

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

&lt;p&gt;PS2: I know that this Excel Export has been completely reviewed in Efficy 11 and I tested it and it work for Multivalue fields, but cannot upgrade the customer the GoLive date is very close.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3181/efficy10-export-to-excel-a-multivalue-field</guid>
<pubDate>Fri, 25 May 2018 10:32:45 +0000</pubDate>
</item>
<item>
<title>Data Synchro - Import data in multivalue field</title>
<link>https://overflow.efficy.io/?qa=2860/data-synchro-import-data-in-multivalue-field</link>
<description>&lt;p&gt;Hi all!&lt;/p&gt;

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

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

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

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

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

&lt;p&gt;Can anyone help me ?&lt;br&gt;
Thanks a lot&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2860/data-synchro-import-data-in-multivalue-field</guid>
<pubDate>Fri, 29 Dec 2017 10:27:56 +0000</pubDate>
</item>
<item>
<title>Multivalue in Edit context Products tab</title>
<link>https://overflow.efficy.io/?qa=2722/multivalue-in-edit-context-products-tab</link>
<description>&lt;p&gt;Has anyone already added a multivalue to the product tab in edit context ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2722/multivalue-in-edit-context-products-tab</guid>
<pubDate>Tue, 17 Oct 2017 14:52:02 +0000</pubDate>
</item>
<item>
<title>Filter Multiselect filed in category based on value on main Tab</title>
<link>https://overflow.efficy.io/?qa=2695/filter-multiselect-filed-in-category-based-on-value-main-tab</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm trying to filter multi-select field in category based on value chosen in lookup on Main tab in Cases. I've tried to achieb this by adding this piece of JS to MacroEditSCustom&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if($('#CASETYPE').val()){
            var newDataAjaxURL = &quot;dialog?_macro=JsonDynaMultiValueListCaseCat&amp;amp;_macrofile=MacroAjax&amp;amp;edithandle=&amp;lt;%GetEditHandle()%&amp;gt;&amp;amp;field=CATEGORY-CASE$GENERAL-F_CATEGORY&amp;amp;casetype=&quot; + $('#CASETYPE').val();
            var $FieldName = $(&quot;#CATEGORY-CASE$GENERAL-F_CATEGORY&quot;)
            if($FieldName.length){
                $FieldName.attr('data-ajax-url', newDataAjaxURL);
            }
        }
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and the definition in MacroAjaxCustom&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;JsonDynaMultiValueListCaseCat {[&amp;lt;%Delay(0)%&amp;gt;RunQuery(id='DynaMultiValueListCaseCat', 
    SQL='Select F_CATEGORY as F_CATEGORY_EN, * from LK_CASE_CATEGORY CC where f_case_type like :param1 and disabled = 0 order by k_sort',
    Param1=&quot;%;&amp;lt;%GetArgument('casetype')%&amp;gt;;%&quot;
    )%&amp;gt;
    &amp;lt;%Delay(0)%&amp;gt;GetDataGrid(query='DynaMultiValueListCaseCat', count=-1, norecords='', sort='F_CATEGORY_&amp;lt;%GetLanguage()%&amp;gt;' , nolinefeed=T, templatetext=|[&amp;lt;#repeat&amp;gt;
    {
         &quot;id&quot;:&amp;lt;#F=K_CASE_CATEGORY&amp;gt;
        ,&quot;text&quot;:&quot;&amp;lt;#F=F_CATEGORY_&amp;lt;%GetLanguage()%&amp;gt;;jsontext=T;nospace=T&amp;gt;&quot; 

    }&amp;lt;#S=;SEPARATOR=,&amp;gt;&amp;lt;/#repeat&amp;gt;
]|)%&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Plus changing CASETYPE in Forms with definition LOOKUPMASTER and add it in FormFieldsEditCustom&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;field.LOOKUPMASTER {[&amp;lt;%GetEdit(&quot;$FIELD$&quot;, type=&quot;LOOKUP&quot;, onchange=&quot;JavaScript:CebPerform('CEB_STATE');&quot;)%&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;so every time user chooses new value it refresh the page and set new URL on attribute &quot;data-ajax-url&quot;.&lt;/p&gt;

&lt;p&gt;It works fine if i save directly the case, but if i hit the button &quot;apply&quot; then it's not working, even the attribute has the right URL, but on clicking on the field i get the standard ajax-url&lt;/p&gt;

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

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

&lt;p&gt;Please advise.&lt;br&gt;
Thank you for your help in advance.&lt;br&gt;
Best Regards.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2695/filter-multiselect-filed-in-category-based-on-value-main-tab</guid>
<pubDate>Wed, 13 Sep 2017 13:36:16 +0000</pubDate>
</item>
</channel>
</rss>