> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# screen_definition_action table

> An action to perform for a certain button in an screen

## screen\_definition\_action Table (371)

An action to perform for a certain button in an screen

## Fields

| Name               | Description                                                                                 | Type                                             | Nullable |
| ------------------ | ------------------------------------------------------------------------------------------- | ------------------------------------------------ | :------: |
| id                 | Primary key                                                                                 | PK                                               |    No    |
| screen\_definition | The screen-definition this element belongs to                                               | FK [screen\_definition](./screen-definition.mdx) |    Yes   |
| button             | The name of the button triggering this action                                               | String(255)                                      |    Yes   |
| ejscript           | Deprecated. The ejscript to execute if this is a form which is posted                       | FK [ejscript](./ejscript.mdx)                    |    Yes   |
| ejscript\_body     | The script to execute for this button/action                                                | Clob                                             |    Yes   |
| do\_check          | If set, then run check() before executing button (making sure values in form fields are ok) | Bool                                             |    Yes   |

<img src="https://mintcdn.com/superofficeas/8-OIGQQJR0VGDXy_/media/loc/en/database/tables/screen_definition_action.png?fit=max&auto=format&n=8-OIGQQJR0VGDXy_&q=85&s=e2f6b26bd41eeee790e469fcad7db01f" alt="screen_definition_action table relationship diagram" width="795" height="59" data-path="media/loc/en/database/tables/screen_definition_action.png" />

## Indexes

| Fields             | Types | Description |
| ------------------ | ----- | ----------- |
| screen\_definition | FK    | Index       |
| ejscript           | FK    | Index       |

## Relationships

| Table                                     | Description           |
| ----------------------------------------- | --------------------- |
| [ejscript](./ejscript)                    | ejscript              |
| [screen\_definition](./screen-definition) | A configurable screen |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [screen_definition table](/en/database/tables/screen-definition.md)
- [screen_definition_element table](/en/database/tables/screen-definition-element.md)
- [screen_definition_hidden table](/en/database/tables/screen-definition-hidden.md)
- [screen_definition_language table](/en/database/tables/screen-definition-language.md)
- [ejscript table](/en/database/tables/ejscript.md)
- [Screen definition](/en/ui/blogic/learn/screen-definition.md)
