<?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 display row number with sideview Table Module in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-display-row-number-with-sideview-Table-Module/m-p/91897#M6157</link>
    <description>&lt;P&gt;It's very simple to use the search language to display row numbers, so I decided not to build it into the Table module as a primary feature. &lt;/P&gt;

&lt;P&gt;If you do not already have a PostProcess module around this particular Table, then just wrap it in this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="PostProcess"&amp;gt;
  &amp;lt;param name="search"&amp;gt;streamstats count as row | fields row *&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And if you do already have a PostProcess, well just tack on &lt;CODE&gt;streamstats count as row&lt;/CODE&gt; onto the end.    Assuming you're using the more flexible $row.fields.fieldName$ keys in drilldown config,   it wont disrupt anything by there suddenly being a first column called "row".  (Of course if for some reason you're still using SimpleResultsTable &lt;EM&gt;and&lt;/EM&gt; you're still using the old &lt;CODE&gt;$click.value$&lt;/CODE&gt; syntax,  well the &lt;CODE&gt;$click.value$&lt;/CODE&gt; will now be the row number which would be bad)&lt;/P&gt;

&lt;P&gt;As to your second question,  displaying the total number of events at the top of the table is as simple as using $results.count$  in an HTML module.     Generally the whole thing will look like this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... assuming that there is a Search module upstream ... 

&amp;lt;module name="HTML"&amp;gt;
  &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
    &amp;lt;h3&amp;gt;$results.count$ results $search.timeRange.label$&amp;lt;/h3&amp;gt;
  ]]&amp;gt;&amp;lt;/param&amp;gt;
&amp;lt;/module&amp;gt;
&amp;lt;module name="JobProgressIndicator"&amp;gt;&amp;lt;/module&amp;gt;
&amp;lt;module name="Pager"&amp;gt;
  &amp;lt;module name="Table" /&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And if you would rather display preview results in the Table while the search is running then you want to replace that JobProgressIndicator with Splunk's EnablePreview module, like so: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="EnablePreview"&amp;gt;
  &amp;lt;param name="enable"&amp;gt;True&amp;lt;/param&amp;gt;
  &amp;lt;param name="display"&amp;gt;False&amp;lt;/param&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 18 Feb 2013 19:51:29 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2013-02-18T19:51:29Z</dc:date>
    <item>
      <title>How to display row number with sideview Table Module</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-display-row-number-with-sideview-Table-Module/m-p/91896#M6156</link>
      <description>&lt;P&gt;I am using sideview Table module instead of SimpleResultsTable. &lt;BR /&gt;
1.I want to display the row numbers in the table .&lt;BR /&gt;
2. I want to total number of events display at the top of the table.&lt;BR /&gt;
Please suggest.&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2013 08:47:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-display-row-number-with-sideview-Table-Module/m-p/91896#M6156</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2013-01-18T08:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to display row number with sideview Table Module</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-display-row-number-with-sideview-Table-Module/m-p/91897#M6157</link>
      <description>&lt;P&gt;It's very simple to use the search language to display row numbers, so I decided not to build it into the Table module as a primary feature. &lt;/P&gt;

&lt;P&gt;If you do not already have a PostProcess module around this particular Table, then just wrap it in this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="PostProcess"&amp;gt;
  &amp;lt;param name="search"&amp;gt;streamstats count as row | fields row *&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And if you do already have a PostProcess, well just tack on &lt;CODE&gt;streamstats count as row&lt;/CODE&gt; onto the end.    Assuming you're using the more flexible $row.fields.fieldName$ keys in drilldown config,   it wont disrupt anything by there suddenly being a first column called "row".  (Of course if for some reason you're still using SimpleResultsTable &lt;EM&gt;and&lt;/EM&gt; you're still using the old &lt;CODE&gt;$click.value$&lt;/CODE&gt; syntax,  well the &lt;CODE&gt;$click.value$&lt;/CODE&gt; will now be the row number which would be bad)&lt;/P&gt;

&lt;P&gt;As to your second question,  displaying the total number of events at the top of the table is as simple as using $results.count$  in an HTML module.     Generally the whole thing will look like this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... assuming that there is a Search module upstream ... 

&amp;lt;module name="HTML"&amp;gt;
  &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
    &amp;lt;h3&amp;gt;$results.count$ results $search.timeRange.label$&amp;lt;/h3&amp;gt;
  ]]&amp;gt;&amp;lt;/param&amp;gt;
&amp;lt;/module&amp;gt;
&amp;lt;module name="JobProgressIndicator"&amp;gt;&amp;lt;/module&amp;gt;
&amp;lt;module name="Pager"&amp;gt;
  &amp;lt;module name="Table" /&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And if you would rather display preview results in the Table while the search is running then you want to replace that JobProgressIndicator with Splunk's EnablePreview module, like so: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="EnablePreview"&amp;gt;
  &amp;lt;param name="enable"&amp;gt;True&amp;lt;/param&amp;gt;
  &amp;lt;param name="display"&amp;gt;False&amp;lt;/param&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Feb 2013 19:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-display-row-number-with-sideview-Table-Module/m-p/91897#M6157</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-02-18T19:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to display row number with sideview Table Module</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-display-row-number-with-sideview-Table-Module/m-p/91898#M6158</link>
      <description>&lt;P&gt;Thanks Nick..U rocks..!!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 20:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-display-row-number-with-sideview-Table-Module/m-p/91898#M6158</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2013-02-18T20:54:14Z</dc:date>
    </item>
  </channel>
</rss>

