Do Drill Down
Last updated 9/04/2026
Overview
The Do Drill Down event is a server-side event that executes when a user clicks the Down button on a parent menu. This allows the application to perform backend logic before a sub-menu is displayed, such as preparing data or updating records.
How it Works
When a user clicks the Down Button:
- If an On Drill Down event exists, it executes first on the client-side.
- The Do Drill Down event then executes on the server.
- Any server-side logic executes.
- The sub-menu is displayed after the server-side processing completes.
Use Cases
- Track or log menu navigation for auditing
- Perform backend checks before allowing navigation
- Prepare or update data needed by the sub-menu
Example
This function executes when the Down button is clicked and logs which user performed the drill down and the form action they came from.
Log user drill down with form action
function InvestmentAnalysis(five, context, result) {
five.log(`User ${five.currentUserID()} drilled down from action : ${five.getActionByKey(context.form.key()).actionID()}`);
return five.success(result);
}