zork Posted June 26, 2017 Report Share Posted June 26, 2017 Does anyone know how to execute a browser lock command from an extension? The command works fine from the menu item, it can be assigned to a button, but it does not start from the extension. What could be the reason? For example, to run from the icon, the code will be like this: <div class="item lock" mx-click="cmd.lockBrowser" title="$cmd.lockBrowser$" > <div class="icon"/> </div> But in the extension the same code doesn't work: "actions": [ { "type": "mxcmd", "entryPoints": ["toolbar"], "cmd": "cmd.lockBrowser" } ] And without the cmd too: "actions": [ { "type": "mxcmd", "entryPoints": ["toolbar"], "cmd": "lockBrowser" } ] What's wrong??? Link to comment Share on other sites More sharing options...
7twenty Posted June 26, 2017 Report Share Posted June 26, 2017 Have you tried any of the other cmd. options? Could be that they're designed to only work with the MX UI, not extensions. Can't recall having played with these before so can't offer much more than that. A new SDK update wouldn't hurt either. cmd.lockBrowser wasn't listed in any of the older ones. So seems to be something new added since the last update for MX4, or has since moved from an internal setting to a cmd option. Link to comment Share on other sites More sharing options...
zork Posted June 27, 2017 Author Report Share Posted June 27, 2017 The internal command cmd.lockBrowser is not new. It was in M4. And you are right - it wasn't listed in SDK, but it works. Other commands starting with cmd.xxxx not working in extension too. I would very much like to hear comments from dev's on this issue. Link to comment Share on other sites More sharing options...
Recommended Posts