Dashboards & Visualizations

Dashboard Export to Pdf Not working with Table view created using javascript..

kamlesh_vaghela
SplunkTrust
SplunkTrust

Hi All,
I'm facing an issue in export to pdf in dashboard. My dashboard has only one table view panel which is created by TableView (splunkjs/mvc/tableview). In Pdf panel is not showing .

var myTable = new TableView({
    id : "mysearchid",
    managerid : "searchManager",
    rowNumbers : true,
    el : $("#div_id")
});

So is that any other configuration missing in javascript ??

Thanks
Kamlesh

Tags (1)
0 Karma

kkrishnan_splun
Splunk Employee
Splunk Employee

Could you please try adding the render() function at the end, like so
el : $("#div_id")
}).render();

Also make sure that you have this piece of code before you define the myTable variable,
var searchVariable = new SearchManager({
id: "searchManager",
preview: true,
cache: true,
search: "yourSearchSPL"
}, {tokens: true});

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...