<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Django TableView: Open in search/Export option in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112471#M6439</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;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 ?&lt;/P&gt;

&lt;P&gt;As for an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   {% table 
        id="table1-info-hosts" 
        managerid="info-hosts"
        resizable="true"
        drilldown="cell"
        pageSize="20"
   %}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            splunkjs.mvc.Components.getInstance("table1-info-hosts").settings.set({
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...&lt;BR /&gt;&lt;BR /&gt;
                });&lt;/P&gt;

&lt;P&gt;But does not work&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2014 15:26:11 GMT</pubDate>
    <dc:creator>guilmxm</dc:creator>
    <dc:date>2014-01-22T15:26:11Z</dc:date>
    <item>
      <title>Django TableView: Open in search/Export option</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112465#M6433</link>
      <description>&lt;P&gt;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?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    var deps = [
        "splunkjs/ready!",
        "underscore",
        "splunkjs/mvc/radiogroupview",          
        "splunkjs/mvc/tableview",
    ];
    require(deps, function(mvc, _) {            

        var tableHosts = splunkjs.mvc.Components.getInstance("table_hosts");
        tableHosts.settings.set({
            "link.exportResults.visible": true,
            "link.openSearch.visible": true,
            "link.visible": true
            }
        );
    });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jan 2014 12:47:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112465#M6433</guid>
      <dc:creator>MaverickT</dc:creator>
      <dc:date>2014-01-14T12:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Django TableView: Open in search/Export option</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112466#M6434</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 16:43:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112466#M6434</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-01-14T16:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Django TableView: Open in search/Export option</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112467#M6435</link>
      <description>&lt;P&gt;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 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112467#M6435</guid>
      <dc:creator>MaverickT</dc:creator>
      <dc:date>2014-01-15T16:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Django TableView: Open in search/Export option</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112468#M6436</link>
      <description>&lt;P&gt;Hmm, I use a table in an app and I have the "export", "open in search" and "inspect" options under that table.&lt;/P&gt;

&lt;P&gt;Code I used :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var deps = [
"splunkjs/mvc",
"underscore",
"jquery",    
"splunkjs/ready!",
    "splunkjs/mvc/simplexml/element/table"
]; require(deps, function(
    mvc,
    _,
    $
    ) 
    {
         var TableElement = require("splunkjs/mvc/simplexml/element/table");

          var mychart = new TableElement({
              "id": "my_chart",
              "managerid": "search1",
              "el": $("#RenderPanel")
          }, {tokens: true}).render();
    });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;"splunkjs/mvc/tableview" differs from "splunkjs/mvc/simplexml/element/table" - so try to use the simplexml-element.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 08:44:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112468#M6436</guid>
      <dc:creator>Rocket66</dc:creator>
      <dc:date>2014-01-16T08:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Django TableView: Open in search/Export option</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112469#M6437</link>
      <description>&lt;P&gt;This indeed works. This makes me wonder what the point of the "splunkjs/mvc/tableview" is..&lt;/P&gt;

&lt;P&gt;It also works for charts too.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2014 19:22:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112469#M6437</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-01-20T19:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Django TableView: Open in search/Export option</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112470#M6438</link>
      <description>&lt;P&gt;I also wanted to note that the interesting part is that the items on this link: &lt;A href="http://docs.splunk.com/DocumentationStatic/WebFramework/1.0/compref_wrapper.html"&gt;http://docs.splunk.com/DocumentationStatic/WebFramework/1.0/compref_wrapper.html&lt;/A&gt; &lt;BR /&gt;
work only for the simplexml as posted  in this answer, yet it does not mention that in the Component Reference( &lt;A href="http://docs.splunk.com/Documentation/WebFramework"&gt;http://docs.splunk.com/Documentation/WebFramework&lt;/A&gt;  ). I think this is hugely missed when starting from scratch and creating a new dashboard.&lt;/P&gt;

&lt;P&gt;These references to simplexml libraries would only be found out when converting an existing simple dashboard to an html one. &lt;BR /&gt;
Wrappers and views: &lt;A href="http://dev.splunk.com/view/SP-CAAAETA"&gt;http://dev.splunk.com/view/SP-CAAAETA&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2014 19:56:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112470#M6438</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-01-20T19:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Django TableView: Open in search/Export option</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112471#M6439</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;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 ?&lt;/P&gt;

&lt;P&gt;As for an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   {% table 
        id="table1-info-hosts" 
        managerid="info-hosts"
        resizable="true"
        drilldown="cell"
        pageSize="20"
   %}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            splunkjs.mvc.Components.getInstance("table1-info-hosts").settings.set({
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...&lt;BR /&gt;&lt;BR /&gt;
                });&lt;/P&gt;

&lt;P&gt;But does not work&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2014 15:26:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112471#M6439</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2014-01-22T15:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Django TableView: Open in search/Export option</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112472#M6440</link>
      <description>&lt;P&gt;It has to be through javascript&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2014 15:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112472#M6440</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-01-22T15:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Django TableView: Open in search/Export option</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112473#M6441</link>
      <description>&lt;P&gt;I have logged a enhancement request for this feature. Thanks for the feedback.&lt;/P&gt;

&lt;P&gt;-Mark&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2014 23:43:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Django-TableView-Open-in-search-Export-option/m-p/112473#M6441</guid>
      <dc:creator>mgroves_splunk</dc:creator>
      <dc:date>2014-01-22T23:43:05Z</dc:date>
    </item>
  </channel>
</rss>

