<?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 convert dynamic drop-down to static in advanced xml in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/convert-dynamic-drop-down-to-static-in-advanced-xml/m-p/85446#M4640</link>
    <description>&lt;P&gt;In an effort to answer my own question &lt;BR /&gt;
(posted here: &lt;A href="http://splunk-base.splunk.com/answers/51394/convert-dynamic-drop-down-to-static" target="_blank"&gt;http://splunk-base.splunk.com/answers/51394/convert-dynamic-drop-down-to-static&lt;/A&gt;)&lt;BR /&gt;
I converted my simple form to advanced xml then attempted to replace code for the SearchSelectLister module with code for the StaticSelect module.&lt;BR /&gt;
I replaced THIS CODE:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;module name="SearchSelectLister" layoutPanel="viewHeader" autoRun="True"&amp;gt;
&amp;lt;param name="staticFieldsToDisplay"&amp;gt;
  &amp;lt;list&amp;gt;
    &amp;lt;param name="value"&amp;gt;*&amp;lt;/param&amp;gt;
    &amp;lt;param name="label"&amp;gt;ALL&amp;lt;/param&amp;gt;
  &amp;lt;/list&amp;gt;
&amp;lt;/param&amp;gt;
&amp;lt;param name="search"&amp;gt;index=winradius_ow | stats count by nps_storeNumber&amp;lt;/param&amp;gt;
&amp;lt;param name="selected"&amp;gt;*&amp;lt;/param&amp;gt;
&amp;lt;param name="label"&amp;gt;Select a location&amp;lt;/param&amp;gt;
&amp;lt;param name="settingToCreate"&amp;gt;nps_storeNumber_setting&amp;lt;/param&amp;gt;
&amp;lt;param name="searchFieldsToDisplay"&amp;gt;
  &amp;lt;list&amp;gt;
    &amp;lt;param name="value"&amp;gt;nps_storeNumber&amp;lt;/param&amp;gt;
    &amp;lt;param name="label"&amp;gt;nps_storeNumber&amp;lt;/param&amp;gt;
  &amp;lt;/list&amp;gt;
&amp;lt;/param&amp;gt;
&amp;lt;param name="searchWhenChanged"&amp;gt;False&amp;lt;/param&amp;gt;
&amp;lt;module name="ConvertToIntention"&amp;gt;
  &amp;lt;param name="settingToConvert"&amp;gt;nps_storeNumber_setting&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;WITH THIS CODE:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;module name="StaticSelect"&amp;gt;
&amp;lt;param name="settingToCreate"&amp;gt;nps_storeNumber_setting&amp;lt;/param&amp;gt;
&amp;lt;param name="label"&amp;gt;Select a location&amp;lt;/param&amp;gt;
&amp;lt;param name="staticFieldsToDisplay"&amp;gt;
       &amp;lt;list&amp;gt;
            &amp;lt;param name="value"&amp;gt;GMD&amp;lt;/param&amp;gt;
            &amp;lt;param name="label"&amp;gt;PickGMD&amp;lt;/param&amp;gt;
       &amp;lt;/list&amp;gt;
&amp;lt;/param&amp;gt;
&amp;lt;param name="searchWhenChanged"&amp;gt;False&amp;lt;/param&amp;gt;


&amp;lt;module name="ConvertToIntention"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help deciphering the resulting error message would be appreciated:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Exception: Splunk cannot load the specified view because a layoutPanel is not defined for module StaticSelect_0_0_0.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:00:04 GMT</pubDate>
    <dc:creator>mikefoti</dc:creator>
    <dc:date>2020-09-28T12:00:04Z</dc:date>
    <item>
      <title>convert dynamic drop-down to static in advanced xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/convert-dynamic-drop-down-to-static-in-advanced-xml/m-p/85446#M4640</link>
      <description>&lt;P&gt;In an effort to answer my own question &lt;BR /&gt;
(posted here: &lt;A href="http://splunk-base.splunk.com/answers/51394/convert-dynamic-drop-down-to-static" target="_blank"&gt;http://splunk-base.splunk.com/answers/51394/convert-dynamic-drop-down-to-static&lt;/A&gt;)&lt;BR /&gt;
I converted my simple form to advanced xml then attempted to replace code for the SearchSelectLister module with code for the StaticSelect module.&lt;BR /&gt;
I replaced THIS CODE:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;module name="SearchSelectLister" layoutPanel="viewHeader" autoRun="True"&amp;gt;
&amp;lt;param name="staticFieldsToDisplay"&amp;gt;
  &amp;lt;list&amp;gt;
    &amp;lt;param name="value"&amp;gt;*&amp;lt;/param&amp;gt;
    &amp;lt;param name="label"&amp;gt;ALL&amp;lt;/param&amp;gt;
  &amp;lt;/list&amp;gt;
&amp;lt;/param&amp;gt;
&amp;lt;param name="search"&amp;gt;index=winradius_ow | stats count by nps_storeNumber&amp;lt;/param&amp;gt;
&amp;lt;param name="selected"&amp;gt;*&amp;lt;/param&amp;gt;
&amp;lt;param name="label"&amp;gt;Select a location&amp;lt;/param&amp;gt;
&amp;lt;param name="settingToCreate"&amp;gt;nps_storeNumber_setting&amp;lt;/param&amp;gt;
&amp;lt;param name="searchFieldsToDisplay"&amp;gt;
  &amp;lt;list&amp;gt;
    &amp;lt;param name="value"&amp;gt;nps_storeNumber&amp;lt;/param&amp;gt;
    &amp;lt;param name="label"&amp;gt;nps_storeNumber&amp;lt;/param&amp;gt;
  &amp;lt;/list&amp;gt;
&amp;lt;/param&amp;gt;
&amp;lt;param name="searchWhenChanged"&amp;gt;False&amp;lt;/param&amp;gt;
&amp;lt;module name="ConvertToIntention"&amp;gt;
  &amp;lt;param name="settingToConvert"&amp;gt;nps_storeNumber_setting&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;WITH THIS CODE:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;module name="StaticSelect"&amp;gt;
&amp;lt;param name="settingToCreate"&amp;gt;nps_storeNumber_setting&amp;lt;/param&amp;gt;
&amp;lt;param name="label"&amp;gt;Select a location&amp;lt;/param&amp;gt;
&amp;lt;param name="staticFieldsToDisplay"&amp;gt;
       &amp;lt;list&amp;gt;
            &amp;lt;param name="value"&amp;gt;GMD&amp;lt;/param&amp;gt;
            &amp;lt;param name="label"&amp;gt;PickGMD&amp;lt;/param&amp;gt;
       &amp;lt;/list&amp;gt;
&amp;lt;/param&amp;gt;
&amp;lt;param name="searchWhenChanged"&amp;gt;False&amp;lt;/param&amp;gt;


&amp;lt;module name="ConvertToIntention"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help deciphering the resulting error message would be appreciated:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Exception: Splunk cannot load the specified view because a layoutPanel is not defined for module StaticSelect_0_0_0.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:00:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/convert-dynamic-drop-down-to-static-in-advanced-xml/m-p/85446#M4640</guid>
      <dc:creator>mikefoti</dc:creator>
      <dc:date>2020-09-28T12:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: convert dynamic drop-down to static in advanced xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/convert-dynamic-drop-down-to-static-in-advanced-xml/m-p/85447#M4641</link>
      <description>&lt;P&gt;The error message really says what the problem is: you're putting a SearchSelectLister in your view, but Splunk has no idea about where to put it unless you say where you want it. I don't know enough about the details of your view so I don't know where you want the lister, but the code that you replaced had the lister defined with &lt;CODE&gt;layoutPanel="viewHeader"&lt;/CODE&gt; so you likely want the same in the new code. So:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="StaticSelect" layoutPanel="viewHeader"&amp;gt;
...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jun 2012 20:26:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/convert-dynamic-drop-down-to-static-in-advanced-xml/m-p/85447#M4641</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-27T20:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: convert dynamic drop-down to static in advanced xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/convert-dynamic-drop-down-to-static-in-advanced-xml/m-p/85448#M4642</link>
      <description>&lt;P&gt;Wow, you made that look easy! Thanks for your help... works perfectly now.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2012 11:12:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/convert-dynamic-drop-down-to-static-in-advanced-xml/m-p/85448#M4642</guid>
      <dc:creator>mikefoti</dc:creator>
      <dc:date>2012-06-28T11:12:02Z</dc:date>
    </item>
  </channel>
</rss>

