# Document viewer

The document viewer displays the documents contained in the folder structure of the document tree. It connects to the document list to display selected documents inside the portlet.

### Basic Data

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

![](https://529897662-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M-u3__fXjJMNAYXWzZ2%2F-M-u4WZxHpL1Yv15EdDs%2Fhelp_root_clients_portal_portlets_DocumentViewer_basic.png?alt=media\&token=7ca33c3c-80b7-4880-ab8b-18fbec371763)

### Auto Refresh

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

![](https://529897662-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M-u3__fXjJMNAYXWzZ2%2F-M-u4YrJu16bO4bb-Im9%2Fhelp_root_clients_portal_portlets_DocumentViewer_autorefresh.png?alt=media\&token=ce750b5a-ff74-45b2-8a06-3478090c63aa)

### 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**

* updateDocument
* onRefresh

**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;

![](https://529897662-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M-u3__fXjJMNAYXWzZ2%2F-M-u4bSLyDr7GvLXFuAz%2Fhelp_root_clients_portal_portlets_DocumentViewer_commands.png?alt=media\&token=b9e9f784-bf49-43a6-ad66-7900cb8216a1)
