All Apps and Add-ons

how can i remove the default "All" option ??

rakesh_498115
Motivator

Hi..

I have a automatic pulldown control whose values are populated from a search query..in this i am getting a default value as "All" , i dont want to give to many options for the users...how can i remove this default "All" option .. please help..??

here is the code for reference ..

yeah Ayn..i have seen the docs but couldnt find ..here is the code ..







*
False
2


|inputlookup report.csv | dedup gateway | sort gateway

left


gateway
gateway


gateway
gateway="$value$"
gateway

|inputlookup report.csv | search $gateway$ | dedup report_name | sort report_name



report_name
report_name


report_name
report_name="$value$"
report_name

|inputlookup report.csv | search $gateway$ $report_name$

results

results
False




search exected is







for these pulldowns i need to remove the default "All" option

sideview
SplunkTrust
SplunkTrust

If you're using a relatively recent Sideview Utils you want to use the "staticOptions" param. the default behavior if there is no such param, is to have a single "All" option whose value is "*". However you can configure the Pulldown with

<param name="staticOptions"></param>

to remove the All, and you can also easily replace it with one or more different static options.

Note that if you're using an old version of Sideview Utils (1.X), you will have to use the older "staticValuesToDisplay" param. Newer users can use either because the newer Pulldown is of course backwards compatible to use older params.

Most of all though, as you have a reasonably current version of Sideview Utils, there is a whole documentation page precisely about this topic. Navigate in the Sideview Utils menus to

"Module Documentation > The Pulldown Module > Configuring the 'all' options"

Note that while there is a lot of information at the http://yourhost:8000/en-US/modules URL, that's more reference documentation and the vast majority of the Sideview Utils documentation is in the app itself.

jonuwz
Influencer

The 1st thing you should do is read the module documentation. Always do this. it will save you a lot of time.

Connect to your splunk server, and go to https://whatever:8000/**modules**

Now read the doc for Pulldown.

You'll find this :

staticFieldsToDisplay

if left blank, the module will use an IMPLICIT default of "All" as the label and "*" as the value. By implicit I mean that the default is NOT reflected in the conf file but is wired into the code. Long story.

What does this mean ?

If you define staticFieldsToDisplay, All will not be displayed.

Simple.

So just add this :

<param name="staticFieldsToDisplay"/>
0 Karma

sideview
SplunkTrust
SplunkTrust

Note that there better docs on this topic in "Module Documentation > The Pulldown Module > Configuring the 'all' options", and also that as of Utils 2.0 you have the option of using the slightly shorter param name "staticOptions" instead of the clunkier one "staticFieldsToDisplay". the old param name remains backwards compatible though.

0 Karma

rakesh_498115
Motivator

thanks jonuwz

0 Karma

Ayn
Legend

This is what I feared when rakesh said he had read the docs...

0 Karma

rakesh_498115
Motivator

i am using splunk 4.3.2 version...pls help..

0 Karma

Ayn
Legend

Which module are you using? Which parameters are you giving it? Code, please. Also, I'm assuming you read relevant docs already...

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...