<?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: How can i in Custom Decorations variable? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-i-in-Custom-Decorations-variable/m-p/225337#M13963</link>
    <description>&lt;P&gt;You can use &lt;STRONG&gt;$school$&lt;/STRONG&gt; to populate the value of choice Dropdown in you search queries.&lt;/P&gt;

&lt;P&gt;Infact Dropdown gives you access to both Name and Value provided you are storing two different values.&lt;BR /&gt;
Refer to Splunk 6.x Dashabord Examples app for details and also following documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/Buildandeditforms"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/Buildandeditforms&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2016 08:54:05 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2016-11-10T08:54:05Z</dc:date>
    <item>
      <title>How can i in Custom Decorations variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-i-in-Custom-Decorations-variable/m-p/225336#M13962</link>
      <description>&lt;P&gt;Hi Guys, I create form in my splunk and also create Custom Decorations, and create two choice box  time and shcool,  i can use time box variable in xml, but school variable i don't understand into form. How should i do  into my form? Thanks.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form stylesheet="devices.css"&amp;gt;
  &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;

  &amp;lt;fieldset submitButton="true" autoRun="true"&amp;gt;
    &amp;lt;input type="dropdown" token="school"&amp;gt;
      &amp;lt;label&amp;gt;School&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All School&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="A school"&amp;gt;A school&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="B school"&amp;gt;B school&amp;lt;/choice&amp;gt;

      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" token="time" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;time&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;

    &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;index=* splunk_server=*   | stats  count as value  | rangemap field=value  low=1- 10000 severe=0-0 default=low&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$time.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$time.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;progress&amp;gt;
      &amp;lt;set token="value2"&amp;gt;$result.value$&amp;lt;/set&amp;gt;
      &amp;lt;set token="range2"&amp;gt;$result.range$&amp;lt;/set&amp;gt;
    &amp;lt;/progress&amp;gt;
  &amp;lt;/search&amp;gt;

  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div class="small"&amp;gt; &amp;lt;/div&amp;gt;
 &amp;lt;div class="custom-result-value icon-only $range2$"&amp;gt; $school$ &amp;lt;/div&amp;gt;

            &amp;lt;/html&amp;gt;

    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Nov 2016 06:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-i-in-Custom-Decorations-variable/m-p/225336#M13962</guid>
      <dc:creator>chengyu</dc:creator>
      <dc:date>2016-11-10T06:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can i in Custom Decorations variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-i-in-Custom-Decorations-variable/m-p/225337#M13963</link>
      <description>&lt;P&gt;You can use &lt;STRONG&gt;$school$&lt;/STRONG&gt; to populate the value of choice Dropdown in you search queries.&lt;/P&gt;

&lt;P&gt;Infact Dropdown gives you access to both Name and Value provided you are storing two different values.&lt;BR /&gt;
Refer to Splunk 6.x Dashabord Examples app for details and also following documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/Buildandeditforms"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/Buildandeditforms&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 08:54:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-i-in-Custom-Decorations-variable/m-p/225337#M13963</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-10T08:54:05Z</dc:date>
    </item>
  </channel>
</rss>

