Xuda Studio Component Events Tab User Guide
Xuda Studio Component Events Tab User Guide
This guide explains the Events tab for a component in Xuda Studio.
It is written for non-technical users. It focuses on what events help you do and what result you should expect from each part of the screen.
The screenshots are dark, full-screen captures from https://dev.xuda.ai/studio.
Feature Tips Map

Use this visual as a quick reminder that most Xuda features work best when you connect the workspace, the data, the screen, and the next action instead of treating each area as separate.
Screenshot Gallery
Use this section to confirm that the screenshots are loading in your Markdown preview.
| Screen | Screenshot |
|---|---|
| Empty Events tab | ![]() |
| Added event | ![]() |
| Event properties | ![]() |
| Event type options | ![]() |
| User-defined event | ![]() |
| Properties expression | ![]() |
| Condition expression | ![]() |
| Parameters | ![]() |
| Workflow | ![]() |
| Multiple events | ![]() |
| Context menu | ![]() |
| Add action options | ![]() |
What Events Do

Events tell a component when to do something.
An event can run when the component loads, when the screen is ready, when a record is found, when a custom event is raised, or on a repeating interval.
Result: the component can respond at the right moment instead of waiting for a person to manually start every action.
Empty Events Tab

When a component has no events, Studio shows an empty state and an Add event button.
Use this when you want the component to start doing something automatically or respond to something that happens in the app.
Result: the component is ready for its first behavior trigger.
Add An Event

Choose Add event to create a new event.
The new event appears in the list and becomes selected. Once selected, you can shape it from the Properties panel on the right.
Result: the component now has a moment where a workflow can run.
Event Properties

The Properties panel is where you decide what kind of event this is and what should happen when it runs.
Use it to choose the event timing, name a custom event, add optional rules, pass values into the event, and build the workflow.
Result: the event becomes a useful trigger instead of only a row in the list.
Event Type Options

The event type tells Studio when the event should run.
| Event Type | Use It When | Result |
|---|---|---|
| On load | Something should happen when the component starts. | The workflow runs early in the component lifecycle. |
| On exit | Something should happen when leaving the component. | The workflow can clean up, save, or notify before exit. |
| User defined | Another workflow should call this event by name. | The event becomes reusable inside the app. |
| Before record | Something should happen before a record is handled. | The component can prepare or check data first. |
| After record | Something should happen after a record is handled. | The component can respond after data is available. |
| Record not found | The component should react when a record is missing. | The user can see a fallback or the app can try another path. |
| Locate not found | A lookup did not find what it needed. | The workflow can handle the missing result. |
| Screen ready | The visual screen is ready for use. | The workflow runs after the screen is available. |
| Client interval | Something should repeat while the component is open. | The component can refresh or check status on a timer. |
Start with Screen ready for behavior that should run after the component appears. Use User defined when you want another part of the app to trigger the event.
User-Defined Event

A User defined event is a named event that other workflows can call.
Use this when you want a reusable behavior, such as contact_selected, refresh_list, open_details, or save_finished.
Result: other parts of the component or app can trigger the event by its name.
Properties Expression

The event Properties option lets you attach extra information to the event.
Use it when the event needs extra context, such as what screen area it belongs to, what mode it should use, or what setup detail should travel with it.
Result: the workflow can receive more context when the event runs.
Condition

A Condition controls whether the event should run.
Use it when the workflow should only happen in some situations, such as when a contact exists, when a value is not empty, or when the user has made a specific choice.
Result: the event can avoid running at the wrong time.
Parameters

Parameters are values passed into the event.
Use parameters when the workflow needs to know which record, field, or value it should work with.
Result: the event can run with the right information instead of guessing.
Workflow

The Workflow area is where you add the actions that run when the event happens.
An event without workflow is only a trigger. Add workflow actions when the event should actually do something, such as save data, show a message, call another program, refresh the screen, or open another page.
Result: the event becomes a real behavior in the app.
Add Action Options

Choose Add Action to decide what the event should do.
The available actions are grouped by purpose, such as navigation, database work, JavaScript, event handling, delays, UI utilities, APIs, datasets, plugins, and comments.
Result: the event can perform one or more steps when it runs.
Multiple Events

A useful component can have several events, each responsible for a different moment.
In this example:
| Event | Purpose |
|---|---|
| load_component | Runs when the component loads. |
| screen_ready | Runs after the screen is ready. |
| before_record | Runs before record handling. |
| after_record | Runs after record handling. |
| contact_selected | Runs when another workflow raises the custom event. |
| refresh_timer | Runs on a client interval. |
Result: the component can organize behavior by timing, instead of putting every action in one place.
Event Context Menu

Right-click an event to open its context menu.
| Option | What It Helps You Do | Result |
|---|---|---|
| Delete | Remove an event that is no longer needed. | The selected event is removed. |
| Copy | Reuse an event as a starting point. | The next paste can create another event. |
| Paste | Add a copied event back into the list. | The copied event appears in the component. |
| Watch | Keep attention on this event during the session. | Studio can help you follow that event while working. |
Use the context menu when you need to clean up, duplicate, or monitor component behavior.
Keyboard Helpers
The Events tab also shows small keyboard hints below the list.
Use them when you are working quickly:
| Goal | Helper |
|---|---|
| Create a new event | New |
| Remove selected events | Delete |
| Duplicate events | Copy and Paste |
| Select everything | Select all |
| Move through the list | Navigate |
Result: event editing can be faster when the component has many behaviors.
Recommended Use
Use Screen ready when the component needs to prepare the screen after it appears.
Use On load when something should happen as the component starts.
Use Before record and After record when the component works with table or datasource records.
Use Record not found or Locate not found to create a friendly fallback instead of leaving the user stuck.
Use User defined for reusable behavior that another workflow can call.
Use Client interval carefully for repeated refresh or status checks.
Keep each event focused on one clear moment. A component is easier to understand when each event has a simple job.
Extra Feature Tips
- Use Screen ready for setup that depends on the screen being visible.
- Use On load for component startup work that should happen before the user interacts.
- Use Before record and After record to keep record-specific logic close to the datasource flow.
- Use Record not found and Locate not found to show a friendly fallback when data is missing.
- Keep Client interval events rare and purposeful because repeated work can make preview behavior harder to read.