# Data Status

{% hint style="info" %}
**Block Information**

Available in: Page Flow and Cloud Flow

Toolbox Category: Data - Read and Data - Edit

Block Type: [Regular](https://docs.zingy.ai/app-editor/block-anatomy#regular-block)
{% endhint %}

**`Data Status`** is a [regular block](https://docs.zingy.ai/app-editor/block-anatomy#regular-block) that tracks the status of [read](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-read), [lookup](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-lookup), [add](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-add-record), [update](https://docs.zingy.ai/app-editor/cloud-flow/toolbox-blocks/data-update-records) and [delete](https://docs.zingy.ai/app-editor/cloud-flow/toolbox-blocks/data-delete-records) operations for a [database table](https://docs.zingy.ai/app-editor/data/database-tables).

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2Ffwcawlsvne1iWEDaSjAr%2Fimage.png?alt=media&#x26;token=75b6ed23-5940-4f91-b1be-5453dff618d4" alt="" width="246"><figcaption><p>Data Status block</p></figcaption></figure></div>

The block consists of the following (from top to bottom):

* *Operation:* [Dropdown configuration setting](https://docs.zingy.ai/app-editor/block-anatomy#dropdown) to select the specific database operation you want to track the status of.  The dropdown options are:
  1. *Read* - Tracks the completion of database read operations by [Data Read](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-read), [Data Read Next](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-read-next) and [Data Read Previous](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-read-previous) blocks.
  2. *Add* - Tracks the completion of database add operation by the [Data Add Record](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-add-record) block.
  3. *Update* - Tracks the completion of database add operation by [Data Update Record with ID](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-update-record-with-id) and [Data Update Records](https://docs.zingy.ai/app-editor/cloud-flow/toolbox-blocks/data-update-records) blocks.
  4. *Delete* - Tracks the completion of the database delete option by [Data Delete Record with ID](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-delete-record-with-id) and [Data Delete Records](https://docs.zingy.ai/app-editor/cloud-flow/toolbox-blocks/data-delete-records) blocks.
  5. *Lookup* - Tracks the completion of the database lookup operation using the [Data Lookup](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-lookup) block.
* *Table:* [Value Parameter](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) that accepts a [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) value representing the name of the [Database Table](https://docs.zingy.ai/app-editor/data/database-tables) .
* *Dataset Name:* [Value Parameter](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) that accepts a [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) value representing the name of the dataset. This can be any text value and can later be used to track the completion of the read.
* *Success Tasks*: a [Flow Parameter](https://docs.zingy.ai/app-editor/block-anatomy#flow-parameters) where you connect blocks that specify what you want done when the operation completes successfully.
* *Failure Tasks*: a [Flow Parameter](https://docs.zingy.ai/app-editor/block-anatomy#flow-parameters) where you connect blocks that specify what you want done when the operation has an error.

***

## Usage Examples

The example below shows the **`Data Status`** block being used to track the completion of a database read operation. This example is explained in more detail [here](https://docs.zingy.ai/app-editor/page-flow/data-read#usage-examples).

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2Fj9mLdtTBzvJjh1enjjGu%2Fimage.png?alt=media&#x26;token=f548180a-238a-461f-8847-bc6824414bdd" alt="" width="563"><figcaption><p>Data Status block example with Database Read operation</p></figcaption></figure></div>

The next example (below) shows the **`Data Status`** block being used to track a database add operation. This example is explained in more detail [here](https://docs.zingy.ai/app-editor/page-flow/data-add-record#usage-example).

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FctzZsPFJVAZcVfzChoD6%2Fimage.png?alt=media&#x26;token=ab77bb6b-bdb6-4613-9b44-cf42cda4b835" alt="" width="563"><figcaption><p>Data Status block example with Database Add operation</p></figcaption></figure></div>

The image below is our third example, where we use the **`Data Status`** block to track a database update operation. This example is explained in more detail [here](https://docs.zingy.ai/app-editor/page-flow/data-update-record-with-id#usage-example).&#x20;

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FBSYwVxHNuQFl9H6wCGxt%2Fimage.png?alt=media&#x26;token=37bceae3-e7d7-42cb-8e85-7c6c9f49c0cf" alt="" width="563"><figcaption><p>Data Status block example with Database Update operation</p></figcaption></figure></div>
