☝️Small business or a startup? See if you qualify for our special offer.
+

Accessing custom drill-through metadata in Flexmonster

Answered
Kristian Dimitrov asked on August 7, 2025

Dear Flexmonster Support,

I'm implementing a drill-through feature where I need to display the total count of available records to users, since we're only showing a limited subset (e.g., "Showing 500 of 23,318 records").In the current implementation drill-through requests are served by a custom backend API. The API returns a JSON payload containing both the result set (hits) and a separate drillThroughTotalCount field. Although we can retrieve this property by intercepting the HTTP response, it is not exposed via the Flexmonster JavaScript API.

My Questions are:

- Does Flexmonster currently allow custom properties in drill-through responses to be accessed through the API or event data?

- If not, is such functionality on the product roadmap?

- Alternatively, could you advise on utilising the custom data-source callback (or any recommended extension point) to return additional metadata with the drill-through results?

Thank you for your help.

Kind regards,
Kristian

5 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster August 8, 2025

Hello, Kristian!

Thank you for reaching out to us.

Kindly note that Flexmonster communicates with the server strictly according to our custom data source API communication protocol. If you want to pass additional details from the server, we recommend fetching the desired data with a separate request outside of Flexmonster. You are welcome to use our drillthroughopen event handler to add your custom functionality when pop-up is opened.

Hope you will find our answer helpful.

Kind regards,
Solomiia

Public
Kristian Dimitrov August 11, 2025

Regarding my third point - the custom data-source callback function - could you please point me to the official documentation for it?

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster August 12, 2025

Hello, Kristian!

Thank you for your quick feedback.

Kindly note that it is possible to use the callback function approach to connect Flexmonster to your custom data source API endpoint.
You can find a more in-depth explanation of the function-based approach for custom API connection in the following support forum ticket: More user friendly way to tell the user there is no data when using Custom Data Source API.

We want to point out the limitations of the function-based approach. When saving the report, the saved report JSON file does not include the function from the url parameter, so the report cannot be restored without manually reattaching the function after loading the saved configuration. Therefore, our team doesn't recommend using a function-based approach if saving and reloading reports is crucial for your project.

Hope it helps. Feel free to ask if there are any further questions.

Kind regards,
Solomiia

Public
Kristian Dimitrov August 13, 2025

Thank you for sharing the callback function examples! Could you please confirm if Flexmonster currently offers a straightforward way to display the total count of drillthrough rows in the database, or is this feature planned for a future update? We aim to use the drill-through max rows feature while still displaying the total row count in the interface.

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster August 14, 2025

Hello, Kristian!

Thank you for your swift reply.

Kindly note that for now, there is no out-of-the-box approach to show the total number of rows in the DrillThrough popup. We have added your feature request to our Customers' Wishlist and will notify you about any updates on the matter.

As a possible workaround, we suggest making a separate request outside of Flexmonster to retrieve the necessary values and then updating the HTML when the drillthroughopen event is triggered.

Hope it helps.

Kind regards,
Solomiia

Please login or Register to Submit Answer