{"id":"Jasww42o861f","url":"https://totaljs.es/docs/tas/10-0/guides/introduction/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Introduction","summary":"What Total.js TAS is, what it is made of and where to start.","markdown":"---\ntitle: Introduction\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/introduction/\nupdated: 2026-11-20T06:40:16.362Z\n---\n\n# Introduction\n\n> What Total.js TAS is, what it is made of and where to start.\n\n> **Note:** Total.js TAS is available only with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) subscription. See the [TAS page](https://www.totaljs.com/tas/) on totaljs.com.\n\nTotal.js TAS (Total.js Application Solution) is a ready base for business applications such as intranet tools, ERP and CRM. You build the app in your browser: you design the data, the screens and the logic, and TAS keeps everything in a PostgreSQL database.\n\n![The TAS admin screen with two app tiles and the building blocks](/files/JaswvQ2H860f.webp)\n\n## The building blocks\n\n- **Databases**: you design tables with your own columns, and you browse and edit their rows. See [Databases](../databases/).\n- **Flows**: you build the logic of the app visually with Total.js Flow. Every database becomes a component that you can use in a flow. See [Flows](../flows/).\n- **User interface**: you design the pages of the app with the page designer of UI Builder. See [Pages](../pages/).\n- **Navigation**: you add the items that open your app for its users. See [Navigation](../navigation/).\n- **UI components** and **Files**: your own page components and the files your app uses.\n- **Settings**: the name of the app, the Total.js Message Service, the Total.js API and the connection to Total.js OpenPlatform.\n\nSeveral TAS apps can share one PostgreSQL database. Each app keeps its own data. See [Run several apps on one database](../../recipes/several-apps-one-database/).\n\n## What to read next\n\n1. [Installation](../installation/) puts TAS on your server.\n2. [First sign-in](../first-sign-in/) explains the default account.\n3. [The admin screen](../admin-screen/) shows where everything is.\n4. [Build your first app](../first-app/) takes you from a database to a page that your users open.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:16.362Z"}
{"id":"Jasww22m861f","url":"https://totaljs.es/docs/tas/10-0/guides/installation/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Installation","summary":"Install Total.js TAS from source, connect it to PostgreSQL and start it.","markdown":"---\ntitle: Installation\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/installation/\nupdated: 2026-11-20T06:40:16.362Z\n---\n\n# Installation\n\n> Install Total.js TAS from source, connect it to PostgreSQL and start it.\n\n> **Note:** Total.js TAS is available only with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) subscription. See the [TAS page](https://www.totaljs.com/tas/) on totaljs.com.\n\nYou get the TAS source code from Total.js with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) license. You also need:\n\n- [Node.js](https://nodejs.org)\n- a PostgreSQL server with an empty database for TAS\n\n## Install and start\n\n**1.** Create an empty database in PostgreSQL, for example `tas`.\n\n**2.** Open the folder with the TAS source code and install the dependencies:\n\n```bash\nnpm install\n```\n\n**3.** Open the `config` file and set the connection string of your database:\n\n```text\ndatabase       : postgresql://user:password@hostname:5432/tas\n```\n\n**4.** Start TAS:\n\n```bash\nnpm start\n```\n\n**5.** Open `http://127.0.0.1:8000` in your browser and sign in. See [First sign-in](../first-sign-in/).\n\n**6.** Open **Settings**, check the **Website name** and select **SUBMIT**. See [Settings](../settings/).\n\nTAS creates its tables on the first start, so you do not run any SQL yourself.\n\n## Use another port\n\n`npm start` uses port 8000. To use another port, start TAS with the port number:\n\n```bash\nnode index.js 8080\n```\n\n## Install the bundled version\n\nThe source code also contains a ready bundle, `--bundles--/app.bundle`. Use it when you do not want to change the source code:\n\n**1.** Create a new folder with the files `index.js`, `config` and `package.json` from the source code.\n\n**2.** Create a `bundles` folder in it and copy `app.bundle` there.\n\n**3.** Set the connection string in `config`, then run `npm install` and `npm start` as above.\n\nThe bundled version keeps its data files in the hidden `.src` folder. See [Data locations](../../reference/data-locations/).\n\n## Keep your server safe\n\n- Sign in and change the default credentials as soon as TAS runs. See [Change credentials](../change-credentials/).\n- Use HTTPS and restrict who can reach the server when TAS is available over a network.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:16.362Z"}
{"id":"Jaswvv2g861f","url":"https://totaljs.es/docs/tas/10-0/guides/first-sign-in/","project":"tas","version":"10-0","section":"guides","language":"en","title":"First sign-in","summary":"Sign in with the default account that TAS creates on its first start.","markdown":"---\ntitle: First sign-in\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/first-sign-in/\nupdated: 2026-11-20T06:40:15.805Z\n---\n\n# First sign-in\n\n> Sign in with the default account that TAS creates on its first start.\n\nOn its first start, TAS creates one administrator account with a random user name and password.\n\n## Sign in\n\n**1.** Open TAS in your browser. The sign-in page shows a box called **Default account:** with the **User name** and the **Password**.\n\n**2.** Select **Fill in the form**, or type both values yourself.\n\n**3.** Select **Sign in**.\n\nAfter the first successful sign-in, the sign-in page hides the default account. Write the values down, or better, change them right away. See [Change credentials](../change-credentials/).\n\n![The sign-in page](/files/Jaswvu2f860f.webp)\n\n## If you lose the password\n\nStop TAS, delete the file `databases/memorize_account.json` and start TAS again. TAS creates a new default account and shows it on the sign-in page. Your databases, flows and pages stay as they are.\n\n## Sign in through OpenPlatform\n\nWhen you connect TAS to Total.js OpenPlatform, the users sign in through OpenPlatform instead of the TAS sign-in page. See [Connect to OpenPlatform](../openplatform/).\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:15.805Z"}
{"id":"JaswvS2I861f","url":"https://totaljs.es/docs/tas/10-0/guides/admin-screen/","project":"tas","version":"10-0","section":"guides","language":"en","title":"The admin screen","summary":"The parts of the TAS admin screen: menu, tabs and the Home page.","markdown":"---\ntitle: The admin screen\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/admin-screen/\nupdated: 2026-11-20T06:40:12.891Z\n---\n\n# The admin screen\n\n> The parts of the TAS admin screen: menu, tabs and the Home page.\n\nAfter you sign in, TAS shows the admin screen.\n\n![The Home page with the app tiles and the tools](/files/JaswvQ2H860f.webp)\n\n## Menu\n\nThe menu on the left has three parts:\n\n- At the top, the items of your app. You create them in [Navigation](../navigation/). Selecting one opens that part of your app.\n- In the middle, the tools: **User interface**, **Flows**, **Databases**, **Navigation**, **UI components**, **Files** and **Settings**.\n- At the bottom, **Refresh**, **Change credentials** and **Logout**.\n\n## Home\n\n**Home** shows the same items as tiles. The tiles of your app have a light blue background.\n\n## Tabs\n\nEach tool or app item opens in its own tab at the top. Select a tab to go back to it, and select the **×** on a tab to close it. **Home** stays open.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:12.891Z"}
{"id":"Jaswvs2d860f","url":"https://totaljs.es/docs/tas/10-0/guides/first-app/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Build your first app","summary":"The whole path from a database to a page that your users open.","markdown":"---\ntitle: Build your first app\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/first-app/\nupdated: 2026-11-20T06:40:15.296Z\n---\n\n# Build your first app\n\n> The whole path from a database to a page that your users open.\n\nThis page shows the order of the work. Each step links to its own page.\n\n**1.** Create a database with the columns you need, for example `Customers` with an email and a phone. See [Databases](../databases/).\n\n**2.** Add a few rows to it. See [Browse and edit data](../database-data/).\n\n**3.** Design a page in **User interface** and save it with **SAVE**. See [Pages](../pages/).\n\n**4.** Create a navigation item, for example `Customers`. See [Navigation](../navigation/).\n\n**5.** Open the **User interface** flow, connect the navigation item to the page and select **APPLY**. See [Show a page to your users](../show-page/).\n\n**6.** Select the item in the menu or on **Home**. TAS opens your page.\n\nTo read or change data from your own logic, use the database components in a flow. See [Use databases in a flow](../database-components/).\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:15.296Z"}
{"id":"Jaswvm2Y861f","url":"https://totaljs.es/docs/tas/10-0/guides/databases/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Databases","summary":"Create, change, clone and remove the databases of your app.","markdown":"---\ntitle: Databases\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/databases/\nupdated: 2026-11-20T06:40:14.934Z\n---\n\n# Databases\n\n> Create, change, clone and remove the databases of your app.\n\nIn TAS, a database is one table with your own columns. TAS creates the table in PostgreSQL for you and keeps it in step with the columns you define.\n\n![The Databases list with two databases in the Sales category](/files/Jaswvj2W861f.webp)\n\nEach database shows its identifier, for example `db792`. Databases with the same **Category** are listed together.\n\n## Create a database\n\n**1.** Open **Databases** and select **Create**.\n\n**2.** Enter the **Name**. Optionally choose a **Category**, an **Icon** and a **Color**.\n\n**3.** Under **Custom columns**, select **Add** for each column and fill in:\n   - **Path**: the column name in the database, in lower case\n   - **Type**: **String**, **Number**, **Boolean** or **Date**\n   - **Label**: the name people see\n   - **Required**: a new row cannot be saved without a value in this column\n\n**4.** Select **Save** for the column, and **SUBMIT** for the database.\n\n![The Update database form with five custom columns](/files/Jaswvl2X860f.webp)\n\nEvery database also has two **Primary columns** that you cannot remove: **Identifier** (`id`) and **Name** (`name`). TAS also stores the creation date of each row.\n\nSome words cannot be column names, for example `id`, `name`, `table`, `number` or `json`. TAS tells you when you use one. See [Database tables](../../reference/database-tables/).\n\n## Change a database\n\nSelect the gear icon of the database and then **Edit**. You can rename it, add, remove and reorder columns, and change their types. When you select **SUBMIT**, TAS changes the PostgreSQL table to match. Removing a column also removes its data.\n\n## Clone or remove a database\n\nSelect the gear icon and then **Clone** or **Remove**:\n\n- **Clone** creates a copy of the structure, named with \"(cloned)\". The rows are not copied.\n- **Remove** deletes the database and its table with all rows. This cannot be undone.\n\nEvery change also updates the database components in your flows. See [Use databases in a flow](../database-components/).\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:14.934Z"}
{"id":"Jaswvh2U861f","url":"https://totaljs.es/docs/tas/10-0/guides/database-data/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Browse and edit data","summary":"View, filter, add, edit, copy and remove the rows of a database.","markdown":"---\ntitle: Browse and edit data\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/database-data/\nupdated: 2026-11-20T06:40:14.413Z\n---\n\n# Browse and edit data\n\n> View, filter, add, edit, copy and remove the rows of a database.\n\nSelect a database in **Databases** to open its rows in a new tab, or select its gear icon and then **Browse data**.\n\n![The rows of the Customers database](/files/Jaswvd2S861f.webp)\n\n## Find rows\n\n- Type in the **Filter** field under a column to filter by it.\n- Select a column header to sort by it.\n- Use the arrows at the bottom to move between pages.\n\n## Add or edit a row\n\n**1.** Select **Create** for a new row, or select a row to edit it.\n\n**2.** Select a value to change it. Select the box of a **Boolean** column to switch it, and select a **Date** value to pick a date.\n\n**3.** Select **Save**.\n\n![A row opened for editing](/files/Jaswvg2T860f.webp)\n\n**Copy JSON** copies the row as JSON. The copy icon next to **ID** copies the identifier.\n\n## Copy or remove rows\n\nSelect the boxes of the rows you need, then:\n\n- **Copy to clipboard** copies them for Excel (**To Excel**) or as CSV (**To CSV**).\n- **Remove** deletes them after you confirm.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:14.413Z"}
{"id":"Jaswvq2b860f","url":"https://totaljs.es/docs/tas/10-0/guides/files/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Files","summary":"Upload, download and remove the files that your app uses.","markdown":"---\ntitle: Files\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/files/\nupdated: 2026-11-20T06:40:15.296Z\n---\n\n# Files\n\n> Upload, download and remove the files that your app uses.\n\n**Files** lists every file uploaded to your app, with its name, extension, size and, for images, the width and height.\n\n![The file browser with two files](/files/Jaswvo2a861f.webp)\n\n## Upload a file\n\nSelect **Upload** and choose one or more files. Each file can have up to 5 MB.\n\n## Use a file\n\n- Select **Download** in the **Preview** column to download the file.\n- Select the copy icon next to the name to copy the address of the file.\n\nThe address of a file looks like this and works without signing in:\n\n```text\nhttps://your-tas-server/download/Jasrc21c561f-ku0mdq.png\n```\n\n## Remove files\n\nSelect the boxes of the files and select **Remove**.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:15.296Z"}
{"id":"Jasww12k861f","url":"https://totaljs.es/docs/tas/10-0/guides/flows/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Flows","summary":"Create and manage the flows that hold the logic of your app.","markdown":"---\ntitle: Flows\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/flows/\nupdated: 2026-11-20T06:40:16.362Z\n---\n\n# Flows\n\n> Create and manage the flows that hold the logic of your app.\n\nA flow is a FlowStream of Total.js Flow. You build it in a visual designer by connecting components. TAS runs every flow on the server.\n\n![The Flows list](/files/Jaswvx2i861f.webp)\n\n## The User interface flow\n\nTAS always has one flow called **User interface**. It connects your navigation items to your pages. You cannot rename, clone or remove it. See [Show a page to your users](../show-page/).\n\n## Create a flow\n\n**1.** Open **Flows** and select **Create**.\n\n**2.** Enter the **Name**. Optionally choose a **Category**, an **Icon** and a **Color**.\n\n**3.** Select **SUBMIT**.\n\nFlows with the same category are listed together.\n\n## Open the designer\n\nSelect a flow to open its designer in a new tab. You can also select the gear icon and then **Open designer**.\n\n![The designer of a flow with three connected components](/files/Jaswvz2j860f.webp)\n\nIn the designer:\n\n**1.** Drag a component from the list on the left onto the area on the right.\n\n**2.** Connect an output of one component to an input of another by dragging between them.\n\n**3.** Double-click a component to change its settings.\n\n**4.** Select **APPLY** and then **Continue** to save the flow and run it.\n\nThe **Databases** group of the list contains one component for every database of your app. See [Use databases in a flow](../database-components/).\n\n## Edit, clone or remove a flow\n\nSelect the gear icon of a flow:\n\n- **Edit** changes the name, category, icon and color.\n- **Clone** creates a copy named with \"(CLONED)\".\n- **Remove** deletes the flow.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:16.362Z"}
{"id":"Jaswvb2Q861f","url":"https://totaljs.es/docs/tas/10-0/guides/database-components/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Use databases in a flow","summary":"Read and write the rows of a database from a flow with its database component.","markdown":"---\ntitle: Use databases in a flow\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/database-components/\nupdated: 2026-11-20T06:40:13.748Z\n---\n\n# Use databases in a flow\n\n> Read and write the rows of a database from a flow with its database component.\n\nEvery database of your app is also a component in the flow designer. You find them in the **Databases** group of the component list, with the name and icon of the database. When you create, change or remove a database, TAS updates these components in all flows.\n\n## What the component does\n\nA database component has one input and two outputs:\n\n- **Input**: a message arrives and the component runs its code.\n- **Output**: the result of the code.\n- **Error**: the error, when the code fails.\n\nThe component shows the table it works with, for example `db.db539792`.\n\n## Write the code\n\nDouble-click the component in the designer to open its settings. The settings contain one piece of JavaScript. Select **Read me** to see the columns of the database.\n\n![The settings of the Customers component](/files/JaswvZ2P860f.webp)\n\nThe code returns the result of one of these methods:\n\n- `READ()` returns one row.\n- `FIND()` returns a list of rows.\n- `LIST()` returns a list of rows split into pages.\n- `INSERT(data)` inserts a row and returns its `id`.\n- `UPDATE(data)` updates rows.\n- `REMOVE()` removes rows.\n\nUse each method on its own line. You can add conditions to it, for example `.where('active', true)`. `INSERT()` and `UPDATE()` keep only the values of known columns and ignore the rest. `INSERT()` creates the `id` when the data has none.\n\n`data` is the data of the incoming message. With a [data view](../data-views/), `data.query` holds the query string of the request.\n\nSome examples:\n\n```js\n// all rows\nreturn FIND();\n```\n\n```js\n// one row by the \"id\" in the query string\nreturn READ().where('id', data.query.id);\n```\n\n```js\n// active customers only\nreturn FIND().where('active', true);\n```\n\nAfter you change the code, select **APPLY** in the settings and then **APPLY** in the designer.\n\nSee [Return database rows as JSON](../../recipes/rows-as-json/) for a complete example.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:13.748Z"}
{"id":"JaswvX2N860f","url":"https://totaljs.es/docs/tas/10-0/guides/data-views/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Data views","summary":"Publish data from a flow at its own URL with the View endpoint and View response components.","markdown":"---\ntitle: Data views\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/data-views/\nupdated: 2026-11-20T06:40:13.245Z\n---\n\n# Data views\n\n> Publish data from a flow at its own URL with the View endpoint and View response components.\n\nA data view gives a flow its own URL. A request to that URL starts the flow, and the flow sends back JSON. You build it with two components of the **Databases** group:\n\n- **View endpoint** receives the request. Its output is called **Request**.\n- **View response** sends the data it receives back as JSON. Its input is called **Response**.\n\n## Create a data view\n\n**1.** Open a flow in the designer. You cannot use these two components in the **User interface** flow.\n\n**2.** Drag **View endpoint** onto the area. Double-click it if you want to change its **View name**.\n\n**3.** Add the components that produce the data, for example a [database component](../database-components/).\n\n**4.** Drag **View response** onto the area and connect the last component to it.\n\n**5.** Select **APPLY** and then **Continue**.\n\n## The address of a data view\n\nThe address is made of the ID of the flow and the ID of the **View endpoint** component:\n\n```text\nhttps://your-tas-server/<flow id>/<component id>/\n```\n\nTAS records every data view with its full address in the `tbl_view` table of your PostgreSQL database:\n\n```sql\nSELECT name, url FROM tbl_view WHERE isremoved = false;\n```\n\nThe designer also shows the ID of a component in its top right corner when you select the component.\n\nThe message that **View endpoint** sends holds the query string in `query`. For example, `?id=123` arrives as `data.query.id` in a database component.\n\nMake sure every path of the flow reaches **View response**. When the flow stops before it, for example on the **Error** output of a component, the request ends with `408: Request Timeout`.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:13.245Z"}
{"id":"JaswwH2y861f","url":"https://totaljs.es/docs/tas/10-0/guides/pages/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Pages","summary":"Create, design, export and import the pages of your app.","markdown":"---\ntitle: Pages\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/pages/\nupdated: 2026-11-20T06:40:17.976Z\n---\n\n# Pages\n\n> Create, design, export and import the pages of your app.\n\nThe pages of your app are designed in **User interface** with the page designer of Total.js UI Builder.\n\n![The User interface list with one page](/files/JaswwA2v860f.webp)\n\n## Create a page\n\n**1.** Open **User interface** and select **Create**.\n\n**2.** Choose a **Type**. Each type is a template that the new page starts from. TAS comes with **Default template**.\n\n**3.** Enter the **Name**. Optionally choose a **Category**, an **Icon** and a **Color**.\n\n**4.** Select **SUBMIT**. The designer opens in a new tab.\n\n![The Create page form](/files/JaswwD2w861f.webp)\n\n## Design a page\n\n![The page designer with a headline and a paragraph](/files/JaswwF2x860f.webp)\n\n**1.** Drag components from the list on the left onto the layout.\n\n**2.** Change their content and settings.\n\n**3.** Select **SAVE**.\n\nA page is stored only when you select **SAVE**. A saved page becomes a component of the **User interface** flow, in the **User interface** group. See [Show a page to your users](../show-page/).\n\nThe **Flow** group of the designer has **Flow Input** and **Flow Output**. They add inputs and outputs to the page component in the **User interface** flow.\n\nTo open the designer again, select the page in the list.\n\n## Other actions\n\nSelect the gear icon of a page:\n\n- **Open designer** opens the page in the designer.\n- **Clone** creates a copy named with \"(CLONED)\".\n- **Export** gives you the design of the page as a JSON file.\n- **Remove** deletes the page after you confirm.\n\n## Import a page\n\nSelect **Import** and choose a JSON file that you exported from TAS. Open the imported page in the designer and select **SAVE** before you use it in a flow.\n\n## Templates\n\n**Templates** lists the templates that **Create** offers as **Type**. You can remove the ones you do not need.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:17.976Z"}
{"id":"Jasww72r860f","url":"https://totaljs.es/docs/tas/10-0/guides/navigation/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Navigation","summary":"Create the items that open your app for its users.","markdown":"---\ntitle: Navigation\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/navigation/\nupdated: 2026-11-20T06:40:16.994Z\n---\n\n# Navigation\n\n> Create the items that open your app for its users.\n\nNavigation items are the entry points of your app. Each item appears at the top of the menu and as a tile on **Home**.\n\n![The Navigation list with two items](/files/Jasww52q861f.webp)\n\n## Create an item\n\n**1.** Open **Navigation** and select **Create**.\n\n**2.** Enter the **Name**. Optionally choose an **Icon** and a **Color**.\n\n**3.** Select **SUBMIT**.\n\nThe item now appears in the menu and on **Home**, and it becomes a component of the **User interface** flow, in the **Navigation** group.\n\nA new item shows `404: Not Found` until you connect it to a page. See [Show a page to your users](../show-page/).\n\n## Edit or remove an item\n\nSelect the pencil icon of an item to change it, or select its gear icon for more actions. Removing an item also removes its component from the **User interface** flow.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:16.994Z"}
{"id":"JaswwO34861f","url":"https://totaljs.es/docs/tas/10-0/guides/show-page/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Show a page to your users","summary":"Connect a navigation item to a page in the User interface flow.","markdown":"---\ntitle: Show a page to your users\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/show-page/\nupdated: 2026-11-20T06:40:18.713Z\n---\n\n# Show a page to your users\n\n> Connect a navigation item to a page in the User interface flow.\n\nA navigation item opens a page only when you connect them in the **User interface** flow.\n\n**1.** Create the page and select **SAVE** in the designer. See [Pages](../pages/).\n\n**2.** Create the navigation item. See [Navigation](../navigation/).\n\n**3.** Open **Flows** and select **User interface**.\n\n**4.** Drag the navigation item from the **Navigation** group onto the area.\n\n**5.** Drag the page from the **User interface** group onto the area.\n\n**6.** Connect the **Start** output of the navigation item to the **No data** input of the page.\n\n**7.** Select **APPLY** and then **Continue**.\n\n![The User interface flow with a navigation item connected to a page](/files/JaswwN33860f.webp)\n\nNow select the item in the menu or on **Home**. TAS opens the page in a new tab.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:18.713Z"}
{"id":"JaswwR37860f","url":"https://totaljs.es/docs/tas/10-0/guides/ui-components/","project":"tas","version":"10-0","section":"guides","language":"en","title":"UI components","summary":"Keep your own page components in TAS, organised in component databases.","markdown":"---\ntitle: UI components\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/ui-components/\nupdated: 2026-11-20T06:40:19.031Z\n---\n\n# UI components\n\n> Keep your own page components in TAS, organised in component databases.\n\n**UI components** holds your own components for the page designer. They are organised in folders:\n\n- a component database, for example `demo`\n- in it, one folder per component, for example `clock`\n- in each component folder, the files `editor.html`, `render.html` and `settings.html`\n\n![A component folder with its editor.html file](/files/JaswwQ36861f.webp)\n\n## Create a component\n\n**1.** Open **UI components** and select **Create** and then **Create database**. Enter a name in lower case, with the letters a to z only.\n\n**2.** Open the new database and select **Create** and then **Create component**. Enter a name in lower case.\n\n**3.** Open the component folder and select **Create** and then **Create editor.html**. TAS adds a working example component that you can change.\n\nUse **Create render.html** and **Create settings.html** in the same way when your component needs them. **Upload file** adds other files.\n\n## Edit, rename and remove\n\nSelect a file to edit it. Right-click a folder or a file for **Rename**, **Clone**, **Remove** and the links to copy.\n\n## Back up and restore\n\nIn a component database, select **Options**:\n\n- **Download database** downloads the whole component database as a `.zip` file.\n- **Upload .zip database** restores a downloaded `.zip` file.\n\n## The links\n\nTAS publishes each component database at two addresses:\n\n```text\nhttps://your-tas-server/ui/demo.json\nhttps://your-tas-server/ui/demo.js\n```\n\nThe `.json` address lists the editor files of the components, and the `.js` address contains the rendered components. **Copy link**, **Copy link for editor** and **Copy link for render** copy these addresses.\n\nThe folder that holds the component databases is set in [Settings](../settings/) under **UI components**.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:19.031Z"}
{"id":"JaswwL31860f","url":"https://totaljs.es/docs/tas/10-0/guides/settings/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Settings","summary":"Configure the name of the app and its connections in Settings.","markdown":"---\ntitle: Settings\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/settings/\nupdated: 2026-11-20T06:40:18.359Z\n---\n\n# Settings\n\n> Configure the name of the app and its connections in Settings.\n\nOpen **Settings** to configure the app. Select **SUBMIT** at the bottom to save your changes.\n\n![The Settings screen](/files/JaswwJ30861f.webp)\n\n## Configuration\n\n- **Website name**: the name of the app. It appears in the title of **Home** and on the sign-in page. It is required.\n\n## TMS\n\nThe Total.js Message Service lets other apps publish data, subscribe to events and call remote procedures in TAS.\n\n- **Enable TMS**: turns the service on. Its address appears under the box.\n- **Security token**: a token that protects the communication. **Generate** creates one.\n\n## Total.js API\n\n- **Access token**: your token for the Total.js API service, which creates text or images with AI, sends SMS messages and more. You get the token on the Total.js Platform.\n\n## Total.js OpenPlatform\n\n- **Request token** and **Response token**: the tokens from the OpenPlatform registration of this app.\n\nSee [Connect to OpenPlatform](../openplatform/).\n\n## UI components\n\n- **Minify HTML**: minifies the HTML files of your UI components.\n- **Directory**: the folder for the component databases, inside the `databases` folder. The default is `/fs-db/components/`.\n\nSee [UI components](../ui-components/).\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:18.359Z"}
{"id":"JaswvW2L860f","url":"https://totaljs.es/docs/tas/10-0/guides/change-credentials/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Change credentials","summary":"Change the name, login and password of the administrator account.","markdown":"---\ntitle: Change credentials\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/change-credentials/\nupdated: 2026-11-20T06:40:13.245Z\n---\n\n# Change credentials\n\n> Change the name, login and password of the administrator account.\n\nChange the default credentials right after your first sign-in.\n\n**1.** Select **Change credentials** in the menu.\n\n**2.** Change the **Name** and the **Login**.\n\n**3.** Enter a new **Password**. Keep the field empty if you do not want to change it.\n\n**4.** Select **SUBMIT**.\n\n![The Change credentials form](/files/JaswvU2K861f.webp)\n\nYou stay signed in. A session lasts one month. When you are done, select **Logout** to end it.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:13.245Z"}
{"id":"Jasww82t860f","url":"https://totaljs.es/docs/tas/10-0/guides/openplatform/","project":"tas","version":"10-0","section":"guides","language":"en","title":"Connect to OpenPlatform","summary":"Run TAS inside Total.js OpenPlatform so that your users sign in there.","markdown":"---\ntitle: Connect to OpenPlatform\nproject: TAS\nversion: 10.0\nsection: guides\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/guides/openplatform/\nupdated: 2026-11-20T06:40:16.994Z\n---\n\n# Connect to OpenPlatform\n\n> Run TAS inside Total.js OpenPlatform so that your users sign in there.\n\nTAS is designed to work with Total.js OpenPlatform. When it is connected, users open TAS from OpenPlatform and OpenPlatform decides who may use which part of it.\n\n## Connect TAS\n\n**1.** Open **Settings** in TAS. Under **Total.js OpenPlatform** you find the address of the app description, for example:\n\n```text\nhttps://your-tas-server/openplatform.json\n```\n\n**2.** In OpenPlatform, import the app with this address.\n\n**3.** Copy the request token and the response token from the app registration in OpenPlatform.\n\n**4.** In TAS, enter them in **Request token** and **Response token** and select **SUBMIT**.\n\nTAS signs you out as soon as you save both tokens. From then on, open TAS through OpenPlatform. The users sign in in OpenPlatform, not on the TAS sign-in page.\n\n## Permissions\n\nThe app description lists one permission for each tool: **Components**, **Databases**, **Files**, **Flows**, **Navigation**, **Settings** and **UI**. It also lists every saved page. In OpenPlatform you give users the permissions they need.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:16.994Z"}
{"id":"JaswwY3F860f","url":"https://totaljs.es/docs/tas/10-0/reference/config-file/","project":"tas","version":"10-0","section":"reference","language":"en","title":"Configuration file","summary":"The keys of the config file in the TAS folder.","markdown":"---\ntitle: Configuration file\nproject: TAS\nversion: 10.0\nsection: reference\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/reference/config-file/\nupdated: 2026-11-20T06:40:19.031Z\n---\n\n# Configuration file\n\n> The keys of the config file in the TAS folder.\n\nThe `config` file in the TAS folder holds the settings that TAS needs before it can reach its database. Each line is a key, a colon and a value.\n\n```text\nname           : TAS\ndatabase       : postgresql://user:password@hostname:5432/tas\n```\n\n| Key | Meaning |\n|---|---|\n| `name` | The name of the app until you save **Website name** in [Settings](../../guides/settings/). |\n| `database` | The connection string of the PostgreSQL database. |\n\nRestart TAS after you change the file.\n\nAll other settings are stored by TAS itself. See [Stored settings](../stored-settings/).\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:19.031Z"}
{"id":"Jaswwd3L860f","url":"https://totaljs.es/docs/tas/10-0/reference/stored-settings/","project":"tas","version":"10-0","section":"reference","language":"en","title":"Stored settings","summary":"Where TAS keeps its settings and the addresses of the designers and the CDN.","markdown":"---\ntitle: Stored settings\nproject: TAS\nversion: 10.0\nsection: reference\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/reference/stored-settings/\nupdated: 2026-11-20T06:40:19.031Z\n---\n\n# Stored settings\n\n> Where TAS keeps its settings and the addresses of the designers and the CDN.\n\nTAS keeps its settings in two places.\n\n## Settings screen\n\nWhat you save in [Settings](../../guides/settings/) is stored in the file `databases/memorize_data.json`, together with the identifier of the app.\n\n## The cl_config table\n\nThe `cl_config` table of the PostgreSQL database holds addresses that all TAS apps of the database share. TAS fills it on the first start:\n\n| `id` | Default value | Meaning |\n|---|---|---|\n| `floweditor` | `https://flow.totaljs.com` | The flow designer. |\n| `uibuilder` | `https://uibuilder.totaljs.com` | The page designer. |\n| `cdn` | `https://cdn.componentator.com` | The CDN of the user interface libraries. |\n| `uicomponents` | empty | An address from which TAS serves the components of the page designer, when set. |\n\nThe browser of the person who designs flows and pages must be able to reach these addresses.\n\nTo use another address, change the row and restart TAS:\n\n```sql\nUPDATE cl_config SET value = 'https://flow.example.com' WHERE id = 'floweditor';\n```\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:19.031Z"}
{"id":"Jaswwb3J860f","url":"https://totaljs.es/docs/tas/10-0/reference/database-tables/","project":"tas","version":"10-0","section":"reference","language":"en","title":"Database tables","summary":"How TAS stores your databases and their rows in PostgreSQL.","markdown":"---\ntitle: Database tables\nproject: TAS\nversion: 10.0\nsection: reference\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/reference/database-tables/\nupdated: 2026-11-20T06:40:19.031Z\n---\n\n# Database tables\n\n> How TAS stores your databases and their rows in PostgreSQL.\n\nTAS creates its tables on the first start.\n\n## The tables of TAS\n\n| Table | Content |\n|---|---|\n| `cl_config` | Shared addresses. See [Stored settings](../stored-settings/). |\n| `tbl_app` | One row for every TAS app that uses the database. |\n| `tbl_db` | Your databases and their columns. |\n| `tbl_flow` | Your flows. |\n| `tbl_ui` | Your pages. |\n| `tbl_template` | The page templates. |\n| `tbl_nav` | Your navigation items. |\n| `tbl_view` | The [data views](../../guides/data-views/) and their addresses. |\n| `tbl_file` | The uploaded files. |\n\nEvery row of these tables has an `appid` column with the identifier of the app it belongs to.\n\n## The tables of your databases\n\nThe rows of your databases are in the `db` schema. The name of each table is `db`, the identifier of the app and the identifier of the database:\n\n```text\ndb.db539792\n```\n\nHere `539` is the identifier of the app and `792` the identifier of the database. The flow designer shows this name on every database component.\n\nEvery table has the columns `id`, `name` and `dtcreated` (the creation time), and one column for every custom column.\n\n## Column types\n\n| Type in TAS | Type in PostgreSQL |\n|---|---|\n| **String** | `TEXT` |\n| **Number** | `NUMERIC` |\n| **Boolean** | `BOOLEAN` |\n| **Date** | `TIMESTAMP` |\n\n## Reserved column names\n\nThese words cannot be column names: `id`, `name`, `dtcreated`, `table`, `on`, `where`, `left`, `join`, `right`, `inner`, `null`, `number`, `text`, `boolean`, `object`, `over`, `primary`, `index`, `temp`, `switch`, `case` and `json`.\n\nColumn names keep only the lower-case letters a to z and the digits 0 to 9.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:19.031Z"}
{"id":"Jaswwa3H860f","url":"https://totaljs.es/docs/tas/10-0/reference/data-locations/","project":"tas","version":"10-0","section":"reference","language":"en","title":"Data locations","summary":"The files and folders where TAS keeps data outside PostgreSQL.","markdown":"---\ntitle: Data locations\nproject: TAS\nversion: 10.0\nsection: reference\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/reference/data-locations/\nupdated: 2026-11-20T06:40:19.031Z\n---\n\n# Data locations\n\n> The files and folders where TAS keeps data outside PostgreSQL.\n\nMost data of TAS is in PostgreSQL. A few things are in the `databases` folder of the TAS folder:\n\n| Path | Content |\n|---|---|\n| `databases/memorize_account.json` | The administrator account. |\n| `databases/memorize_data.json` | The identifier of the app and the values of [Settings](../../guides/settings/). |\n| `databases/fs-files/` | The uploaded [files](../../guides/files/). |\n| `databases/fs-db/components/` | The [UI components](../../guides/ui-components/). |\n\nThe bundled version keeps the same folder in `.src/databases`.\n\n## Back up TAS\n\nBack up both:\n\n- the PostgreSQL database\n- the `databases` folder\n\nThe identifier of the app is in `memorize_data.json`. Without this file, TAS starts as a new app with a new identifier and does not see its old data in the database.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:19.031Z"}
{"id":"JaswwT39860f","url":"https://totaljs.es/docs/tas/10-0/recipes/rows-as-json/","project":"tas","version":"10-0","section":"recipes","language":"en","title":"Return database rows as JSON","summary":"Build a flow that answers a request with the rows of a database.","markdown":"---\ntitle: Return database rows as JSON\nproject: TAS\nversion: 10.0\nsection: recipes\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/recipes/rows-as-json/\nupdated: 2026-11-20T06:40:19.031Z\n---\n\n# Return database rows as JSON\n\n> Build a flow that answers a request with the rows of a database.\n\nThis recipe publishes the customers of a `Customers` database at their own address.\n\n**1.** Create the `Customers` database with the columns you need. See [Databases](../../guides/databases/).\n\n**2.** Open **Flows**, select **Create**, name the flow `Customer API` and select **SUBMIT**.\n\n**3.** Open the flow. From the **Databases** group, drag **View endpoint**, **Customers** and **View response** onto the area.\n\n**4.** Connect **Request** of the view to **Input** of **Customers**, and **Output** of **Customers** to **Response** of **View response**.\n\n![The finished Customer API flow](/files/Jaswvz2j860f.webp)\n\n**5.** Double-click **Customers** and replace the code with:\n\n```js\nreturn FIND();\n```\n\n**6.** Select **APPLY** in the settings, then **APPLY** and **Continue** in the designer.\n\n**7.** Find the address of the view:\n\n```sql\nSELECT name, url FROM tbl_view WHERE isremoved = false;\n```\n\n**8.** Open the address in the browser where you are signed in to TAS. TAS answers with the rows:\n\n```json\n[{\"id\":\"JasoGx1cB61f\",\"name\":\"Jane Doe\",\"email\":\"jane@example.com\",\"active\":true}]\n```\n\n## Return one row\n\nChange the code of **Customers** to read the `id` from the query string:\n\n```js\nreturn READ().where('id', data.query.id);\n```\n\nThen call the address with `?id=` and the identifier of a row. Connect the **Error** output to **View response** too, so that the request also ends when the code fails.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:19.031Z"}
{"id":"JaswwV3B860f","url":"https://totaljs.es/docs/tas/10-0/recipes/several-apps-one-database/","project":"tas","version":"10-0","section":"recipes","language":"en","title":"Run several apps on one database","summary":"Run more than one TAS app on the same PostgreSQL database.","markdown":"---\ntitle: Run several apps on one database\nproject: TAS\nversion: 10.0\nsection: recipes\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/recipes/several-apps-one-database/\nupdated: 2026-11-20T06:40:19.031Z\n---\n\n# Run several apps on one database\n\n> Run more than one TAS app on the same PostgreSQL database.\n\nSeveral TAS apps can use one PostgreSQL database. Each app has its own identifier and sees only its own databases, flows, pages, navigation and files.\n\n**1.** Install a second copy of TAS in another folder. See [Installation](../../guides/installation/).\n\n**2.** Use the same `database` connection string in its `config` file.\n\n**3.** Start it on another port:\n\n```bash\nnode index.js 8001\n```\n\n**4.** Sign in with the default account of the new copy. See [First sign-in](../../guides/first-sign-in/).\n\nThe new app starts empty, with its own default page template. Every app is listed in the `tbl_app` table:\n\n```sql\nSELECT id, name, url FROM tbl_app;\n```\n\nThe addresses in the `cl_config` table are shared by all the apps. See [Stored settings](../../reference/stored-settings/).\n\nTo read the data of another app from a flow, query its tables directly with SQL. See [Read your data with SQL](../sql-access/).\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:19.031Z"}
{"id":"JaswwW3D860f","url":"https://totaljs.es/docs/tas/10-0/recipes/sql-access/","project":"tas","version":"10-0","section":"recipes","language":"en","title":"Read your data with SQL","summary":"Query the rows of your TAS databases with any PostgreSQL client.","markdown":"---\ntitle: Read your data with SQL\nproject: TAS\nversion: 10.0\nsection: recipes\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/recipes/sql-access/\nupdated: 2026-11-20T06:40:19.031Z\n---\n\n# Read your data with SQL\n\n> Query the rows of your TAS databases with any PostgreSQL client.\n\nThe rows of your databases are ordinary PostgreSQL tables, so you can read them with any PostgreSQL client or reporting tool.\n\n**1.** Find the table of your database. The flow designer shows it on the database component, for example `db.db539792`. You can also list all of them:\n\n```sql\nSELECT appid, id, name, 'db.db' || appid || id AS \"table\" FROM tbl_db;\n```\n\n**2.** Query it:\n\n```sql\nSELECT name, email, credit FROM db.db539792 WHERE active = true ORDER BY name;\n```\n\nChange the structure of these tables only in **Databases**. TAS adjusts the table to the columns defined there and removes columns that it does not know. See [Database tables](../../reference/database-tables/).\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:19.031Z"}
{"id":"JaswvO2F860f","url":"https://totaljs.es/docs/tas/10-0/faq/using-tas/","project":"tas","version":"10-0","section":"faq","language":"en","title":"Using TAS","summary":"Answers to common questions about working with TAS.","markdown":"---\ntitle: Using TAS\nproject: TAS\nversion: 10.0\nsection: faq\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/faq/using-tas/\nupdated: 2026-11-20T06:40:12.622Z\n---\n\n# Using TAS\n\n> Answers to common questions about working with TAS.\n\n## Why does a navigation item show \"404: Not Found\"?\n\nThe item is not connected to a page yet. Place it in the **User interface** flow, connect its **Start** output to a page and select **APPLY**. See [Show a page to your users](../../guides/show-page/).\n\n## Why is my page missing from the User interface flow?\n\nA page becomes a component only after you select **SAVE** in the designer. Pages that you imported need to be opened and saved once.\n\n## Why does my data view never answer?\n\nThe flow stops before **View response**, for example on the **Error** output of a database component. Connect every output that can end the request to **View response**. See [Data views](../../guides/data-views/).\n\n## Can several TAS apps use one database?\n\nYes. Each app keeps its own data. See [Run several apps on one database](../../recipes/several-apps-one-database/).\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:12.622Z"}
{"id":"JaswvN2D860f","url":"https://totaljs.es/docs/tas/10-0/faq/administration/","project":"tas","version":"10-0","section":"faq","language":"en","title":"Administration","summary":"Answers to common questions about running and securing TAS.","markdown":"---\ntitle: Administration\nproject: TAS\nversion: 10.0\nsection: faq\nlanguage: en\nlicense: Total.js Enterprise\nurl: https://totaljs.es/docs/tas/10-0/faq/administration/\nupdated: 2026-11-20T06:40:09.721Z\n---\n\n# Administration\n\n> Answers to common questions about running and securing TAS.\n\n## I lost the administrator password. What can I do?\n\nStop TAS, delete `databases/memorize_account.json` and start TAS again. The sign-in page shows a new default account. See [First sign-in](../../guides/first-sign-in/).\n\n## What do I need to back up?\n\nThe PostgreSQL database and the `databases` folder. See [Data locations](../../reference/data-locations/).\n\n## The designers stay empty. Why?\n\nThe flow designer and the page designer are loaded from the addresses in the `cl_config` table. Your browser must be able to reach them, and they must be able to reach your TAS server. See [Stored settings](../../reference/stored-settings/).\n\n## How do I keep TAS safe?\n\n- Change the default credentials right after the first sign-in.\n- Use HTTPS.\n- Restrict who can reach the server, for example with a firewall or a VPN.\n","entries":[],"license":"Total.js Enterprise","updated":"2026-11-20T06:40:09.721Z"}
