<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged parameter</title>
<link>https://overflow.efficy.io/?qa=tag/parameter</link>
<description>Powered by Question2Answer</description>
<item>
<title>issue in native sql request parameter in relationColumns.txt</title>
<link>https://overflow.efficy.io/?qa=6155/issue-in-native-sql-request-parameter-relationcolumns-txt</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;In detail tab of edit window, we aim to overload the display of companies, using custom field (F_ACRONYME) instead of field NAME.&lt;/p&gt;

&lt;p&gt;To do that, in relationColumns.txt i tried to construct a sql query to get F_ACRONYME in COMPANIES table :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;td.FULLNAME.Comp      {[
  &amp;lt;%RunQuery(id=&quot;acronymeCompanie&quot;,
            sql=&quot;select F_ACRONYME from &amp;lt;#table name='COMPANIES'&amp;gt; C where C.K_COMPANY=:param1&quot;,
            param1 = &quot;$KEY$&quot; ,
       store=T)%&amp;gt;
  &amp;lt;a data-msg=&quot;view;$entity$;&amp;lt;#F=$KEY$;context=ATTR&amp;gt;&quot; href=&quot;#&quot; class=&quot;&amp;lt;#I=OPENED;0=inactive&amp;gt;&quot; title=&quot;&amp;lt;#F=NAME;nospace=T;context=ATTR&amp;gt;&quot;&amp;gt;
  &amp;lt;%GetField(&quot;F_ACRONYME&quot;,query='acronymeCompanie',context=TEXT)%&amp;gt;  &amp;lt;/a&amp;gt;
  ]} 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;When i run this code i get this error : &quot;Incorrect number of parameters&quot;&lt;br&gt;
I tried to  change $KEY$ to {key} but it doesn't work.&lt;/p&gt;

&lt;p&gt;If i delete parameter 1 to test sql query i get this error : &quot;Duplicate Query Definition: &quot;acronymeCompanie&quot;&lt;/p&gt;

&lt;p&gt;Can you help me to understand and resolve these 2 errors ?&lt;/p&gt;

&lt;p&gt;Thanks,&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=6155/issue-in-native-sql-request-parameter-relationcolumns-txt</guid>
<pubDate>Mon, 07 Jun 2021 13:16:48 +0000</pubDate>
</item>
<item>
<title>Macro and params has changed with 11.3 ?</title>
<link>https://overflow.efficy.io/?qa=5320/macro-and-params-has-changed-with-11-3</link>
<description>&lt;p&gt;My colleagues need to migrate from Efficy 2012 summer ++ to 11.3.&lt;br&gt;
In most of macros we pushed some params. &lt;/p&gt;

&lt;p&gt;Exemple : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;%Macro(&quot;DetailedActivityLookUp&quot;, $FIELD$=&quot;F_DETAILED_ACT&quot;, $PARENTFIELD$=&quot;F_SUBACTIVITY&quot;, $BLANKLABEL$=&quot;&quot;,$LANG$=&quot;%%GetLanguage()&quot;, $STYLE$=&quot;width:210px&quot;)%&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It seem that once into the macro definition the params are not usable anymore. &lt;br&gt;
It ever return undefined.&lt;/p&gt;

&lt;p&gt;in the documentation we still can put params&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;%Macro(name=$macro$, $_more$=$more$, $class$=&quot;action&quot;, $icon$=&quot;i-save&quot;, $caption$=&quot;Save&quot;, $msg$=&quot;save&quot;)%&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Maybe he should use this ? &amp;lt;%Evaluate(&quot;%%Macro('name')&quot;)%&amp;gt; &lt;br&gt;
If anyone has already get this problem and solve you're welcome. &lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5320/macro-and-params-has-changed-with-11-3</guid>
<pubDate>Mon, 24 Feb 2020 18:21:12 +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>GetField parameter to Query</title>
<link>https://overflow.efficy.io/?qa=2076/getfield-parameter-to-query</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Can i send parameters to a query that is used in the getfield-tag?&lt;/p&gt;

&lt;p&gt;F.e. &amp;lt;%GetField('AMM', query='AM', param1=&amp;lt;#K&amp;gt;')&lt;/p&gt;

&lt;p&gt;Where testquery is a defined in a Runquery-tag.:&lt;/p&gt;

&lt;p&gt;&amp;lt;%RunQuery(id=|AM|, store=|2|, 
        SQL=|select 'test' as aa, SUM(F_TIME_SPENT_HOUR) as AMH,SUM(F_TIME_SPENT_MIN) as AMM from &amp;lt;#TABLE name='R_ACTI_PROD'&amp;gt; R_ACTI_PROD 
        where R_ACTI_PROD.K_Action=:param1| %&amp;gt;&lt;/p&gt;

&lt;p&gt;OWhen this is possible i can put the runquery in the listconsult.appo and the getfield in the agendalayout. &lt;br&gt;
Or is there another way to do this? (using the K_Action as a parameter for the runquery that is defined in another file?)&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2076/getfield-parameter-to-query</guid>
<pubDate>Tue, 06 Dec 2016 13:34:08 +0000</pubDate>
</item>
</channel>
</rss>