Skip to main content

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:

  1. If an On Drill Down event exists, it executes first on the client-side.
  2. The Do Drill Down event then executes on the server.
  3. Any server-side logic executes.
  4. 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.

JavaScript
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);
}