Spanish Total.js
Deutsch
Dokumentation Für KI-Agenten
Inhalt

Aktionen

Add buttons that send a record to another system or to your own server code.

.md Website

Diese Seite ist noch nicht übersetzt. Du liest das Original.

Auf dieser Seite

An action is a button in the Actions menu of a table. When a user runs it, Tables sends the record to an address of another system, or to an action of an extension, and shows the answer.

Add an action

1. Open the settings of the table and go to the Actions tab.

2. Click Add.

3. Fill in the action:

  • Name: the text of the button, for example Approve.
  • Endpoint: a full address such as https://erp.example.com/api/approve/, or the name of a server action of an extension such as Orders|approve.
  • Show: Everywhere, List or Detail.
  • Type: All, Create or Update.
  • Icon: the icon of the button.

4. Click Save, then SUBMIT.

Run an action

In the record window, the action is in the Actions menu at the start of the toolbar. An action of the type Update appears in the window of an existing record, Create in the window of a new record, and All in both.

The Actions menu of an order with the Approve action

In the list of records, open Actions. With no record selected, the menu shows the actions of the types All and Create. When records are selected, it shows the actions of the types All and Update, and runs the action once for each selected record.

What the endpoint receives

Tables sends a POST request with JSON to an address, or calls the server action directly. The data has the ID of the record, the table, the values and the user who ran the action. The full format is in Hook and action data.

If the endpoint answers with a text, Tables shows it in a message. For example, an endpoint that answers Order approved shows that message to the user.

Hergestellt in Europa