<?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: How to remove table headers from tableView Object in Javascript? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-table-headers-from-tableView-Object-in-Javascript/m-p/285849#M86482</link>
    <description>&lt;P&gt;It doesn't work.  According to the following document, the tableView doesn't have table in the properties &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/DocumentationStatic/WebFramework/1.2/compref_table.html"&gt;http://docs.splunk.com/DocumentationStatic/WebFramework/1.2/compref_table.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2016 21:21:43 GMT</pubDate>
    <dc:creator>splunkrocks2014</dc:creator>
    <dc:date>2016-12-20T21:21:43Z</dc:date>
    <item>
      <title>How to remove table headers from tableView Object in Javascript?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-table-headers-from-tableView-Object-in-Javascript/m-p/285847#M86480</link>
      <description>&lt;P&gt;I wanted to remove the table headers from a statistics table.  I tried to add it the following code to my javascript, but it doesn't work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;document.getElementById("myTable").deleteTHead();
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can we use tableView object to remove the table headers?  If not, what is the best practice?  Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 17:27:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-table-headers-from-tableView-Object-in-Javascript/m-p/285847#M86480</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2016-12-20T17:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove table headers from tableView Object in Javascript?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-table-headers-from-tableView-Object-in-Javascript/m-p/285848#M86481</link>
      <description>&lt;P&gt;Assuming you have &lt;CODE&gt;&amp;lt;table id="myTable"&amp;gt;&lt;/CODE&gt; in your simple XML somewhere, I don't think "myTable" is an HTML table's ID. I'd go through mvc.Components.get and then use getVisualization on the result - like that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mvc.Components.get('myTable').getVisualization(function(tableView){
          tableView.table.deleteTHead();
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Dec 2016 20:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-table-headers-from-tableView-Object-in-Javascript/m-p/285848#M86481</guid>
      <dc:creator>arkadyz1</dc:creator>
      <dc:date>2016-12-20T20:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove table headers from tableView Object in Javascript?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-table-headers-from-tableView-Object-in-Javascript/m-p/285849#M86482</link>
      <description>&lt;P&gt;It doesn't work.  According to the following document, the tableView doesn't have table in the properties &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/DocumentationStatic/WebFramework/1.2/compref_table.html"&gt;http://docs.splunk.com/DocumentationStatic/WebFramework/1.2/compref_table.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 21:21:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-table-headers-from-tableView-Object-in-Javascript/m-p/285849#M86482</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2016-12-20T21:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove table headers from tableView Object in Javascript?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-table-headers-from-tableView-Object-in-Javascript/m-p/285850#M86483</link>
      <description>&lt;P&gt;Have you actually tried that? The tableView inside that function is the result of &lt;CODE&gt;getVisualization&lt;/CODE&gt;, not the component brought back by &lt;CODE&gt;mvc.Components.get&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Also, with Splunk, one cannot rely on documentation alone - many things are underdocumented, or the useful definitions are spread across multiple documents.&lt;/P&gt;

&lt;P&gt;Take a look at the answer in &lt;A href="https://answers.splunk.com/answers/222339/splunk-6x-dashboard-examples-how-to-include-multip.html"&gt;this question&lt;/A&gt;, for example.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 21:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-table-headers-from-tableView-Object-in-Javascript/m-p/285850#M86483</guid>
      <dc:creator>arkadyz1</dc:creator>
      <dc:date>2016-12-20T21:36:22Z</dc:date>
    </item>
  </channel>
</rss>

