<?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: SimpleResultsTable - Can it wrap a field in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Can-it-wrap-a-field/m-p/47742#M2369</link>
    <description>&lt;P&gt;Looking in &lt;CODE&gt;$SPLUNK_HOME/etc/share/splunk/search_mrsparkle/modules/results/SimpleResultsTable.css&lt;/CODE&gt;, it seems that &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.SimpleResultsTable table.simpleResultsTable {
    white-space:nowrap;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so you'll probably have to override it to &lt;CODE&gt;normal&lt;/CODE&gt; at the view level with a CSS file you include in the view XML. (Don't know if you can specify a custom one in Simple XML. If not, and you're using that, then you'll have to override it app-wide in application.css I think.) To be more specific and just do it for one table, I don't know. Sadly, there's no way to push down attributes from modules (e.g., a name or id or class or style) on a visible HTML element as far as I know. You could, I guess, use the cheap and fragile way of finding the object id in a particular view's code and then create a class that applies just to that object. Ugh. By row or column? Make friends with the CSS inspector.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Sep 2010 13:04:25 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-09-10T13:04:25Z</dc:date>
    <item>
      <title>SimpleResultsTable - Can it wrap a field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Can-it-wrap-a-field/m-p/47741#M2368</link>
      <description>&lt;P&gt;Is there a way to make SimpleResultsTable wrap a field.  (field has a very long event message in it, and i'd like to shrink the size of the module width, but not have a right/left scrollbar), rather i'd like to wrap if possible.&lt;/P&gt;

&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 12:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Can-it-wrap-a-field/m-p/47741#M2368</guid>
      <dc:creator>Michael_Wilde</dc:creator>
      <dc:date>2010-09-10T12:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: SimpleResultsTable - Can it wrap a field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Can-it-wrap-a-field/m-p/47742#M2369</link>
      <description>&lt;P&gt;Looking in &lt;CODE&gt;$SPLUNK_HOME/etc/share/splunk/search_mrsparkle/modules/results/SimpleResultsTable.css&lt;/CODE&gt;, it seems that &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.SimpleResultsTable table.simpleResultsTable {
    white-space:nowrap;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so you'll probably have to override it to &lt;CODE&gt;normal&lt;/CODE&gt; at the view level with a CSS file you include in the view XML. (Don't know if you can specify a custom one in Simple XML. If not, and you're using that, then you'll have to override it app-wide in application.css I think.) To be more specific and just do it for one table, I don't know. Sadly, there's no way to push down attributes from modules (e.g., a name or id or class or style) on a visible HTML element as far as I know. You could, I guess, use the cheap and fragile way of finding the object id in a particular view's code and then create a class that applies just to that object. Ugh. By row or column? Make friends with the CSS inspector.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 13:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Can-it-wrap-a-field/m-p/47742#M2369</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-10T13:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: SimpleResultsTable - Can it wrap a field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Can-it-wrap-a-field/m-p/47743#M2370</link>
      <description>&lt;P&gt;Depending on what data you display, a second option would be to install the &lt;A href="http://splunk-base.splunk.com/apps/36405/sideview-utils"&gt;Sideview Utils&lt;/A&gt; app, and forego the SimpleResultsTable all together -- use Sideview's HTML module instead. You won't have to mess with the CSS at that point plus you can really control the layout. For a drill down that would show a very large text string (a huge regex) I actually used the HTML module along with &lt;CODE&gt;&amp;lt;textarea&amp;gt;&lt;/CODE&gt; tags.&lt;/P&gt;

&lt;P&gt;So you could do something like this (table is optional, I just like things to line up):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="HTML"&amp;gt;
&amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
        &amp;lt;table border=0&amp;gt;
        &amp;lt;tr&amp;gt;&amp;lt;td align=right&amp;gt;Customer:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;$selectedCustomer$&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
        &amp;lt;tr&amp;gt;&amp;lt;td align=right&amp;gt;Some ID:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;$click.fields.someid$&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
        &amp;lt;tr&amp;gt;&amp;lt;td align=right valign=top&amp;gt;String:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;textarea rows="4" cols="200"&amp;gt;$results[0].string$&amp;lt;/textarea&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
        &amp;lt;tr&amp;gt;&amp;lt;td align=right valign=top&amp;gt;otherstring:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;textarea rows="2" cols="200"&amp;gt;$results[0].otherstring$&amp;lt;/textarea&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
        &amp;lt;/table&amp;gt;
        ]]&amp;gt;&amp;lt;/param&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Make sure you read up on how to use the HTML module in Sideview Utils first, and have a look at the example views included in that app.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2012 16:10:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Can-it-wrap-a-field/m-p/47743#M2370</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2012-02-10T16:10:06Z</dc:date>
    </item>
  </channel>
</rss>

