# Custom Portal integration

This guide is written for customers that embed a SuperTables in a custom portal and want to utilize the powerful features of SuperTables from the portal interface like exporting to Excel.

## Example video

{% embed url="<https://1304574535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fe2zyseN6XFBaLs6YTcnd%2Fuploads%2FrCpgvweYlGTWudzsFjil%2Fcustom-portal-integration.mp4?alt=media&token=9c549535-a61a-46e9-ba8c-ba06966986b1>" %}

{% file src="/files/D5Og4D66iKKt3xQdkUUV" %}

## Step 1: Tableau Desktop

First create a dashboard with a SuperTables with the following settings:

A string **parameter** called: stateparameter

A string **parameter** called: switcher

<figure><img src="/files/9RFZyQsuCsZcSzuP6d5q" alt="" width="375"><figcaption></figcaption></figure>

#### General Settings

Use the following settings in **SuperTables**

<figure><img src="/files/OsZF9FTQW0Qzs3Oxqseg" alt=""><figcaption></figcaption></figure>

#### Appearance

-> Use a parameter to switch between layouts

select the switcher **parameter** as a parameter in the dropdown.

<figure><img src="/files/pGHGJcYn63vjJHfnvhMh" alt=""><figcaption></figcaption></figure>

## Step 2: Set up the custom portal code

Download our example file to create a basic looking portal with custom buttons.

{% file src="/files/VjrWtGNaTat2IYntqaCj" %}

Update the following values in the html file:

* the **src** value in \<tableau-viz> to the url of you workbook

<figure><img src="/files/ujZ4t65ncOfWvYGCnrZU" alt=""><figcaption></figcaption></figure>

* **stateParameterName** to the name of the parameter name you use for the state parameter
* **switchParameterName** to the name of the parameter name you use for the layout switcher.
* **extensionURL** to the url where SuperTables is hosted.

<figure><img src="/files/LFkKZ0wjiGtGM976QOAx" alt="" width="375"><figcaption></figcaption></figure>

## Step 3: The result

<figure><img src="/files/RWEuRt8rYz85gvFqaU68" alt=""><figcaption></figcaption></figure>


---

# 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://docs.infotopics.com/supertables/guides/custom-portal-integration.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.
