On Drill Down
Last updated 9/12/2021
On Drill Down Event
The OnDrillDown
event executes on the client
.
Function Signature
OnDrillDown(sender, context, result) : FiveError;
Parameter | Type | Description |
---|---|---|
sender | Menu | The current menu selected. |
context | Map<string,any> | Optional map of string to values. |
result | FiveError | A Five error to set the result and return the error. |
Description
When the Down button is clicked on a saved parent record the event will be detected and the code will execute.
img
Example
In the Production application, customers can drill down to the live chat room to ask
staff for quotes. We can add an OnDrillDown
event to see how many times customers
of the application drill down to the chat room. By doing this, we can analize if it is
a feature that we will keep in our application. The event can call a function from
the server and the figure would be updated in the database every time a customer clicks
the Down button.
The below function is performing the following: