<?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: Query Regarding using parameter q from URL in the view XML(Advaned XML) in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Query-Regarding-using-parameter-q-from-URL-in-the-view-XML/m-p/86207#M5559</link>
    <description>&lt;P&gt;It's hard to answer without more specifics, but I would start by reading the documentation in the Sideview Utils app, and view the XML source of the linking examples that it has.  &lt;/P&gt;

&lt;P&gt;Very quickly, it looks sort of like the following: &lt;/P&gt;

&lt;P&gt;But first, you dont want to use the 'q' parameter at all.  Actually using the 'q' parameter, or the 's' or 'sid' parameters will activate a bunch of core Splunk UI behavior that will interfere with the correct operation of the URLLoader module. Instead you'll have simple querystring args like '?user=bob'. &lt;/P&gt;

&lt;P&gt;In view #1,  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... 
 &amp;lt;module name="SimpleResultsTable"&amp;gt;
   &amp;lt;module name="Redirector"&amp;gt;
     &amp;lt;param name="url"&amp;gt;second_view&amp;lt;/param&amp;gt;
     &amp;lt;!-- $click.fields.user$ will grab the value of the 'user' field, from the table --&amp;gt;
     &amp;lt;param name="arg.user"&amp;gt;$click.fields.user$&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;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in view 2: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="URLLoader"&amp;gt;
  &amp;lt;module name="HTML"&amp;gt;
    &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
      showing events for user=$user$
    ]]&amp;gt;&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
  &amp;lt;module name="Search"&amp;gt;
     &amp;lt;param name="search"&amp;gt;sourcetype=something user=$user$ | (more search language...)&amp;lt;/param&amp;gt;
     &amp;lt;module name="EventsViewer"&amp;gt;&amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you want view #2 to have a TextField or a Pulldown module to prepopulate the value of $user$, you just stitch in a TextField or a Pulldown module, give it &lt;CODE&gt;&amp;lt;param name="name"&amp;gt;user&amp;lt;/param&amp;gt;&lt;/CODE&gt;,  and nest it inside the URLLoader, and nest the other stuff like Search and SimpleResultsTable, inside it. &lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2011 06:57:38 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2011-05-27T06:57:38Z</dc:date>
    <item>
      <title>Query Regarding using parameter q from URL in the view XML(Advaned XML)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Query-Regarding-using-parameter-q-from-URL-in-the-view-XML/m-p/86205#M5557</link>
      <description>&lt;P&gt;I am developing a small application. I have the following situation:&lt;BR /&gt;
 My first view shows a data for all the Users.&lt;BR /&gt;
After clicking on that view it is redirected to separate view.&lt;BR /&gt;
On this second view I want to show the data for the single User which &lt;BR /&gt;
was clicked in First Graph.&lt;BR /&gt;
I want use value of user which was clicked, from parameter q of URL, &lt;BR /&gt;
in my drill down view.&lt;BR /&gt;
I have searched it on Splunk answers.&lt;BR /&gt;
The solution provided was, Sideview Utils modules.&lt;BR /&gt;
How to use Sideview utils for this?&lt;BR /&gt;
Can anybody help me!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2011 12:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Query-Regarding-using-parameter-q-from-URL-in-the-view-XML/m-p/86205#M5557</guid>
      <dc:creator>tkadale</dc:creator>
      <dc:date>2011-04-21T12:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding using parameter q from URL in the view XML(Advaned XML)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Query-Regarding-using-parameter-q-from-URL-in-the-view-XML/m-p/86206#M5558</link>
      <description>&lt;P&gt;For above problem, will the Redirector Module of SideViewUtils  be useful?? Can anybody help me how to use it?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2011 07:08:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Query-Regarding-using-parameter-q-from-URL-in-the-view-XML/m-p/86206#M5558</guid>
      <dc:creator>tkadale</dc:creator>
      <dc:date>2011-04-25T07:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding using parameter q from URL in the view XML(Advaned XML)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Query-Regarding-using-parameter-q-from-URL-in-the-view-XML/m-p/86207#M5559</link>
      <description>&lt;P&gt;It's hard to answer without more specifics, but I would start by reading the documentation in the Sideview Utils app, and view the XML source of the linking examples that it has.  &lt;/P&gt;

&lt;P&gt;Very quickly, it looks sort of like the following: &lt;/P&gt;

&lt;P&gt;But first, you dont want to use the 'q' parameter at all.  Actually using the 'q' parameter, or the 's' or 'sid' parameters will activate a bunch of core Splunk UI behavior that will interfere with the correct operation of the URLLoader module. Instead you'll have simple querystring args like '?user=bob'. &lt;/P&gt;

&lt;P&gt;In view #1,  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... 
 &amp;lt;module name="SimpleResultsTable"&amp;gt;
   &amp;lt;module name="Redirector"&amp;gt;
     &amp;lt;param name="url"&amp;gt;second_view&amp;lt;/param&amp;gt;
     &amp;lt;!-- $click.fields.user$ will grab the value of the 'user' field, from the table --&amp;gt;
     &amp;lt;param name="arg.user"&amp;gt;$click.fields.user$&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;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in view 2: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="URLLoader"&amp;gt;
  &amp;lt;module name="HTML"&amp;gt;
    &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
      showing events for user=$user$
    ]]&amp;gt;&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
  &amp;lt;module name="Search"&amp;gt;
     &amp;lt;param name="search"&amp;gt;sourcetype=something user=$user$ | (more search language...)&amp;lt;/param&amp;gt;
     &amp;lt;module name="EventsViewer"&amp;gt;&amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you want view #2 to have a TextField or a Pulldown module to prepopulate the value of $user$, you just stitch in a TextField or a Pulldown module, give it &lt;CODE&gt;&amp;lt;param name="name"&amp;gt;user&amp;lt;/param&amp;gt;&lt;/CODE&gt;,  and nest it inside the URLLoader, and nest the other stuff like Search and SimpleResultsTable, inside it. &lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2011 06:57:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Query-Regarding-using-parameter-q-from-URL-in-the-view-XML/m-p/86207#M5559</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-05-27T06:57:38Z</dc:date>
    </item>
  </channel>
</rss>

