<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged consult</title>
<link>https://overflow.efficy.io/?qa=tag/consult</link>
<description>Powered by Question2Answer</description>
<item>
<title>Loading form depending on manager attached into an opportunity.</title>
<link>https://overflow.efficy.io/?qa=6253/loading-form-depending-manager-attached-into-opportunity</link>
<description>&lt;p&gt;I need to migrate a macro from 11.0 version to 12.0.&lt;br&gt;
Previously the key of the form was loaded by a loadServerJs + RunScript &lt;code&gt;ConsultSectionsForm.Oppo {[&amp;lt;%LoadServerJs(&quot;functiontags/userrole&quot;)%&amp;gt;&amp;lt;%RunScript(&quot;getConsultFormOppo&quot;)%&amp;gt;]}&lt;/code&gt; &lt;br&gt;
The script still working because if it call into an other macro the number is well call back with number.&lt;br&gt;
The problem is that the same call into a 12.0 version return an Efficy error.&lt;br&gt;
&lt;strong&gt;&lt;em&gt;TTagGetFormSections - Incorrect Value &quot;&amp;lt;%LoadServerJs(&quot;functiontags/userrole&quot;)%&amp;gt;&amp;lt;%RunScript(&quot;getConsultFormOppo&quot;)%&amp;gt;&quot; for Argument &quot;FORM&quot;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Call GetFormSections(form=&amp;lt;%LoadServerJs(&quot;functiontags/userrole&quot;)%&amp;gt;&amp;lt;%RunScript(&quot;getConsultFormOppo&quot;)%&amp;gt;, consulthandle=10, fielddefs=FormFieldsConsult, start=0, end=0, noformbounds=T, nosectiontitle=T, class=main small-12 medium-5 columns)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;does any one of you already migrated the kind of custom ? &lt;/p&gt;
</description>
<category>Errors</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6253/loading-form-depending-manager-attached-into-opportunity</guid>
<pubDate>Mon, 16 Aug 2021 15:47:00 +0000</pubDate>
</item>
<item>
<title>Making a consultViewCustom to launch custom script @display of screen in consult mode</title>
<link>https://overflow.efficy.io/?qa=3629/making-consultviewcustom-launch-custom-display-consult</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;i would like to make a consultViewCustom system, like what we do for making an editViewCustom.&lt;/p&gt;

&lt;p&gt;so, i've made a consultView.js&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;define([
    'require',
    'standard/views/consultView'
], function(require, ConsultView) {

    // Conditionally load custom consult views
    console.log('Conditionally load custom consult views');
    switch (Model('entity')) {
        case &quot;Comp&quot;:
            require([&quot;custom/views/consultViewComp&quot;], function(consultViewCustom) {consultViewCustom.start();});
            break;
    }

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

&lt;p&gt;who is loaded with &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;it is working, but it seems that it is not always loaded,  i need to make a F5 to load it.&lt;/p&gt;

&lt;p&gt;i suppose that &lt;code&gt;ConsultView.start();&lt;/code&gt; (from consult.js) is executed when we do F5 but not when we for exemple make a company search and click on it to consult the company.&lt;/p&gt;

&lt;p&gt;I don't see where i can force to start again my consultView  (or any other/better way to do that)&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3629/making-consultviewcustom-launch-custom-display-consult</guid>
<pubDate>Fri, 26 Oct 2018 07:58:23 +0000</pubDate>
</item>
<item>
<title>Show field in consult if category is activated</title>
<link>https://overflow.efficy.io/?qa=3579/show-field-in-consult-if-category-is-activated</link>
<description>&lt;p&gt;Hello Efficy team, &lt;/p&gt;

&lt;p&gt;I struggle to solve a simple problem.&lt;/p&gt;

&lt;p&gt;I have a category in companies. The customer asked me to format some information and to show the information only when the field is different form zero and the customer have rights on the category. So I did a custom field : &lt;/p&gt;

&lt;h3&gt;FormFieldsConsult&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;%Macro(FieldRights
        , $myfield$=`%%GetField('$FIELD$', category=&quot;COMP$CHIFFRES&quot;, nolabel=T)`
        , $value$=`%%GetField('$FIELD$', category='$CATG$')`
        , $display$=| €|
 )%&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;MacroConsult&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;    &amp;lt;dt&amp;gt;&amp;lt;%OnArgument(Argvalue='$value$',condition='case', value='', then=||, value=0, then=||, else=`&amp;lt;%LoadScript(&quot;CommonLibrary&quot;)%&amp;gt;&amp;lt;%RunScript(formatCurrency, value='$value$')%&amp;gt; $display$ `)%&amp;gt;&amp;lt;/dt&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;My code work as expected for a company were the category has been activated.&lt;/p&gt;

&lt;p&gt;But if the category is not activated, it show &quot;0&quot;.&lt;/p&gt;

&lt;p&gt;I tried this : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt; &amp;lt;dd&amp;gt;&amp;lt;%OnArgument(Argvalue='$value$', condition='case', value='', then=||, value=0, then=||, else=|$myfield$|)%&amp;gt;&amp;lt;/dd&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But is show &quot;0&quot; again.&lt;/p&gt;

&lt;p&gt;I did activate the option &quot;displayed if not empty&quot; in conficy  : &lt;/p&gt;

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

&lt;p&gt;How can I test if the category were activated ? I thought of an SQL query but it seams a bit overkill.&lt;/p&gt;

&lt;p&gt;The client is in Efficy 10sp2+. If there is a solution in Efficy 11, this also good (the upgrade is planned).&lt;/p&gt;

&lt;p&gt;Thanks in advance, &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=3579/show-field-in-consult-if-category-is-activated</guid>
<pubDate>Mon, 01 Oct 2018 11:56:32 +0000</pubDate>
</item>
<item>
<title>Set timeline als default detail in Consult that it ALWAYS opens</title>
<link>https://overflow.efficy.io/?qa=1558/set-timeline-als-default-detail-in-consult-that-always-opens</link>
<description>&lt;p&gt;Set timeline als default detail in Consult that it ALWAYS opens on the timeline when consulting a Contact / Company ...&lt;/p&gt;

&lt;p&gt;How best to do this ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1558/set-timeline-als-default-detail-in-consult-that-always-opens</guid>
<pubDate>Tue, 26 Apr 2016 13:01:20 +0000</pubDate>
</item>
<item>
<title>Efficy 10: How does a category formatted memo field can be shown formatted in consult mode</title>
<link>https://overflow.efficy.io/?qa=1409/efficy-does-category-formatted-field-shown-formatted-consult</link>
<description>&lt;p&gt;Hi,&lt;br&gt;
I have a category formatted memo field F_INFORMATIONS in PROD$COLLABORATEUR category table.&lt;br&gt;
How can it be shown formatted in Prod consult category page?&lt;/p&gt;

&lt;p&gt;I've tried to define this field in FormFieldsConsultCustom.txt file as:&lt;br&gt;
&lt;code&gt;field.F_INFORMATIONS {[&amp;lt;dt&amp;gt;&amp;lt;%OnField(&quot;F_INFORMATIONS&quot;, category=&quot;PROD$COLLABORATEUR&quot;, then=|&amp;lt;div class=&quot;consult-memo&quot;&amp;gt;
        &amp;lt;textarea&amp;gt;&amp;lt;%GetField('F_INFORMATIONS', category=&quot;PROD$COLLABORATEUR&quot;, type=&quot;RAWHTML&quot;)%&amp;gt;&amp;lt;/textarea&amp;gt;
        &amp;lt;iframe src =&quot;&quot; frameborder=&quot;0&quot;&amp;gt; &amp;lt;/iframe&amp;gt;
    &amp;lt;/div&amp;gt;|)%&amp;gt;&amp;lt;/dt&amp;gt;]}
But it doesn't work
Thanks for your help.
best regards
Anne&lt;/code&gt;:&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1409/efficy-does-category-formatted-field-shown-formatted-consult</guid>
<pubDate>Mon, 14 Mar 2016 15:12:34 +0000</pubDate>
</item>
<item>
<title>Consult layout - alignement fields without icon</title>
<link>https://overflow.efficy.io/?qa=1175/consult-layout-alignement-fields-without-icon</link>
<description>&lt;p&gt;When we have in the same section of a consult form fields with an icon and fields without, how can we get the field part on the same line ?&lt;/p&gt;

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

&lt;p&gt;the phone field ( which has class i-Phone )&lt;br&gt;
and another field ( for exemple street ).&lt;/p&gt;

&lt;p&gt;When you put these 2 in the same section, the street field will start in the same horizontal place as the icon. But better would be that the fields itself are on the same horizontal place.&lt;/p&gt;

&lt;p&gt;Is there a &quot;fake&quot; class that just puts the empty space to achieve this ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1175/consult-layout-alignement-fields-without-icon</guid>
<pubDate>Tue, 12 Jan 2016 14:57:11 +0000</pubDate>
</item>
<item>
<title>Efficy 2014 - How to change adding Products to Opportunity in consult mode</title>
<link>https://overflow.efficy.io/?qa=654/efficy-2014-change-adding-products-opportunity-consult-mode</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;In Efficy 2012, Products was added to Opportunity in in consult mode.&lt;/p&gt;

&lt;p&gt;How can we have this back to avoid multiple clicks to access additional information in PROD_OPPO relation?&lt;/p&gt;

&lt;p&gt;What could be the issues?&lt;/p&gt;

&lt;p&gt;Regards&lt;br&gt;
Anne&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=654/efficy-2014-change-adding-products-opportunity-consult-mode</guid>
<pubDate>Mon, 17 Aug 2015 15:15:29 +0000</pubDate>
</item>
<item>
<title>Modify Consult card to display more info (sections)</title>
<link>https://overflow.efficy.io/?qa=572/modify-consult-card-to-display-more-info-sections</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I want to show extra info in Consult mode for Company, i added 2 more customized sections. but they are not displayed. i moved them to be placed before &quot;Contact&quot; and they are displayed. but info from &quot;Contact&quot; &amp;amp; &quot;Address&quot; have been disappeared.&lt;/p&gt;

&lt;p&gt;so how can i display info from all desired Sections in Consult mode of Company?&lt;/p&gt;

&lt;p&gt;Thank you.&lt;br&gt;
Best Regards.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=572/modify-consult-card-to-display-more-info-sections</guid>
<pubDate>Mon, 27 Jul 2015 13:08:29 +0000</pubDate>
</item>
</channel>
</rss>