Dashboards & Visualizations

How do I use a Paginator inside a HiddenPostProcess?

Jason
Motivator

Or any type of PostProcess, for that matter? The Paginator appears to take the number of table rows from the original HiddenSavedSearch, not the search properly transformed by my HiddenPostProcess. Do I have to somehow pass it a new row count?

My apologies if it looks horrible; it's likely just an automatic translation from Simple XML.

          <module name="HiddenSearch">
            <param name="search">search... | stats count by foo bar</param>
            <!-- say this returns 3000 table lines. -->    
            <module name="HiddenPostProcess" layoutPanel="panel_row1_col1" group="Rows of Foo" autoRun="False">
              <param name="search">
                  search foo="narroweddown" | stats sum(count) by bar | head 30 
              </param>
              <!-- should only have 30 rows, not 3000! -->
              <param name="groupLabel">Tags by Device</param>
              <module name="ViewstateAdapter">
                <param name="suppressionList">
                  <item>displayRowNumbers</item>
                  <item>drilldown</item>
                  <item>count</item>
                </param>
                <module name="HiddenFieldPicker">
                  <param name="strictMode">True</param>
                  <module name="JobProgressIndicator"/>
                  <module name="Paginator">
                    <param name="entityName">results</param>
                    <param name="count">10</param>
                    <!-- How do I get this to show only 3 pages of 10, not 10+, since there are only 30 rows returned by the postprocess? -->
                    <module name="EnablePreview">
                      <param name="display">False</param>
                      <param name="enable">True</param>
                      <module name="SimpleResultsTable">
                        <param name="displayRowNumbers">true</param>
                        <param name="entityName">results</param>
                        <param name="allowTransformedFieldSelect">True</param>
                        <param name="count">10</param>
                        <module name="Gimp"/>
                      </module>
                      <module name="ViewRedirectorLink">
                        <param name="viewTarget">restricted_results_view</param>
                        <param name="popup">True</param>
                      </module>
                    </module>
                  </module>
                </module>
              </module>
            </module>
          </module>
Tags (2)
1 Solution

bbingham
Builder

The core postprocess module can not be used with a paginator. Sideview's PostProcess/pager module works around this core limitation. VMware will ship with a patch in the core paginator module that fixes this limitation and we are working with the core team to get this functionality back into our core product.

View solution in original post

bbingham
Builder

The core postprocess module can not be used with a paginator. Sideview's PostProcess/pager module works around this core limitation. VMware will ship with a patch in the core paginator module that fixes this limitation and we are working with the core team to get this functionality back into our core product.

View solution in original post

bbingham
Builder

Take a look under splunk_for_vmware's application.js. The patch is done under there.

0 Karma

Jason
Motivator

Any idea where? I see a SOLNPostProcess in SA-Utils from VMW2.0.1 but nothing related to a paginator. I'll try that post process and see if it fixes the paginator in an module.

0 Karma

bbingham
Builder

VMware 2.0

0 Karma

Jason
Motivator

VMware... 2.0? Or an update to 1.x?

0 Karma

jonuwz
Influencer

Pretty sure this is a limitation. Sideview Utils has its own modules that fix this

Take the 2021 Splunk Career Survey

Help us learn about how Splunk has
impacted your career by taking the 2021 Splunk Career Survey.

Earn $50 in Amazon cash!