Run Custom Command in Home Panel using an Hyperlink
I have a custom command, which I can run with a toolbar button, but it don't run using a hyperlink in the home panel. It's possible?
Example: <p align="left" style="text-align: center;"><a href="command:TestCommand">TestCommand</a></p>
0
-
Hi Fernando,
In order for a command to available for use in hyperlink, it must be registered with the viewer, e.g.:geocortex.essentialsHtmlViewer.Commands.commandsMetadata.push({ "name": "MyCommandName", "metadata": { "isHyperlinkable": true } });One thing you need to be extremely careful with, however, is ensuring that your command is 100% safe to expose like this. If, for example, your command parameter accepted a URL and the command implementation downloaded and executed scrit at that URL, you would be creating a security vulnerability.0
Please sign in to leave a comment.
Comments
1 comment