Import Finesse JavaScript API
For gadgets to work properly, they need to import the Finesse JavaScript library hosted on the Finesse server.
Hosting Third-Party Gadgets on Web Server
To import the JavaScript library, the Finesse FQDN needs to be provided inside the import statement. For building the finesse.min.js URL, we need to retrieve the following properties from the gadget preferences:
-
scheme: https
-
hostname: FQDN of the Finesse server
-
port: port of the Finesse service
These properties are inside the gadget preferences as part of Finesse container initialization. In your gadget XML:
-
Define the user preferences that will be used for building the finesse.min.js import statement.
-
Import the finesse.min.js file.
Hosting Third-Party Gadgets on Finesse Server
Third-party gadgets can be hosted on the Finesse server inside the 3rdpartygadget directory. See Upload Third-Party Gadgets.
Since the third-party gadget is hosted on the Finesse server, you can import the Finesse JavaScript API with a relative URL.