# 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.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-703ef035a4e08347607a510fb43a879b3be607c3%2FselectAll-step-1.png?alt=media)

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

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-e984fc4c1509f42cdd1980b717591e6c434541ce%2FselectAll-step-2.png?alt=media)
2. Executes the callback function and add a console for display the response from console.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-707cdb702bbfe32349ca9b6d9c2cbcc4efc430ad%2FselectAll-step-3.png?alt=media)

### Result

![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-a08f649e777654d425623911b9ab448ebbfa3e31%2FselectAll-result-1.png?alt=media)

## Links
