<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged actionlauncher</title>
<link>https://overflow.efficy.io/?qa=tag/actionlauncher</link>
<description>Powered by Question2Answer</description>
<item>
<title>Using custom action from User selection page</title>
<link>https://overflow.efficy.io/?qa=5127/using-custom-action-from-user-selection-page</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;For a customer we are using the dialog/Users.htm page with a custom action. When the page loads require is undefined when loading the require.config.js file with the overridden action.js. Require is in the Dialog scripts.&lt;/p&gt;

&lt;p&gt;Does anyone know of a way to get the overridden action.js?&lt;/p&gt;

&lt;p&gt;Best regards,&lt;/p&gt;

&lt;p&gt;Rob&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5127/using-custom-action-from-user-selection-page</guid>
<pubDate>Mon, 09 Dec 2019 15:58:05 +0000</pubDate>
</item>
<item>
<title>Efficy 11 action launcher doesn't work with overridden action.js</title>
<link>https://overflow.efficy.io/?qa=3256/efficy-action-launcher-doesnt-work-with-overridden-action</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;For a customer we have implemented a custom action to be called from the search screen with this code:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if(!OpenerExists()) top.opener = window;
top.opener.Search(Entity, &quot;fillSelectedSite;$E;$K&quot;);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;in js/misc/action.js we entered code:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;define([
'standard/misc/action'
], function (StdAction) {

var module = StdAction;
module.whiteList.push({
    verb: 'fillSelectedSite',
    func: 'fillSelectedSite',
    opener: true,
    closeWindow: true,
    relocating: true,
    args: [
        {
            signature: /^\w+$/, //Entity
            required: true
        },
        {
            signature: /^\d+$/, //Key
            required: true
        }
        ]
});
return module;
});
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And in js/config/require.config.js:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;require.overrideModule('misc/action')
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The search window opens, but when we choose the site, the error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Error launching action : Function &quot;fillSelectedSite&quot; not found in window
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;appears in the console of the debug in Search.&lt;/p&gt;

&lt;p&gt;After debugging it appears that in the caller window (window opened from consult) the verb/function is in the whiteList of the action launcher and in the callee it is not.&lt;/p&gt;

&lt;p&gt;Does someone have experience with the whitelisting of actions?&lt;/p&gt;

&lt;p&gt;Best regards,&lt;/p&gt;

&lt;p&gt;Rob&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3256/efficy-action-launcher-doesnt-work-with-overridden-action</guid>
<pubDate>Tue, 12 Jun 2018 11:57:16 +0000</pubDate>
</item>
</channel>
</rss>