From runtime perspective, each extension is composed of 3 major building blocks:
<dependency>
<groupId>com.belladati</groupId>
<artifactId>extensions-api</artifactId>
<version>1.1</version>
</dependency>
and follow Usage from GitHub repository https://github.com/BellaDati/belladati-extensions-api.
2. Get familiar with uploading Extensions zip files or creating extensions in BellaDati GUI
http://api.belladati.com/extensions-api/latest/
There are 4 types of extensions, each targeting different functionality and goal:
New page - generic extension, which gets own URL and can optionally provide API endpoints.
Use it when building java web application that is utilizing BellaDati features and expands them with custom business logic |
Each extension can have one or more parameters. They can be used for customization or parametrization of the extension. By using parameters, it is possible to deploy the same extensions in multiple environments without the need to edit the code of the extension itself. In a multi-domain environment, parameters can be also changed by domain administrators.
Examples of parameters usage:
Parameters are created in the configuration of the extension. Each parameter has a name, value and a link. The link is used in the code of the extension to load the value of the parameter. It can be used in the HTML code, in the Endpoint or in the Resource (e.g. Javascript file).
Example of parameter usage:
JavaScript
$.ajax({ url: "/en/bi/report/api:viewDetail/#PARAM=table1#", success: function(response) { } }) |
HTML
<div class="dropdown"> <button class="dropbtn">#PARAM=button2#</button><div class="dropdown-content"> <a href="#PARAM=button2link1#">#PARAM=button2label1#</a> <a href="#PARAM=button2link2#">#PARAM=button2label2#</a> </div> |
This section includes tutorials how BellaDati Extensions can be created and used. Each tutorial contains:
Please see following child pages for various tutorials: