<?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: SplunkJS: How to hide a column in a TableView but still have the hidden field values available in drilldown tokens. in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/SplunkJS-How-to-hide-a-column-in-a-TableView-but-still-have-the/m-p/147751#M2037</link>
    <description>&lt;P&gt;In the end the answer ended up being right in the most obvious place - you specify the fields you want to be visible in "fields" param on TableView.   When I had first read this property I assumed that not specifying a field in this param meant those values wouldn't be present in the drilldown context.    However that's not the case.   &lt;/P&gt;

&lt;P&gt;I do wish there was a second optional property,  "hiddenFields", mutually exclusive with "fields", so I could have it render all fields EXCEPT certain fields I tell it about, but that's me wishing for things. &lt;/P&gt;

&lt;P&gt;Along the way I had many happy adventures trying to do this using very complex mechanisms.  I tried my hand at writing a custom CellRenderer class, and when that was more trouble than it was worth I was able to hook into the underlying bootstrap "rendered" event to go hide the relevant columns and cells on every render, basically with: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;table.listenTo(table.table, 'rendered', function(){ console.log("evil things go here"); }, table);
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But compared to the fields property, those were pretty bad ideas!!   I mention them only so that other similarly lost souls are able to find this page in the future. &lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2015 19:01:25 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2015-06-10T19:01:25Z</dc:date>
    <item>
      <title>SplunkJS: How to hide a column in a TableView but still have the hidden field values available in drilldown tokens.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/SplunkJS-How-to-hide-a-column-in-a-TableView-but-still-have-the/m-p/147750#M2036</link>
      <description>&lt;P&gt;I have several fields that are ID fields, for which both the names and the values are quite long.  I need these id fields to all be present because they are crucial for table drilldown interaction, but I want to keep them from rendering in the table, taking up space and distracting the user. &lt;/P&gt;

&lt;P&gt;Looking in the docs, examples, tutorials, example apps etc, I haven't been able to find anything that talked about this. &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 19:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/SplunkJS-How-to-hide-a-column-in-a-TableView-but-still-have-the/m-p/147750#M2036</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2015-06-10T19:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: SplunkJS: How to hide a column in a TableView but still have the hidden field values available in drilldown tokens.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/SplunkJS-How-to-hide-a-column-in-a-TableView-but-still-have-the/m-p/147751#M2037</link>
      <description>&lt;P&gt;In the end the answer ended up being right in the most obvious place - you specify the fields you want to be visible in "fields" param on TableView.   When I had first read this property I assumed that not specifying a field in this param meant those values wouldn't be present in the drilldown context.    However that's not the case.   &lt;/P&gt;

&lt;P&gt;I do wish there was a second optional property,  "hiddenFields", mutually exclusive with "fields", so I could have it render all fields EXCEPT certain fields I tell it about, but that's me wishing for things. &lt;/P&gt;

&lt;P&gt;Along the way I had many happy adventures trying to do this using very complex mechanisms.  I tried my hand at writing a custom CellRenderer class, and when that was more trouble than it was worth I was able to hook into the underlying bootstrap "rendered" event to go hide the relevant columns and cells on every render, basically with: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;table.listenTo(table.table, 'rendered', function(){ console.log("evil things go here"); }, table);
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But compared to the fields property, those were pretty bad ideas!!   I mention them only so that other similarly lost souls are able to find this page in the future. &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 19:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/SplunkJS-How-to-hide-a-column-in-a-TableView-but-still-have-the/m-p/147751#M2037</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2015-06-10T19:01:25Z</dc:date>
    </item>
  </channel>
</rss>

