# Modes

## Setup

You can only change the Mode when developing your application. I.e. it is not possible for the user to change it on the fly.

<figure><img src="https://4099892881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXdGSelEVi2ug2LCBzJx5%2Fuploads%2Fm7yH2zSvUJKaKDBFJqYG%2Fimage.png?alt=media&#x26;token=1557008f-345d-447d-b232-058c217d6f6b" alt=""><figcaption></figcaption></figure>

## `Table Mode (Default):`

The end user can at all times choose between two ways of adding or changing data when the Komment object is set to Table Mode:

* Inline
* Batch

### `Inline:`

In the inline edit mode the user can select a row and confirm it (pressing the green check in the top right corner) and then add data directly in the cells of the Komment object.&#x20;

<figure><img src="https://4099892881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXdGSelEVi2ug2LCBzJx5%2Fuploads%2FGmH8PDL8tv1hvX0YsGvs%2Fimage.png?alt=media&#x26;token=39babec4-c9b0-4282-b862-482abb80b435" alt=""><figcaption></figcaption></figure>

When a user has changed or added data to one or more cells a small indicator in each cells show that this cell has been changed but not saved yet.

<figure><img src="https://4099892881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXdGSelEVi2ug2LCBzJx5%2Fuploads%2FxSFhBOwjBqs6HMEFOSpg%2Fimage.png?alt=media&#x26;token=3e4a4905-151d-458b-b0d9-f0accdcd3166" alt=""><figcaption></figcaption></figure>

The user can discard the unsaved inputs by pressing `Clear` or press `Save` to ensure they are saved.

### `Batch:`

The user can also select multiple rows (Shift+Click in the row) and press `Edit in Form` to give him the ability to submit the same data or changes for multiple records at the same time.\ <br>

<figure><img src="https://4099892881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXdGSelEVi2ug2LCBzJx5%2Fuploads%2FnvvGjr0QpKyVSOrZJjem%2Fimage.png?alt=media&#x26;token=5e0934e7-dd78-48be-b475-ba9a9fccc57b" alt=""><figcaption></figcaption></figure>

When the user has selected the relevant records he can press `Edit in Form` to open a data entry dialogue where he can add or change data which will apply to all the selected records.

<figure><img src="https://4099892881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXdGSelEVi2ug2LCBzJx5%2Fuploads%2F4PfdSanhilCaRyPtkek2%2Fimage.png?alt=media&#x26;token=97430f5c-bf53-4baa-b443-3667a3994896" alt=""><figcaption></figcaption></figure>

## `Form mode:`

When using Form Mode the user rely on selections being made in other Qlik objects. When the needed (if any) selections are made the user can use the Komment object to save data entries which will then apply to all the selected records.

<figure><img src="https://4099892881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXdGSelEVi2ug2LCBzJx5%2Fuploads%2FXdn621eIqPp1lXtBzokB%2Fimage.png?alt=media&#x26;token=ae6a674b-472b-4737-8192-e7ae40e9c5a6" alt=""><figcaption></figcaption></figure>

## `Popup mode:`

If there is a desire to free up some space on the sheet where Komment is used, the Komment object can be set to Popup mode. The Komment object will then be visible to the user as a floating button on the sheet:

<figure><img src="https://4099892881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXdGSelEVi2ug2LCBzJx5%2Fuploads%2Fxf83Ym9u0MfGlwkpBhk6%2Fimage.png?alt=media&#x26;token=348fbe42-3dfd-4693-881d-61dfcf44c38c" alt=""><figcaption></figcaption></figure>

When the user click on the button a Komment form will be shown which can now be used to make the desired data entries:<br>

<figure><img src="https://4099892881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXdGSelEVi2ug2LCBzJx5%2Fuploads%2FfOlg2mm95nseVwmpoORe%2Fimage.png?alt=media&#x26;token=cbd5f70d-5b07-42e7-b27d-a719f38a1c34" alt=""><figcaption></figcaption></figure>
