<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cascading Dropdowns issue in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Dropdowns-issue/m-p/72724#M3940</link>
    <description>&lt;P&gt;Thanks for the pointer. It works great.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2011 08:07:41 GMT</pubDate>
    <dc:creator>oscargarcia</dc:creator>
    <dc:date>2011-04-01T08:07:41Z</dc:date>
    <item>
      <title>Cascading Dropdowns issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Dropdowns-issue/m-p/72722#M3938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am having issues creating an advanced XML view with a pair of dropdowns that depend on each other. The data I am playing with is a single source that has a list of events such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;djplatform1,djmonitor1
djplatform1,djmonitor2
djplatform1,djmonitor3
djplatform1,djmonitor4
djplatform1,djmonitor5
djplatform2,djmonitor6
djplatform2,djmonitor7
djplatform2,djmonitor8
djplatform2,djmonitor9
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want the form to have one dropdown with all the different djplatforms, and when selected, the second dropdown fills with the djmonitors that belong.&lt;/P&gt;

&lt;P&gt;My code is the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view autoCancelInterval="90" isPersistable="true" isSticky="true" isVisible="true" objectMode="viewconf" onunloadCancelJobs="true" template="dashboard.html"&amp;gt;
  &amp;lt;label&amp;gt;Listers 1: intro&amp;lt;/label&amp;gt;
  &amp;lt;module name="AccountBar" layoutPanel="appHeader"/&amp;gt;
  &amp;lt;module name="AppBar" layoutPanel="navigationHeader"/&amp;gt;
  &amp;lt;module name="Message" layoutPanel="messaging"&amp;gt;
    &amp;lt;param name="filter"&amp;gt;*&amp;lt;/param&amp;gt;
    &amp;lt;param name="clearOnJobDispatch"&amp;gt;False&amp;lt;/param&amp;gt;
    &amp;lt;param name="maxSize"&amp;gt;1&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
  &amp;lt;module name="TitleBar" layoutPanel="viewHeader"&amp;gt;
    &amp;lt;param name="actionsMenuFilter"&amp;gt;dashboard&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;

  &amp;lt;module name="StaticContentSample" layoutPanel="panel_row1_col1"&amp;gt;
    &amp;lt;param name="text"&amp;gt;Alerts&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;

  &amp;lt;module name="SearchSelectLister" layoutPanel="panel_row2_col1" group="Platforms"&amp;gt;
    &amp;lt;param name="settingToCreate"&amp;gt;series_setting&amp;lt;/param&amp;gt;
    &amp;lt;param name="search"&amp;gt;* | top djplatform&amp;lt;/param&amp;gt;
    &amp;lt;param name="earliest"&amp;gt;-90d@d&amp;lt;/param&amp;gt;
    &amp;lt;param name="searchFieldsToDisplay"&amp;gt;
        &amp;lt;list&amp;gt;
            &amp;lt;param name="value"&amp;gt;djplatform&amp;lt;/param&amp;gt;
            &amp;lt;param name="label"&amp;gt;djplatform&amp;lt;/param&amp;gt;
        &amp;lt;/list&amp;gt;
    &amp;lt;/param&amp;gt;
    &amp;lt;param name="label"&amp;gt;Platform: &amp;lt;/param&amp;gt;
    &amp;lt;module name="ConvertToIntention"&amp;gt;
        &amp;lt;param name="settingToConvert"&amp;gt;platform_setting&amp;lt;/param&amp;gt;
        &amp;lt;param name="intention"&amp;gt;
            &amp;lt;param name="name"&amp;gt;stringreplace&amp;lt;/param&amp;gt;
            &amp;lt;param name="arg"&amp;gt;
                &amp;lt;param name="djplatform"&amp;gt;
                    &amp;lt;param name="fillOnEmpty"&amp;gt;True&amp;lt;/param&amp;gt;
                    &amp;lt;param name="value"&amp;gt;$target$&amp;lt;/param&amp;gt;
                &amp;lt;/param&amp;gt;
            &amp;lt;/param&amp;gt;
        &amp;lt;/param&amp;gt;

        &amp;lt;!--Set up DropDown with user list for specified host--&amp;gt;
        &amp;lt;module name="SearchSelectLister"&amp;gt;
            &amp;lt;param name="settingToCreate"&amp;gt;monitor_setting&amp;lt;/param&amp;gt;
            &amp;lt;param name="applyOuterIntentionsToInternalSearch"&amp;gt;True&amp;lt;/param&amp;gt;
            &amp;lt;param name="searchWhenChanged"&amp;gt;True&amp;lt;/param&amp;gt;
            &amp;lt;param name="search"&amp;gt;djplatform=$djplatform$ | top djmonitor limit 20&amp;lt;/param&amp;gt;
            &amp;lt;param name="earliest"&amp;gt;-90d@d&amp;lt;/param&amp;gt;
            &amp;lt;param name="searchFieldsToDisplay"&amp;gt;
                &amp;lt;list&amp;gt;
                    &amp;lt;param name="value"&amp;gt;djmonitor&amp;lt;/param&amp;gt;
                    &amp;lt;param name="label"&amp;gt;djmonitor&amp;lt;/param&amp;gt;
                &amp;lt;/list&amp;gt;
            &amp;lt;/param&amp;gt;
            &amp;lt;param name="label"&amp;gt;Monitor:&amp;lt;/param&amp;gt;
            &amp;lt;module name="ConvertToIntention"&amp;gt;
                &amp;lt;param name="settingToConvert"&amp;gt;monitor_setting&amp;lt;/param&amp;gt;
                &amp;lt;param name="intention"&amp;gt;
                    &amp;lt;param name="name"&amp;gt;stringreplace&amp;lt;/param&amp;gt;
                    &amp;lt;param name="arg"&amp;gt;
                        &amp;lt;param name="djmonitor"&amp;gt;
                            &amp;lt;param name="fillOnEmpty"&amp;gt;True&amp;lt;/param&amp;gt;
                            &amp;lt;param name="value"&amp;gt;$target$&amp;lt;/param&amp;gt;
                        &amp;lt;/param&amp;gt;
                    &amp;lt;/param&amp;gt;
                &amp;lt;/param&amp;gt;
            &amp;lt;/module&amp;gt;

            &amp;lt;module name="SubmitButton"&amp;gt;
              &amp;lt;param name="label"&amp;gt;Search&amp;lt;/param&amp;gt;
              &amp;lt;module name="ViewRedirector"&amp;gt;
                &amp;lt;param name="popup"&amp;gt;True&amp;lt;/param&amp;gt;
                &amp;lt;param name="viewTarget"&amp;gt;really_simple_viewer&amp;lt;/param&amp;gt;
              &amp;lt;/module&amp;gt;
            &amp;lt;/module&amp;gt;

       &amp;lt;/module&amp;gt; 
    &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;


&amp;lt;/view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And when I go and see the view, the first dropdown works well, but the second does not, and  I am getting these errors:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;P&gt;Error in 'search' command: Unable to
  parse the search: Comparison is
  missing a term on the right hand side.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;P&gt;This SearchLister module could not
  retrieve its results. A 500 error was
  returned with the following text
  "Internal Server Error".&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Any help would be much appreciated&lt;/P&gt;

&lt;P&gt;Oscar&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2011 07:11:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Dropdowns-issue/m-p/72722#M3938</guid>
      <dc:creator>oscargarcia</dc:creator>
      <dc:date>2011-04-01T07:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cascading Dropdowns issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Dropdowns-issue/m-p/72723#M3939</link>
      <description>&lt;P&gt;The problem is that your first pulldown creates a context key called 'series_setting',  but the ConvertToIntention is converting from a key called 'platform_setting', which doesnt exist. &lt;/P&gt;

&lt;P&gt;Particularly since you're using multiple dynamic pulldowns and a redirect to a custom view,   You may want to look at &lt;A href="http://splunkbase.splunk.com/apps/All/4.x/App/app:Sideview+Utils" rel="nofollow"&gt;sideview_utils&lt;/A&gt;, because it provides alternate modules that make things like this much easier. &lt;/P&gt;

&lt;P&gt;For instance here's the same functionality basically but it becomes a lot simpler and there are no intentions to deal with.  Also both Pulldown modules can be fed by the same search which makes it finish rendering a lot faster, and changing the first Pulldown changes the second instantaneously. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Search"&amp;gt;
  &amp;lt;param name="search"&amp;gt;* | stats count by djplatform, djmonitor&amp;lt;/param&amp;gt;

  &amp;lt;module name="Pulldown"&amp;gt;
    &amp;lt;param name="name"&amp;gt;djplatform&amp;lt;/param&amp;gt;
    &amp;lt;param name="label"&amp;gt;Platform&amp;lt;/param&amp;gt;
    &amp;lt;param name="template"&amp;gt;$name$="$value$"&amp;lt;/param&amp;gt;
    &amp;lt;param name="postProcess"&amp;gt;fields $name$ | dedup $name$ | sort $name$&amp;lt;/param&amp;gt;
    &amp;lt;param name="searchFieldsToDisplay"&amp;gt;
      &amp;lt;list&amp;gt;
        &amp;lt;param name="value"&amp;gt;$name$&amp;lt;/param&amp;gt;
      &amp;lt;/list&amp;gt;
    &amp;lt;/param&amp;gt;

    &amp;lt;module name="Pulldown"&amp;gt;
      &amp;lt;param name="name"&amp;gt;djmonitor&amp;lt;/param&amp;gt;
      &amp;lt;param name="label"&amp;gt;Monitor&amp;lt;/param&amp;gt;
      &amp;lt;param name="template"&amp;gt;$name$="$value$"&amp;lt;/param&amp;gt;
      &amp;lt;param name="postProcess"&amp;gt;fields $name$ | dedup $name$ | sort $name$&amp;lt;/param&amp;gt;
      &amp;lt;param name="searchFieldsToDisplay"&amp;gt;
        &amp;lt;list&amp;gt;
          &amp;lt;param name="value"&amp;gt;$name$&amp;lt;/param&amp;gt;
        &amp;lt;/list&amp;gt;
      &amp;lt;/param&amp;gt;

      &amp;lt;module name="Search"&amp;gt;
        &amp;lt;param name="search"&amp;gt;$djplatform$ $djmonitor$&amp;lt;/param&amp;gt;

        &amp;lt;module name="Pager"&amp;gt;
          &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;
          &amp;lt;module name="SimpleResultsTable"&amp;gt;
            &amp;lt;param name="displayRowNumbers"&amp;gt;False&amp;lt;/param&amp;gt;
            &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;
          &amp;lt;/module&amp;gt;
        &amp;lt;/module&amp;gt;
      &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;

  &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Apr 2011 07:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Dropdowns-issue/m-p/72723#M3939</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-04-01T07:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cascading Dropdowns issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Dropdowns-issue/m-p/72724#M3940</link>
      <description>&lt;P&gt;Thanks for the pointer. It works great.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2011 08:07:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cascading-Dropdowns-issue/m-p/72724#M3940</guid>
      <dc:creator>oscargarcia</dc:creator>
      <dc:date>2011-04-01T08:07:41Z</dc:date>
    </item>
  </channel>
</rss>

