<?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: Enabling export to csv button in web framework in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Enabling-export-to-csv-button-in-web-framework/m-p/143900#M29382</link>
    <description>&lt;P&gt;no you dont, just in the blockmanager. &lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2015 20:39:04 GMT</pubDate>
    <dc:creator>gonzalovasquez</dc:creator>
    <dc:date>2015-10-26T20:39:04Z</dc:date>
    <item>
      <title>Enabling export to csv button in web framework</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Enabling-export-to-csv-button-in-web-framework/m-p/143896#M29378</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am looking to enable an export to csv button in web framework (where you can hover over the bottom of a table to click the export button). How do you do this in the web framework? My table view looks as follows, what needs to be added?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    var table_site = new TableView({
        id: 'table_site',
        managerid: 'table_site_results',
        height: 700,
        pageSize: 70,
        drilldown: "none",
        el: $('#table_site')
    });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Jul 2014 18:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Enabling-export-to-csv-button-in-web-framework/m-p/143896#M29378</guid>
      <dc:creator>jamesvz84</dc:creator>
      <dc:date>2014-07-15T18:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling export to csv button in web framework</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Enabling-export-to-csv-button-in-web-framework/m-p/143897#M29379</link>
      <description>&lt;P&gt;I've figured it out. I should not use TableView, but TableElement instead. TableElement is the simple xml wrapper that has the various buttons at the bottom.&lt;/P&gt;

&lt;P&gt;Then, TableView can be extracted from TableElement, if you still need to apply a cell renderer. Remember to include the element in the "require" section:               &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{% block js %}
{# JavaScript goes here #}  
&amp;lt;script&amp;gt;
    // Load the required libraries
    var deps = [
            "splunkjs/mvc",
            "splunkjs/mvc/utils",
            "splunkjs/mvc/tokenutils",
            "underscore",
            "jquery",
        "splunkjs/ready!",
        "splunkjs/mvc/searchmanager",
        "splunkjs/mvc/postprocessmanager",
        "splunkjs/mvc/multidropdownview",
        "splunkjs/mvc/chartview",
        "splunkjs/mvc/tableview",
            "splunkjs/mvc/simplexml/element/table",
        "splunkjs/mvc/dropdownview",
        "backbone",
        "splunkjs/mvc/searchbarview",
        "splunkjs/mvc/radiogroupview"
    ];
    require(deps, function(mvc,utils,TokenUtils,_,$,DashboardController, SearchManager, PostProcessManager, MultiDropDownView, ChartView, TableView, TableElement, DropDownView, Backbone, DebugView) {


..... etc etc etc.....

    var table_site = new TableElement({
                "id": "table_site",
                "dataOverlayMode": "none",
                "drilldown": "cell",
                "rowNumbers": "false",
                "wrap": "true",
            pageSize: 70,
            drilldown: "none",
                "managerid": "table_site_results",
                "el": $('#table_site'),
        "link.exportResults.visible": true,
        "link.visible": true
            }, {tokens: true}).render();




    var cellRenderer = new CustomCells();

    mvc.Components.get('table_site').getVisualization(function(tableView){
            // Register custom cell renderer
            tableView.table.addCellRenderer(cellRenderer);
            // Force the table to re-render
            tableView.table.render();
    });
        });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Jul 2014 20:38:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Enabling-export-to-csv-button-in-web-framework/m-p/143897#M29379</guid>
      <dc:creator>jamesvz84</dc:creator>
      <dc:date>2014-07-15T20:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling export to csv button in web framework</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Enabling-export-to-csv-button-in-web-framework/m-p/143898#M29380</link>
      <description>&lt;P&gt;Glad you found your answer @jamesvz84 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Please be sure to accept your answer by clicking on the check mark next to your response so other people with similar issues/questions will turn to this post for help. Thanks!&lt;/P&gt;

&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2014 21:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Enabling-export-to-csv-button-in-web-framework/m-p/143898#M29380</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2014-07-15T21:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling export to csv button in web framework</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Enabling-export-to-csv-button-in-web-framework/m-p/143899#M29381</link>
      <description>&lt;P&gt;Hi @jamesvz,&lt;/P&gt;

&lt;P&gt;I also need that function in my dashboard , currently im also using the framework .&lt;BR /&gt;
I would like ask if the search ex.  {% savedsearchmanager id="search2" searchname="sample_search" app="search" %} shoul i also convert it to&lt;/P&gt;

&lt;P&gt;var search1 = new SearchManager({&lt;BR /&gt;
"id": "search1",&lt;BR /&gt;
"cancelOnUnload": true,&lt;BR /&gt;
"earliest_time": "-24h@h",&lt;BR /&gt;
"search": "index=_internal | top limit=100 sourcetype | eval percent = round(percent,2)",&lt;BR /&gt;
"latest_time": "now",&lt;BR /&gt;
"status_buckets": 0,&lt;BR /&gt;
"app": utils.getCurrentApp(),&lt;BR /&gt;
"auto_cancel": 90,&lt;BR /&gt;
"preview": true&lt;BR /&gt;
}, {tokens: true, tokenNamespace: "submitted"});&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:34:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Enabling-export-to-csv-button-in-web-framework/m-p/143899#M29381</guid>
      <dc:creator>xisura</dc:creator>
      <dc:date>2020-09-28T17:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling export to csv button in web framework</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Enabling-export-to-csv-button-in-web-framework/m-p/143900#M29382</link>
      <description>&lt;P&gt;no you dont, just in the blockmanager. &lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 20:39:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Enabling-export-to-csv-button-in-web-framework/m-p/143900#M29382</guid>
      <dc:creator>gonzalovasquez</dc:creator>
      <dc:date>2015-10-26T20:39:04Z</dc:date>
    </item>
  </channel>
</rss>

