# HTML

The HTML portlet allows the usage of HTML code inside the portal. It can execute SQL queries and use the result with HTML to get a customized presentation of the data.&#x20;

![](/files/-M-u58EzztZrwGDQJrZ8)

### Basic Data

**Internal name** - unique string to identify this portlet.\
**Portlet title** - title of the portlet, does not have to be unique.&#x20;

![](/files/-M-u5BPlz1w2QeN4GaJh)

### HTML Template

The HTML template is where the user can customize how the portlet will be displayed. It supports HTML5.

**Header** - format the html portlet with a header. Can take in variables from the SQL query e.g. "*Welcome {name}*" where {name} is fetched from the SQL query.\
&#x20;**Body** - format the html portlet with a body. Can also take in variables from the SQL query.&#x20;

![](/files/-M-u5Ednutfq8OHHWH6L)

### Auto Refresh

Auto Refresh enables the portlet to refresh the data every SS:second.&#x20;

![](/files/-M-u5H70-nJfKmqg_g_T)

### Query Configuration

Query Configuration enables the portlet to execute specified queries towards the chosen database connector.

* **Database connector** - Select which connector that the query will execute against.
* **Your query** - Text field where queries can be written
* **Page Size** - Amount of rows showed on each page

![](/files/-M-u5LGXJPVzwNCQtQ9l)

### Commands

Commands enables the portlet to listen for events sent by other portlets to execute specified commands. **The portlet will listen to the following commands**

* onRowSelected
* onGenericTreeNodeSelected
* onRefresh
* onFilter

**The portlet will listen to the following portlets** *Specify which portlet the commands above will trigger from*. The portlets that appears will be shown with their unique internal name.&#x20;

![](/files/-M-u5Nc9g-lAOckiDquJ)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.novacuraflow.com/6.12/development/portal/portlets/html.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
