<?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: submit button based on env name/value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/submit-button-based-on-env-name-value/m-p/702920#M57635</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;If i add init getting below error&lt;BR /&gt;Still on the background without submitting "submit" button it runs the query of the env and fetch the result&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-27 at 6.45.31 PM.png" style="width: 975px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33234iC36D2FEDFF17F931/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-10-27 at 6.45.31 PM.png" alt="Screenshot 2024-10-27 at 6.45.31 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2024 01:54:28 GMT</pubDate>
    <dc:creator>nithys</dc:creator>
    <dc:date>2024-10-28T01:54:28Z</dc:date>
    <item>
      <title>submit button based on env name/value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/submit-button-based-on-env-name-value/m-p/702543#M57618</link>
      <description>&lt;P&gt;Thanks for the solution which worked&amp;nbsp;When i select the data entity and the time&amp;nbsp; and hit the submit button with below query ...But without selecting the env test or prod the query get search based on the default dropdown applies to the query if it is test&amp;nbsp; index as "np-ap" and sets&amp;nbsp;stageToken as test.&lt;BR /&gt;&lt;BR /&gt;I want&amp;nbsp; the submit button to work even for the env selection ...along with data entity and date&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;index="np-ap" AND source="--a-test"&lt;BR /&gt;&amp;lt;query&amp;gt;index=$indexToken$ AND source="-a-$stageToken$"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;form version="1.1" theme="dark"&amp;gt;
&amp;lt;label&amp;gt; stats&amp;lt;/label&amp;gt;
&amp;lt;fieldset submitButton="true"&amp;gt;
&amp;lt;input type="dropdown" token="indexToken1"&amp;gt;
&amp;lt;label&amp;gt;Environment&amp;lt;/label&amp;gt;
&amp;lt;choice value="pd-ap,prod"&amp;gt;PROD&amp;lt;/choice&amp;gt;
&amp;lt;choice value="np-ap,test"&amp;gt;TEST&amp;lt;/choice&amp;gt;
&amp;lt;change&amp;gt;
&amp;lt;eval token="stageToken"&amp;gt;mvindex(split($value$,","),1)&amp;lt;/eval&amp;gt;
&amp;lt;eval token="indexToken"&amp;gt;mvindex(split($value$,","),0)&amp;lt;/eval&amp;gt;
&amp;lt;/change&amp;gt;
&amp;lt;default&amp;gt;np-ap,test&amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="dropdown" token="entityToken"&amp;gt;
&amp;lt;label&amp;gt;Data Entity&amp;lt;/label&amp;gt;
&amp;lt;choice value="aa"&amp;gt;aa&amp;lt;/choice&amp;gt;
&amp;lt;choice value="bb"&amp;gt;bb&amp;lt;/choice&amp;gt;
&amp;lt;choice value="cc"&amp;gt;cc&amp;lt;/choice&amp;gt;
&amp;lt;choice value="dd"&amp;gt;dd&amp;lt;/choice&amp;gt;
&amp;lt;choice value="ee"&amp;gt;ee&amp;lt;/choice&amp;gt;
&amp;lt;choice value="ff"&amp;gt;ff&amp;lt;/choice&amp;gt;
&amp;lt;default&amp;gt;aa&amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="time" token="timeToken" searchWhenChanged="false"&amp;gt;
&amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
&amp;lt;default&amp;gt;
&amp;lt;earliest&amp;gt;-24h@h&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;row&amp;gt;
&amp;lt;panel&amp;gt;
&amp;lt;html id="APIStats"&amp;gt;
&amp;lt;style&amp;gt;
#user{
text-align:center;
color:#BFFF00;
}
&amp;lt;/style&amp;gt;
&amp;lt;h2 id="user"&amp;gt;API&amp;lt;/h2&amp;gt;
&amp;lt;/html&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&amp;lt;row&amp;gt;
&amp;lt;panel&amp;gt;
&amp;lt;table&amp;gt;
&amp;lt;title&amp;gt;Unique&amp;lt;/title&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;query&amp;gt;index=$indexToken$ AND source="-a-$stageToken$" 

| stats count &amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;$timeToken.earliest$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$timeToken.latest$&amp;lt;/latest&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
&amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;

&amp;lt;/row&amp;gt;

&amp;lt;/form&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 22:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/submit-button-based-on-env-name-value/m-p/702543#M57618</guid>
      <dc:creator>nithys</dc:creator>
      <dc:date>2024-10-22T22:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: submit button based on env name/value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/submit-button-based-on-env-name-value/m-p/702580#M57622</link>
      <description>&lt;P&gt;Create an init block which sets the default values for stageToken and indexToken&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;init&amp;gt;
&amp;lt;set token="stageToken"&amp;gt;test&amp;lt;/set&amp;gt;
&amp;lt;set token="indexToken"&amp;gt;ap&amp;lt;/set&amp;gt;
&amp;lt;/init&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Oct 2024 08:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/submit-button-based-on-env-name-value/m-p/702580#M57622</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-23T08:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: submit button based on env name/value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/submit-button-based-on-env-name-value/m-p/702920#M57635</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;If i add init getting below error&lt;BR /&gt;Still on the background without submitting "submit" button it runs the query of the env and fetch the result&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-27 at 6.45.31 PM.png" style="width: 975px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33234iC36D2FEDFF17F931/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-10-27 at 6.45.31 PM.png" alt="Screenshot 2024-10-27 at 6.45.31 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 01:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/submit-button-based-on-env-name-value/m-p/702920#M57635</guid>
      <dc:creator>nithys</dc:creator>
      <dc:date>2024-10-28T01:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: submit button based on env name/value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/submit-button-based-on-env-name-value/m-p/702934#M57636</link>
      <description>&lt;P&gt;Add it outside the fieldset grouping.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 16:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/submit-button-based-on-env-name-value/m-p/702934#M57636</guid>
      <dc:creator>dural_yyz</dc:creator>
      <dc:date>2024-10-28T16:40:08Z</dc:date>
    </item>
  </channel>
</rss>

