Dashboards & Visualizations

Django TableView: Open in search/Export option


I am migrating my dashboards from advanced XML to new Splunk Web Framework (django). By using postprocessmanagers whole dashboard loads much faster but I have to find workaround for TableView that we need. In simple and advanced XML there is always an option to have links at the bottom of the table to export resuls or open results in search. I have tried to make workaround with javascript but there is no difference (code sample included). Can anybody give me a hint how to do it?

    var deps = [
    require(deps, function(mvc, _) {            

        var tableHosts = splunkjs.mvc.Components.getInstance("table_hosts");
            "link.exportResults.visible": true,
            "link.openSearch.visible": true,
            "link.visible": true

Splunk Employee
Splunk Employee

I have logged a enhancement request for this feature. Thanks for the feedback.



Hmm, I use a table in an app and I have the "export", "open in search" and "inspect" options under that table.

Code I used :

var deps = [
]; require(deps, function(
         var TableElement = require("splunkjs/mvc/simplexml/element/table");

          var mychart = new TableElement({
              "id": "my_chart",
              "managerid": "search1",
              "el": $("#RenderPanel")
          }, {tokens: true}).render();

"splunkjs/mvc/tableview" differs from "splunkjs/mvc/simplexml/element/table" - so try to use the simplexml-element.


It has to be through javascript

0 Karma



I have the same requirement, can you achieve the same thing (for both tables and charts) when using the django request to render the item ?

As for an example:

   {% table 

I've tried:




But does not work

0 Karma


I also wanted to note that the interesting part is that the items on this link: http://docs.splunk.com/DocumentationStatic/WebFramework/1.0/compref_wrapper.html
work only for the simplexml as posted in this answer, yet it does not mention that in the Component Reference( http://docs.splunk.com/Documentation/WebFramework ). I think this is hugely missed when starting from scratch and creating a new dashboard.

These references to simplexml libraries would only be found out when converting an existing simple dashboard to an html one.
Wrappers and views: http://dev.splunk.com/view/SP-CAAAETA


This indeed works. This makes me wonder what the point of the "splunkjs/mvc/tableview" is..

It also works for charts too.

0 Karma


After few weeks of playing with django/web framework it seems that it is more like half-product. It is fast but it really lacks of few features (export, easy token passing between views) that it should realy have. Hopefully guys at Splunk will improve this, I dont want to code all the dashboards again if they decide to scrap it 🙂


I need this functionality too! You would think they would have this feature be within the django/web framework as it should have all the features and more of the simple xml.

State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!