<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged master-detail</title>
<link>https://overflow.efficy.io/?qa=tag/master-detail</link>
<description>Powered by Question2Answer</description>
<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>
<item>
<title>Master-Detail on a Category doesn't work for the Detail field in Efficy 10 SP2</title>
<link>https://overflow.efficy.io/?qa=2050/master-detail-category-doesnt-work-for-detail-field-efficy</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I'm doing a conversion of a customer to Efficy 10SP2 and this customer uses a Master-Detail in a Category. I'm able to fill in the Master-field, but when I try to fill in the Detail-field I get the following error:&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=14416775958443057872&quot; alt=&quot;Error when clicking on the Detail-field&quot;&gt;&lt;/p&gt;

&lt;p&gt;Is this a known issue?&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br&gt;
Jeroen Floor&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2050/master-detail-category-doesnt-work-for-detail-field-efficy</guid>
<pubDate>Mon, 28 Nov 2016 16:13:13 +0000</pubDate>
</item>
<item>
<title>Efficy 2014 and Master Detail Fields</title>
<link>https://overflow.efficy.io/?qa=167/efficy-2014-and-master-detail-fields</link>
<description>&lt;p&gt;How to create a the Master Detail in Efficy 2014 ? &lt;/p&gt;

&lt;p&gt;I followed the information in the partner pdf with the example of Car and Brand field but it seems not to work, the result is that the list is not filtered.&lt;/p&gt;

&lt;p&gt;Do we have something else in 2014 ?&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;br&gt;
Stéphane RONCIN&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=167/efficy-2014-and-master-detail-fields</guid>
<pubDate>Tue, 27 Jan 2015 13:07:15 +0000</pubDate>
</item>
</channel>
</rss>