Skip to main content

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.


EventExecutesDescription
On Drill DownClientExecutes when the Down button is clicked.
Do Drill DownServerExecutes 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.

JavaScript
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.


Down button
Figure 1 - Down button

info
The event executes here and calls the code.

Event executes
Figure 2 - Event executes