Table Configuration
This page shows a Qlik developer how to add a Writeback table to a sheet and configure where and how its data is saved. The steps are the same for File-based and Database-based Writeback; differences are called out where they apply.
Before you begin
- The Writeback extension is installed.
- For Database-based Writeback, the Writeback server is configured with at least one database connection.
- For File-based Writeback, the app has a Qlik data connection to the folder where files will be stored.
Add a Writeback Table to a Sheet
- Open the Qlik Sense app and select Edit sheet.
- In the assets panel, open Custom objects and expand SenseOps.
- Drag Writeback table onto the sheet.
- Open the configuration wizard in one of two ways:
- Select the wizard () button on the object, or
- In the properties panel, open Writeback settings › Connection and select Settings.
Access Denied?
If you see Access Denied — User … doesn't have access to edit this extension in edit mode, your administrator has restricted who may configure Writeback tables. See the editModeAccess setting in Installation.
The wizard has four steps. Use Next to move forward and Save on the last step. Cancel closes the wizard without changes.
flowchart LR
A[1. Select destination] --> B[2. Define columns] --> C[3. Define storage] --> D[4. Trigger actions] --> E((Save))
Step 1 — Select Destination
Choose where the data will be stored.
| Field | Description |
|---|---|
| File location | The Qlik data connection (folder) to store the file in. In Qlik Cloud, your personal connections are listed. |
| Custom path | Select to type a location instead, for example lib://DataFiles/Writeback. |
| File name | Name of the destination file, without extension. Required. |
| File type | .CSV (default), .TXT or .QVD — see the delimiters below |
| Action | Update — see below. |
| File type | Delimiter | Header row |
|---|---|---|
.CSV |
Comma , |
Yes — column names in the first row |
.TXT |
Tab | Yes — column names in the first row |
.QVD |
— (Qlik binary format) | — |
The delimiter is fixed by the file type and cannot be changed. Files are written in UTF-8.
| Field | Description |
|---|---|
| Qlik connection | The Qlik data connection the app uses to read this database. Select Custom path to type a lib:// path instead, and Personal connection to list your personal connections. |
| Data connection | A database connection configured on the Writeback server. |
| Database | The database. |
| Owner | The schema or owner. |
| Table name | The destination table. Only existing tables are listed — create new tables on the settings page or ask your database administrator. |
| Operations | Update — see below. |
Next is enabled once the Qlik connection, data connection, database and table are selected.
Update saves edits and new rows
Update writes edited rows as updates and new rows as inserts, matched on the key columns you define in Step 3. Other options shown greyed out — such as Insert, Delete and the Rest API destination — are not available in this release.
Step 2 — Define Columns
Choose the columns shown in the Writeback table.
-
Select Add column.
-
Choose how to add the column:
Add columns from the app's data model. Use the Dimensions, Measures and Fields tabs, Search, and Select all, then select Add columns.
Add an input column that does not exist in the data model, such as a comment or an approval flag. Enter a Column name, choose a type in Select type, and add it.
Available types: Text (default), Link, Dropdown, Checkbox, Radio, Rating, Slider, Color, Date and File. See Column Types for what each type does.
-
Manage the column list:
Control Action Drag handle Reorder columns Column name Rename the column Type Change the type (custom columns only) Show or hide the column in the table Remove the column
Manage the column list here, not in the properties panel
Always add, remove and rename columns in this step. Columns added or removed directly in the properties panel are not part of the storage mapping or load script — their values are not saved, or saving fails. Use the properties panel only for column settings such as edit rules, input type and styling. See Column Types › Where to configure columns.
Which columns can users edit?
- Dimensions are never editable. Use them to identify rows — they are the only columns that can be keys.
- Measures and custom columns can be edited. For a value stored in the data model, add it as a measure, for example
Only(Comment)orSum(Forecast).
Control exactly when a column can be edited with Editable if in Column Types.
Step 3 — Define Storage
Map the table's columns to the destination and choose the key.
- Available columns lists the columns from Step 2, plus Created by and Created at. Select a column to add it to a table.
-
For each column in the table, review:
Column Description Display columns Column as shown in the Writeback table Qlik columns Field name used in the Qlik app Destination columns Column in the destination. For a file, type the name. For a database, choose from the table's columns. File storage path For File columns only — the file storage to use Key Marks the column as a key Action Remove the column from the table -
Select Next.
Keys
- Every table needs at least one key. Keys identify which row to update.
- Only dimension or field columns can be keys — not measures or custom columns.
- Select several key columns when one column does not uniquely identify a row (a composite key, for example Region + Product + Month).
Audit Columns
Add Created by and Created at to record who saved each row and when. The default destination column names are createdBy and createdAt; change them to match your file or table. Available for both File-based and Database-based Writeback.
Multiple Tables
One Writeback table can write to several destinations — for example, header values to one table and detail values to another.
- Select Add Table (Click here to add new table or data source).
- For a file destination, the new table is named
Table<n>— rename it as needed. For a database, choose an existing table. - The first table cannot be removed.
- File columns can only be placed in the first table.
History Table
Database-based Writeback
Record every change in a separate history table.
- Open History table settings for the destination table.
- Turn on Enable history.
- Select the history table.
- Map Created by and Created at to the history table's user and timestamp columns.
- Select Save.
History table requirements
The history table must already exist and contain all columns of the main table, plus columns for the user and timestamp. Otherwise you see Please select history respective to main table. You can create it with Create Table.
Full row or changed columns only
By default each history row stores the complete row. Your administrator can switch the server to store only the changed columns — see History table content.
Database Requirements
For a database destination, every column must be mapped to a destination column before you can continue.
Step 4 — Trigger Actions
Run Qlik actions automatically after a save succeeds or fails — for example, switch to a confirmation sheet or reload another app.
- Open the On success or On failure tab.
- Select Add actions › Qlik actions.
- Enter a Label and choose the action type and its settings.
Actions run one after another, in the order listed.
| Action | Settings |
|---|---|
| Activate sheet | Sheet ID |
| App reload | Current app, or an App ID; Partial reload |
| Apply bookmark | Bookmark ID |
| Back / Forward | — |
| Clear all / Lock all / Unlock all / Unlock & clear all | — |
| Clear field / Lock field / Unlock field | Field name |
| Select alternatives / Select excluded / Select possible | Field name |
| Field selection | Field name, values (comma-separated), Toggle select, Soft lock |
| Open stories | Story ID |
| Open URL | URL; Target page opens in the same tab |
| Set variable | Variable name, value |
Use expressions
Start any setting with = to evaluate it as a Qlik expression, for example ='Saved by ' & OSUser().
Save the Configuration
Select Save on the last step. Writeback:
- Adds a section named
SO_Writeback_<id>to the app's load script (and aWritebackScriptsection in Qlik Cloud), - runs a partial reload, and
- saves the app.
The message Writeback setup updated successfully! confirms the table is ready.
Do not edit the Writeback script sections
The SO_Writeback_… and WritebackScript sections are managed by Writeback. Editing or deleting them stops the table from saving correctly. To change the setup, reopen the wizard.
Next Steps
- Fine-tune each column in Column Types.
- Style the table and configure its buttons in Table Properties.
- Share Using the Writeback Table with your users.
Video walkthrough
The following video demonstrates configuring and using a Writeback table. Some screens may differ from the current release.