Menus
Last updated 18/03/2024
The events in the Menus view are used in conjuction with the Down button on a parent-menu. These events can be used indivdually, however, if both are used, the On Drill Down event will be executed before the Do Drill Down event.
Event | Executes | Description |
---|---|---|
On Drill Down | Client | Executes when the Down button is clicked. |
Do Drill Down | Server | Executes when the Down button is clicked. |
Execution in Your Application
On Drill Down
A function to show a message is used to demonstrate when the On Drill Down event executes. The Do Drill Down executes exactly the same, however, on the backend.Show message on drill down
function InvestmentAnalysis(five, context, result) {
five.showMessage('View your current holding and investment!')
return five.success(result);
}
1. Click the Down button.
Figure 1 - Down button
info
The event executes here and calls the code.
Figure 2 - Event executes