All Apps and Add-ons

Export Button in SearchControls Module is Active even if the search is not done executing

cmak
Contributor

I have the following sample XML

<module name="Search" layoutPanel="panel_row2_col1">
              <param name="search">my_search</param>
              <module name="HTML" layoutPanel="panel_row2_col1">
                 <param name="html"><![CDATA[<h1> Export</h1>]]></param>
              </module>
              <module name="SearchControls">
                 <param name="sections">export</param>
              </module>
           </module>

I simply have an export button that users can click to export information. If the search takes a significant amount of time, I have to wait for the search to finish before clicking export. However, the button can become active before the search is completed (if it is a long search). If it is clicked prior to the search being completed, nothing is exported. How do I make it so that the export button remains inactive until the search is completed?

0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

It's a bug. I'll fix it in the next version of Sideview Utils.

If you want an interim fix that will at least make the export button look inactive, you can add this to your CSS:

.SearchControls a.exportResults {
    opacity:0.5;
}
.SearchControls .doneState a.exportResults {
    opacity:1.0;
}

It will only affect the appearance of the button but that might be enough to get people to never click it. In the next release or two of Sideview Utils I will make the button look inactive and also be inactive until the job is complete.

Thank you for the heads up.

View solution in original post

sideview
SplunkTrust
SplunkTrust

It's a bug. I'll fix it in the next version of Sideview Utils.

If you want an interim fix that will at least make the export button look inactive, you can add this to your CSS:

.SearchControls a.exportResults {
    opacity:0.5;
}
.SearchControls .doneState a.exportResults {
    opacity:1.0;
}

It will only affect the appearance of the button but that might be enough to get people to never click it. In the next release or two of Sideview Utils I will make the button look inactive and also be inactive until the job is complete.

Thank you for the heads up.

sideview
SplunkTrust
SplunkTrust

The bug was fixed in the SearchControls module, as of Sideview Utils 2.4.5, which released today. http://sideviewapps.com/apps/sideview-utils

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Maximizing the Value of Splunk ES 8.x

Splunk Enterprise Security (ES) continues to be a leader in the Gartner Magic Quadrant, reflecting its pivotal ...