Designing a Custom Application Event
When you create a custom application event, you must also define what fires the application event. In the current WinStudio system, there are ways to generate a custom event:
- Create an event trigger by using the Event Trigger form. This step is the easiest and most common way to generate a custom application event.
- Use Generate Event action type in another event handler.
- Use a form or WinStudio event handler with Generate Application
Event response type.Note: Do not confuse the form or WinStudio event handlers with the application event system handlers.
- Use the WinStudio API to write a custom script that generates an application event.
- Invoke an IDO Extension Class method that calls the FireApplicationEvent() method.
- Use the Mongoose Representational State Transfer (REST) service, IDORequestService/MGRestService.svc.
- Use a SQL stored procedure or trigger to call the PostEventSp stored procedure.
These steps represent a typical process for creating custom application events: