Splunk Search

Export modal popup panel to pdf?

cherrypick
Path Finder

I have a dashboard X consisting of multiple panels (A, B, C) each populated with dynamic tokens. Panel A consists of tabular data. When a user clicks on a cell, this will register table data as tokens. When the token value changes, this will trigger a JavaScript which "activates" panel B which is originally hidden. This will then create a popup consisting of Panel B that is populated with data passed from tokens from panel A. 

Splunk has a default Export to PDF functionality. I know it uses the pdfgen_endpoint.py but how does clicking this button trigger the python script? Currently this functionality works for exporting dashboard X. How do I make adjustments so it can also work for panel B?

/splunkd/__raw/services/pdfgen/render PDF endpoint must be called with one of the following args: 'input-dashboard=<dashboard-id>' or 'input-report=<report-id>' or 'input-dashboard-xml=<dashboard-xml>' but if I try to parse the XML it requires all token values to be resolved. 

Please assist.

cherrypick_0-1719288851000.png

 

Labels (1)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

Panel B is part of dashboard X, but you say that the export works for dashboard X but not for panel B?

When you say popup, do you mean a modal dialog box on top of the underlying dashboard or just a panel hidden by depends="$token$".

I expect it will not export a modal popup generated through JS.

0 Karma

cherrypick
Path Finder

So the dashboard has 2 visible panels A and C which are shown. Panel B is hidden. So, when I use the default export to pdf it will only show panels A and C which works as intended. Panel B itself is a modal dialog box on top of the underlying dashboard that is also hidden by depends="$token$". 

So ideally I want to adjust the export to pdf functionality to export panel B and not the whole dashboard. 

0 Karma
Get Updates on the Splunk Community!

Customer Experience | Splunk 2024: New Onboarding Resources

In 2023, we were routinely reminded that the digital world is ever-evolving and susceptible to new ...

Celebrate CX Day with Splunk: Take our interactive quiz, join our LinkedIn Live ...

Today and every day, Splunk celebrates the importance of customer experience throughout our product, ...

How to Get Started with Splunk Data Management Pipeline Builders (Edge Processor & ...

If you want to gain full control over your growing data volumes, check out Splunk’s Data Management pipeline ...