# Events

Events trigger actions that respond to user interactions or system changes. They enable dynamic app behavior by executing specific functions when conditions are met. By leveraging events, you can enhance user experience, automate processes, and ensure seamless data synchronization within the app. The following events are configurable:

<table><thead><tr><th width="174.53125">Event</th><th>Description</th></tr></thead><tbody><tr><td><a href="/spaces/HcPzbms3kZejTmFd500V/pages/hkYM8Zg8IouXzpbAhNJL"><code>onAppActivated</code></a></td><td><code>onAppActivated</code> triggers when the app returns from the background and becomes active again. Use it to refresh data or state after the user comes back to the app.</td></tr><tr><td><code>onFocus</code></td><td><code>onFocus</code> triggers when a solution or jig gains focus, meaning it becomes the active element the user is interacting with. It is used to refresh data, adjust UI behavior, or trigger actions when the user returns to a screen.</td></tr><tr><td><code>onLoad</code></td><td>The <code>onLoad</code> event is triggered when the solution loads in the app. It is commonly used to initialize data, fetch remote resources, or set up UI elements before the user interacts with the solution.</td></tr><tr><td><code>onPress</code></td><td>This event is triggered when a user taps on a certain UI element, such as a button, link, or interactive component. It is used to handle user interactions and execute specific actions based on the tap event.</td></tr><tr><td><code>onRefresh</code></td><td>The <code>onRefresh</code> event is triggered when the user performs a refresh action, typically by pulling down on a list or screen. It is commonly used to reload data from a remote source or update displayed content to reflect the latest changes.</td></tr><tr><td><a href="/pages/AB1208vIgtN6JkVSKxoG">onTableChanged</a></td><td>This event checks for local data changes within the app on specific data tables (entities). When a change is detected, the event triggers the configured actions that call remote data providers to sync and apply those changes. This ensures that the local and remote data stay consistent, maintaining up-to-date information across the system.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jigx.com/examples/readme/events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
