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 ..
for these pulldowns i need to remove the default "All" option
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.
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"/>
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.
thanks jonuwz
This is what I feared when rakesh said he had read the docs...
i am using splunk 4.3.2 version...pls help..
Which module are you using? Which parameters are you giving it? Code, please. Also, I'm assuming you read relevant docs already...