All pages
Powered by GitBook
1 of 1

Loading...

Actions

A detailed overview of the types of Actions.

Action is an operation that you can perform in Jet Admin. Visually, the action is a button in the Jet Admin interface.

To add an action you need to

  1. Select a Button component

  2. Drag and drop it on the page

Action types

There are a variety types of actions that are split into sections:

Data

  • Run operation. Perform any CRUD operation or custom API/SQL query.

  • Export Data. Export data from the table.

  • Import Data. Import data to a collection.

Navigation

  • Navigate to page. Passing values and switching between pages.

  • Open URL. Open the link in a new or the current tab.

Overlays

  • . Create a sub-menu of actions.

  • . Open or close the overlay.

Interaction

  • . Show custom notification.

  • Copy to Clipboard. Copy data to your Clipboard.

  • . Act on a component, such as updating data or clearing the form after submitting.

Advanced

  • . Set a value to a specific Page Variable or Page Variable .

  • . Execute a JavaScript code.

  • Download File. Download the file from the API call.

  • . To scan a graphic code.

Run workflow

  • . Fires a sequence of events.

Action confirmation dialog

You can set up a confirmation dialog that will appear before executing an action.

To add a confirmation dialog, use the "Confirm on execute" section of the right-side panel

You can define the Title, Description, and button styles for your confirmation dialog.

Run Operation

Perform operation with your resources, such as CRUD operations with Databases, operations with third party services, APIs and frameworks, and operations with storages.

Creating an operation in a button

  1. Click on the Button

  2. Go to the Click Action

  3. Choose Run Operation

  4. Choose the Resource

Operations with storages

You can perform these actions with storages:

  • Getting private file URL

  • Uploading a File

  • Getting list of objects

  • Creating a directory

Navigate to Page

You can pass values and switch between pages. To do so, follow the steps:

  1. Click on the Button

  2. Go to the Click Action

  3. Choose Navigate to Page

  4. Choose the Link of the Page

Open URL

Opens any website URLs, use Action specified as Open URL.

  1. Click on the Button

  2. Go to the Click Action

  3. Choose Open URL

  4. Click on the URL icon to change the URL of the Page

Open/Close Overlay

You can close the pop-up overlay window. To do so, follow the steps:

  1. Click on the Button

  2. Go to the Click Action

  3. Choose Close Overlay

Open Actions Dropdown

The Open Actions Dropdown feature allow you to create a list of multiple separate actions that will appear in a drop-down list. This dropdown menu facilitates triggering queries and other actions with ease.

  • Multiple Actions: Create a list of distinct actions that users can select from a dropdown menu.

  • Ease of Use: Simplify the process of triggering various actions from a single interface element.

  • Manual Configuration: Customize the actions list according to specific requirements.

Run Component Action

You can act on a component, such as updating data or clearing the form after submitting.

Show Notification

You can show custom notifications.

Run JavaScript

To execute JavaScript code upon clicking a button, follow these steps:

  1. Click on the button.

  2. Navigate to the Click Action.

  3. Select "Run JavaScript."

  4. Type your JavaScript code and return the result.

You can Insert input values from other components and use it further within your JavaScript code. To do that, click 'Insert Input' and choose the needed component.

Export Data

You can export data from the table. To do so, follow the steps:

  1. Click on the Table

  2. Go to the Actions Tab

  3. Scroll down to the Header Actions

Download File

  1. Click on the Button

  2. Go to the Click Action

  3. Choose Download File

Now, let's define the Resource and Operation. To do so, follow the steps:

  1. Click on the button

  2. Pick a resource

  3. Choose an operation to write SQL queries

  4. Write the SQL query

This will generate a JSON file with the data.

Copy to clipboard

You can set up actions to copy data to the clipboard. This works with all components. To configure it, follow the steps:

  1. Go to the Actions Tab

  2. Go to the Row Click

  3. Choose Copy to Clipboard

  4. Click on the Set up with Formula

Choose the Action

Removing an object
Click on the
New Action
  • Choose Export Data

  • Choose the Resource and the Collection

  • Click on the Run button

  • Click on the Save button

  • icon
  • Choose Email

  • Open Actions Dropdown
    Open Overlay/Close Overlay
    Show Notification
    Run Component Action
    Set Variable
    Run JavaScript
    Scan QR/Bar Code
    Run Workflow
    Overlay
    Component Actions
    Custom Notifications
    Confirmation dialog example
    Storages operations