Dashboards & Visualizations

convert dynamic drop-down to static

mikefoti
Communicator

I created a simple form with a dynamically populated drop-down. But the initial load of the form takes approx 20/30 seconds. So I converted simple xml to advanced, with the intend of replacing the dynamic drop-down with a drop-down based on a lookup (the lookup table only has 10 values).
But I have so far un unable to find an example to mimic... I only see examples of mutiple drop-downs.Can some one please provide an example... or, given the advanced xml of my dynamically populated drop-down, tell me what needs changed?

  <module name="SearchSelectLister" layoutPanel="viewHeader" autoRun="True">
<param name="staticFieldsToDisplay">
  <list>
    <param name="value">*</param>
    <param name="label">ALL</param>
  </list>
</param>
<param name="search">index=winradius_ow | stats count by nps_storeNumber</param>
<param name="selected">*</param>
<param name="label">Select a location</param>
<param name="settingToCreate">nps_storeNumber_setting</param>
<param name="searchFieldsToDisplay">
  <list>
    <param name="value">nps_storeNumber</param>
    <param name="label">nps_storeNumber</param>
  </list>
</param>
<param name="searchWhenChanged">False</param>
<module name="ConvertToIntention">
  <param name="settingToConvert">nps_storeNumber_setting</param>
  <param name="intention">
    <param name="name">stringreplace</param>
    <param name="arg">
      <param name="nps_storeNumber">
        <param name="default">*</param>
        <param name="fillOnEmpty">True</param>
        <param name="value">$target$</param>
      </param>
    </param>
  </param>
Tags (2)
0 Karma
1 Solution

mikefoti
Communicator

The answer was to replace the module SearchSelectLister with StaticSelect.
Details here: http://splunk-base.splunk.com/answers/51663/convert-dynamic-drop-down-to-static-in-advanced-xml

View solution in original post

mikefoti
Communicator

The answer was to replace the module SearchSelectLister with StaticSelect.
Details here: http://splunk-base.splunk.com/answers/51663/convert-dynamic-drop-down-to-static-in-advanced-xml

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...