Early Access: The content on this website is provided for informational purposes only in connection with pre-General Availability Qlik Products.
All content is subject to change and is provided without warranty.
Skip to main content Skip to complementary content

Creating write tables

You can create a write table on your sheet, adding dimensions, measures, and editable columns as needed. After creating a write table in an app, users with access to that app, as well as write table permissions, will be able to make changes to editable columns. Changes can then be exported to external systems.

Create a write table

You can add a write table to your sheet at any time.

  1. In the Assets panel, under Charts, drag a Write table to the sheet.

  2. Click Add dimension and select a dimension or a field.

  3. Add additional static columns by clicking Open Add data asset menu under Data in the properties panel. A dropdown opens. Select either of the following:

    • Fields & master items: Opens a searchable dialog box displaying every field and master item. You can choose to add any item as a dimension or measure.
    • Custom expression: Opens a dialog box where you can type in an expression, or open the expression editor Open Expression editor.
  4. Add editable columns by clicking Open Add data asset menu under Data in the properties panel, and selecting Editable column.

  5. Define one or more primary keys for the table. In the write table, within the editable column, click Define, and select one or more dimension columns to use as the primary keys.

    For more information about primary keys, see Primary key.

  6. Click Save.

After you create the write table, allow users to interact with it and add changes to editable columns. You can also customize the appearance of the write table by configuring its properties. See Configuring write table properties.

Extract and use changes

When users add data in editable columns, their changes are not applied to the data model of the app. They are also temporary—changes are stored in a Qlik-managed change store for 90 days, after which they are deleted.

You can retrieve these changes via the change-stores API. The changes can be used in various ways, including:

  • Load the changes into QVDs or apps for permanent storage and use within Qlik Cloud.

  • Extract the changes, adding them to external systems such as Excel spreadsheets or SQL databases.

  • Dynamically integrate the data into automated processes, such as sending emails and purchasing inventory.

  • Build your own applications and integrate calls to the change-stores API into your operational workflows.

Prerequisites

Before you can access the data saved in the change store, you need to be able to access the change-stores API. To do this, you need:

Available tools for extracting changes

You can use the following tools to extract and use changes from the change-stores API:

  • Qlik Automate

  • The REST connector available with Qlik scripting and data preparation.

For examples and use cases, see:

Concepts

This section provides an overview of the fundamental concepts for the write table.

Editable column

In a write table, editable columns allow users to enter data on the fly during analysis. By saving changes to an editable column, a user writes changes to a change store, from which they can retrieved by app developers and integrators.

For more information on where you create editable columns, see Create a write table.

After you have added an editable column, you can further customize it to suit your needs.

  1. In the properties panel, under Data, click the editable column.

    The column properties open.

  2. You can change any of the following properties:

    • Title: Change the default column title.

    • Show content: Change how users can edit data in the table. You can choose between:

      • Single selection: Specify a set of values that users can select for each cell when editing. For example, you could add two values for orders statuses: On Track and Late. Users can then select between these values when they comment on data records.

      • Manual user input: Users edit data by typing text manually into cells.

    • Show column: Toggle whether the column is visible or hidden.

    • Column width: Set the width of the column.

Change store

A change store is a Qlik-managed storage location that contains the user-added changes from editable columns in a write table. The change store is a temporary storage location—changes are stored for a maximum of 90 days, after which they are deleted.

The change store for your write table is pre-configured for your tenant, and is accessible via the change-stores API. With your change store ID, you can formulate API requests and automations that synchronize user changes to a permanent location such as a spreadsheet or database. For more information, see Extract and use changes.

You can copy the change store ID in two ways:

  • In sheet edit mode after you create the write table. In the properties panel, under Change storeChange store ID, click Copy.

    Copying the change store ID from the properties panel.

    Clicking the 'Copy' icon in the write table properties to obtain the change store ID
  • In analysis mode when viewing the write table. Click the Info icon in the bottom right corner. Click Copy to copy the change store ID.

    Copying the change store ID when viewing a write table.

    Clicking the 'Copy' icon from the info tooltip when viewing a write table, copying the change store ID

Primary key

To add editable columns to a write table, you need to define at least one primary key.

A primary key is a field used to link changes to editable columns back to the original data from the data model. Primary keys provide the mapping between records in the write table — which represent data from the data model — and the edits that users introduce within editable columns.

The primary key can be a single field, or it could be a composite key that spans multiple fields.

After you have defined the primary keys in a write table, you can change them at any time. In the properties panel, under Change storePrimary keys, click Modify.

The primary key is also important when you pull changes from the change-stores API.

Examples: Extracting changes from a change store

These examples show you how you can configure automations and data connections to retrieve change data from the change store using the change-stores API.

Extracting write table changes with Qlik Automate

Extracting write table changes with the REST connector in Qlik Cloud

Permissions

To create write tables and interact with the change-stores API, you need specific permissions. For more information, see Write table permissions.

Learn more

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!