<?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 passing 2 values through side view HTML panel in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-2-values-through-side-view-HTML-panel/m-p/21272#M466</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
as in side view redirector module&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt; &lt;/CODE&gt;&lt;OBJECT&gt;&lt;CODE&gt; something  &lt;PARAM name="arg.source" /&gt; anything&lt;/CODE&gt;&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;how can we pass variables like this with side view html panel, one value to the flashtimeline search bar, other one to the text box created in the flashtimeline&lt;BR /&gt;
Thank you&lt;BR /&gt;
Please help&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2013 07:05:04 GMT</pubDate>
    <dc:creator>smolcj</dc:creator>
    <dc:date>2013-02-06T07:05:04Z</dc:date>
    <item>
      <title>passing 2 values through side view HTML panel</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-2-values-through-side-view-HTML-panel/m-p/21272#M466</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
as in side view redirector module&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt; &lt;/CODE&gt;&lt;OBJECT&gt;&lt;CODE&gt; something  &lt;PARAM name="arg.source" /&gt; anything&lt;/CODE&gt;&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;how can we pass variables like this with side view html panel, one value to the flashtimeline search bar, other one to the text box created in the flashtimeline&lt;BR /&gt;
Thank you&lt;BR /&gt;
Please help&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2013 07:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-2-values-through-side-view-HTML-panel/m-p/21272#M466</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2013-02-06T07:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: passing 2 values through side view HTML panel</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-2-values-through-side-view-HTML-panel/m-p/21273#M467</link>
      <description>&lt;P&gt;Well flashtimeline is a Splunk view,  so the links that go to flashtimeline follow Splunk's permalink conventions, which are a little different from the conventions Sideview Utils brings. &lt;/P&gt;

&lt;P&gt;A typical Sideview page link (meaning links to pages that have a Sideview URLLoader module, downstream from which are one or more Sideview TextField, Pulldown, Checkbox, Filters modules and/or Splunk SearchBar/TimeRangePicker modules)  will look like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;?status=404&amp;amp;username=mildred&amp;amp;earliest=1357545600&amp;amp;latest=1360214239&amp;amp;autoRun=True&lt;/CODE&gt;  &lt;/P&gt;

&lt;P&gt;whereas a typical Splunk permalink, or at least a Splunk permalink to the flashtimeline view will look like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;?q=search%20status%3D404%20username%3Dmildred&amp;amp;earliest=1357545600&amp;amp;latest=1360214239&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Breaking down the difference, the flashtimeline URL structure expects one big search string as it's "q" argument, and then you can pass earliest and latest as your timerange, and that's it.   (or instead of "q" you can pass "s" as a savedsearch name, or sid as a job id, but I digress).   &lt;/P&gt;

&lt;P&gt;So you can absolutely use the Sideview Redirector module to redirect to flashtimeline,  OR the Sideview HTML module to create simple links to flashtimeline.   You just have to end up with the URL in the right form that the flashtimeline view expects. &lt;/P&gt;

&lt;P&gt;Speaking just of the use of the HTML module to make such a dynamic link -- So step 1 is to make the search, and step 2 is to url-encode the key. &lt;/P&gt;

&lt;P&gt;The Sideview ValueSetter module can help with step 2,  and the Sideview HTML module can easily dispense with part 1.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="ValueSetter"&amp;gt;
  &amp;lt;param name="name"&amp;gt;appropriatelyEncodedQuerystring&amp;lt;/param&amp;gt;
  &amp;lt;param name="value"&amp;gt;q=search $search$&amp;amp;amp;earliest=$search.timeRange.earliest$&amp;amp;amp;latest=$search.timeRange.latest$&amp;lt;/param&amp;gt;
  &amp;lt;param name="urlEncodeKeys"&amp;gt;search,search.timeRange.earliest,search.timeRange.latest&amp;lt;/param&amp;gt;
  &amp;lt;module name="HTML"&amp;gt;
    &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
      &amp;lt;a href="flashtimeline?$appropriatelyEncodedQuerystring$"&amp;gt;view search in flashtimeline&amp;lt;/a&amp;gt;
    ]]&amp;gt;&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And just for completeness, the same thing with a Redirector module (and say a Button for the user to click) would look like: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Button"&amp;gt;
  &amp;lt;param name="label"&amp;gt;view in flashtimeline&amp;lt;/param&amp;gt;
  &amp;lt;module name="ValueSetter"&amp;gt;
    &amp;lt;param name="name"&amp;gt;appropriatelyEncodedSearch&amp;lt;/param&amp;gt;
    &amp;lt;param name="value"&amp;gt;search $search$&amp;lt;/param&amp;gt;
    &amp;lt;param name="urlEncodeKeys"&amp;gt;search&amp;lt;/param&amp;gt;
    &amp;lt;module name="Redirector"&amp;gt;
      &amp;lt;param name="url"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
      &amp;lt;param name="arg.q"&amp;gt;$appropriatelyEncodedSearch$&amp;lt;/param&amp;gt;
      &amp;lt;param name="arg.earliest"&amp;gt;$search.timeRange.earliest$&amp;lt;/param&amp;gt;
      &amp;lt;param name="arg.latest"&amp;gt;$search.timeRange.latest$&amp;lt;/param&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>Thu, 07 Feb 2013 05:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-2-values-through-side-view-HTML-panel/m-p/21273#M467</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-02-07T05:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: passing 2 values through side view HTML panel</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-2-values-through-side-view-HTML-panel/m-p/21274#M468</link>
      <description>&lt;P&gt;Thanks Nick, you are simply awesome !!!!!!!!!!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2013 06:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/passing-2-values-through-side-view-HTML-panel/m-p/21274#M468</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2013-02-07T06:46:57Z</dc:date>
    </item>
  </channel>
</rss>

