<?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: Passing a variable from search query to title in simple xml in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Passing-a-variable-from-search-query-to-title-in-simple-xml/m-p/199642#M39508</link>
    <description>&lt;P&gt;Hi Priya312&lt;/P&gt;

&lt;P&gt;Did you ever solve this? I want to do something similar, though I have my titles in  tags on my panels and want to display the latest value as part of the header to bar charts.&lt;/P&gt;

&lt;P&gt;All the best&lt;BR /&gt;
Bill&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2016 22:25:36 GMT</pubDate>
    <dc:creator>billself</dc:creator>
    <dc:date>2016-12-07T22:25:36Z</dc:date>
    <item>
      <title>Passing a variable from search query to title in simple xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Passing-a-variable-from-search-query-to-title-in-simple-xml/m-p/199641#M39507</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have created a dashboard in simple xml. The alerts for every day is recorded in a lookup is shown in the dashboard. By default, the last alert will be shown in the panel.&lt;BR /&gt;
In the title of the panel, i want to add the Date from the lookup like  - "Alerts at 3-Sep-14".&lt;/P&gt;

&lt;P&gt;Is it possible to pass the variable from the lookup to the panel title?&lt;/P&gt;

&lt;P&gt;My code snippet:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;row&amp;gt;
   &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt; 
 &amp;lt;title&amp;gt;Daily Threshold - $Day$&amp;lt;/title&amp;gt;
        &amp;lt;searchString&amp;gt;| inputlookup test.csv | search [|inputlookup test.csv | dedup Day | head 1 | table Day | return Day] | table Day,Operator,Alerts &amp;lt;/searchString&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want the Day value in the search query to be displayed as the title of the dashboard panel. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 07:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Passing-a-variable-from-search-query-to-title-in-simple-xml/m-p/199641#M39507</guid>
      <dc:creator>Priya312</dc:creator>
      <dc:date>2014-09-03T07:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a variable from search query to title in simple xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Passing-a-variable-from-search-query-to-title-in-simple-xml/m-p/199642#M39508</link>
      <description>&lt;P&gt;Hi Priya312&lt;/P&gt;

&lt;P&gt;Did you ever solve this? I want to do something similar, though I have my titles in  tags on my panels and want to display the latest value as part of the header to bar charts.&lt;/P&gt;

&lt;P&gt;All the best&lt;BR /&gt;
Bill&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 22:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Passing-a-variable-from-search-query-to-title-in-simple-xml/m-p/199642#M39508</guid>
      <dc:creator>billself</dc:creator>
      <dc:date>2016-12-07T22:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a variable from search query to title in simple xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Passing-a-variable-from-search-query-to-title-in-simple-xml/m-p/199643#M39509</link>
      <description>&lt;P&gt;Why don't you use a &lt;CODE&gt;"hidden" drop down&lt;/CODE&gt; to set a &lt;CODE&gt;token&lt;/CODE&gt; which will reflect in  &lt;CODE&gt;title&lt;/CODE&gt;. The &lt;CODE&gt;search in the dropdown&lt;/CODE&gt; should be exactly same as that in the &lt;CODE&gt;panel&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 05:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Passing-a-variable-from-search-query-to-title-in-simple-xml/m-p/199643#M39509</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-12-08T05:20:59Z</dc:date>
    </item>
  </channel>
</rss>

