> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/dataset/selectall.md).

# selectAll

## Description

Retrieves all data from a local table.

## Input / Parameter

| Name    | Description                                     | Input Type  | Default | Options | Required |
| ------- | ----------------------------------------------- | ----------- | ------- | ------- | -------- |
| dataset | The name of the local table.                    | String/Text | -       | -       | Yes      |
| extra   | Extra parameters stored and passed to callback. | Any         | -       | -       | No       |

## Output

| Description                                | Output Type |
| ------------------------------------------ | ----------- |
| Returns all the fields in the local table. | Array/List  |

## Callback?

### callback

The function to be executed if all data is retrieved from the local table successfully.

### errCallback

The function to be executed if all data is not retrieved from the local table successfully.

## Video

Coming Soon.

## Example

The user wants to display all the data in dataset "l\_item".

### Step

1. Call the function "selectAll"and define the dataset.

   ![](/files/rJH3Qz3XLke27tkg6gJw)

   |         |         |
   | ------- | ------- |
   | dataset | l\_item |

   ![](/files/Kmyx6KZQ0SijLL0THGVk)
2. Executes the callback function and add a console for display the response from console.

   ![](/files/gnckq7uFtuGylxww9T7A)

### Result

![](/files/tzrMMV5RcZ4YdcEYsy9U)

## Links
