<?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: Multiselect pulldown field value to redirector sideview in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108434#M7611</link>
    <description>&lt;P&gt;I need a little more detail to give a good answer.  On the target view are you trying to prepopulate another multiselect pulldown with the passed value, or do you just want to use the value from the URL in a Search?    Can you paste the Redirector XML as well from the first view?&lt;/P&gt;</description>
    <pubDate>Sun, 03 Feb 2013 05:59:06 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2013-02-03T05:59:06Z</dc:date>
    <item>
      <title>Multiselect pulldown field value to redirector sideview</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108432#M7609</link>
      <description>&lt;P&gt;I am using multiselct pulldown for selecting the VMSids with OR seprator.and I am passing it to next view.I am not sure where I am doiung wrong but the result is not coming correctly as I have tested it on search App and its working fine.May be %20 is causing problem.&lt;BR /&gt;
Here is my code:&lt;BR /&gt;
DetailedSIDview:&lt;BR /&gt;
&lt;MODULE name="Search"&gt;&lt;BR /&gt;
          &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;&amp;lt;![CDATA[&lt;BR /&gt;
       | inputlookup vmssidlist.csv |stats count by VMSID&lt;BR /&gt;
            ]]&amp;gt;&lt;BR /&gt;
          &lt;BR /&gt;
          &lt;MODULE name="Pulldown"&gt;&lt;BR /&gt;
            &lt;PARAM name="name" /&gt;VMSID&lt;BR /&gt;
            &lt;PARAM name="label" /&gt;$name$&lt;BR /&gt;
              &lt;PARAM name="size" /&gt;30&lt;BR /&gt;
              &lt;PARAM name="template" /&gt;$value$&lt;BR /&gt;
             &lt;PARAM name="separator" /&gt;+OR+&lt;BR /&gt;
              &lt;PARAM name="outerTemplate" /&gt; $value$ &lt;BR /&gt;
              &lt;PARAM name="float" /&gt;left&lt;BR /&gt;
              &lt;PARAM name="valueField" /&gt;$name$&lt;BR /&gt;
                &lt;PARAM name="postProcess" /&gt;dedup $name$ | sort $name$&lt;BR /&gt;
                &lt;PARAM name="staticOptions" /&gt;&lt;BR /&gt;
               &lt;MODULE name="HTML"&gt;&lt;BR /&gt;
        &lt;PARAM name="html" /&gt;&amp;lt;![CDATA[&lt;BR /&gt;
          &lt;A -href="AddSID?VMSID=$VMSID$"&gt;&lt;BR /&gt;
          &lt;BUTTON style="background-color:#C02020;"&gt;Add VMSID&lt;/BUTTON&gt;&lt;/A&gt;&lt;BR /&gt;
          ]]&amp;gt;&lt;BR /&gt;
        &lt;BR /&gt;
      &lt;/MODULE&gt;   &lt;/MODULE&gt;&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;In ADDSid View&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="Search"&gt;&lt;BR /&gt;
          &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;&amp;lt;![CDATA[&lt;BR /&gt;
          |inputlookup vmssidlist.csv |search $VMSID$|table VMSID&lt;BR /&gt;
            ]]&amp;gt;&lt;BR /&gt;
          &lt;BR /&gt;
       &lt;MODULE name="Table"&gt;&lt;BR /&gt;
       &lt;/MODULE&gt;&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;URL the values are passing like:&lt;BR /&gt;
vmsstb/AddSID?VMSID=000-00426-36321-028%20OR%20000-00426-36413-062%20OR%20000-00426-37896-246&lt;/P&gt;

&lt;P&gt;I am believing that it will expand like VMSID=000-00426-36321-028 OR 000-00426-36413-062 OR 000-00426-37896-246&lt;BR /&gt;
 I am stuck Please help.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2013 00:18:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108432#M7609</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2013-02-03T00:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiselect pulldown field value to redirector sideview</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108433#M7610</link>
      <description>&lt;P&gt;I am passing the ADDSid?VMSID=$VMSID$  in anchor link tag on button click the page is showing this as link. I am just searching the passing vmsids in cab and displaying them for testing.after that only I can proceed with processing logic.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2013 00:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108433#M7610</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2013-02-03T00:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiselect pulldown field value to redirector sideview</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108434#M7611</link>
      <description>&lt;P&gt;I need a little more detail to give a good answer.  On the target view are you trying to prepopulate another multiselect pulldown with the passed value, or do you just want to use the value from the URL in a Search?    Can you paste the Redirector XML as well from the first view?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2013 05:59:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108434#M7611</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-02-03T05:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Multiselect pulldown field value to redirector sideview</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108435#M7612</link>
      <description>&lt;P&gt;1.actually I am not using Redirector module on first page. I am just redirecting to the URL on a HTML button click. As &lt;MODULE name="HTML"&gt;&lt;BR /&gt;
        &lt;OBJECT&gt;&lt;PARAM name="html" /&gt;&amp;lt;![CDATA[&lt;BR /&gt;
          &amp;lt; href="AddSID?VMSID=$VMSID$"&amp;gt;&lt;BR /&gt;
          &lt;BUTTON style="background-color:#C02020; height: 23px; width: 140px; font: 12px Arial; color:#FFFFFF;-moz-border-radius: 4px;&amp;lt;br&amp;gt;
          -webkit-border-radius: 4px;&amp;lt;br&amp;gt;
          border-radius: 4px;_background-image: none; border-color:##C02020;"&gt;Add VMSID&lt;/BUTTON&gt;&lt;BR /&gt;
          ]]&amp;gt;&lt;BR /&gt;
        &lt;BR /&gt;
      &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;BR /&gt;&lt;BR /&gt;
    I have not type a with href just to display it as a code. Can we replace this with Redirector module?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2. On the next page I just need to search those VMSID from one lookup table and output it to another lookup table and display it in the table as these new VMSIDs has been added to new table.like 
|inputlookup vmssidlist.csv|search VMSID=$VMSID$|outputlookp vmsadd.csv|table VMSID
Thanks,
Disha
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 03 Feb 2013 06:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108435#M7612</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2013-02-03T06:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiselect pulldown field value to redirector sideview</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108436#M7613</link>
      <description>&lt;P&gt;Well the standard way to get a Button that redirects the user to another view would be to just use Button and Redirector like so: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Button"&amp;gt;
  &amp;lt;param name="Add VMSID&amp;lt;/param&amp;gt;
  &amp;lt;module name="Redirector"&amp;gt;
    &amp;lt;param name="url"&amp;gt;AddSID&amp;lt;/param&amp;gt;
    &amp;lt;param name="arg.VMSID"&amp;gt;$VMSID.rawValue$&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The linking docs show some examples of this.  Is there a reason this didn't work for you? &lt;/P&gt;

&lt;P&gt;Breaking it down, one thing you're doing that you want to think about,  is whether to use the straight $VMSID$ key, or $VMSID.rawValue$.  As the linking docs talk about,   the former is to be used when you want to use the value directly into the search language, and the latter is what you need if/when the value is going to be used to prepopulate another multiselect Pulldown in the target view. &lt;/P&gt;

&lt;P&gt;Secondly, you had &lt;CODE&gt;&amp;lt;param name="template"&amp;gt;$value$&amp;lt;/param&amp;gt;&lt;/CODE&gt;   as your template param.  But this means that the individual terms will not be wrapped in "VMSID=".    ie $VMSID$ will evaluate to &lt;CODE&gt;000-00426-36321-028 OR 000-00426-36413-062 OR 000-00426-37896-246&lt;/CODE&gt;,  with no &lt;CODE&gt;VMSID=&lt;/CODE&gt; parts. &lt;/P&gt;

&lt;P&gt;Instead I think you want to do  &lt;CODE&gt;&amp;lt;param name="template"&amp;gt;$name$="$value$"&amp;lt;/param&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Note that if you do follow this instruction,  then in your target page, you'll want to also &lt;EM&gt;remove&lt;/EM&gt; the VMSID= part from your hardcoded search,  ie you'll just have &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|inputlookup vmssidlist.csv|search $VMSID$|outputlookp vmsadd.csv|table VMSID&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;because the $VMSID$ key already will now come with its own prefixes and everything. &lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2013 18:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108436#M7613</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-02-03T18:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiselect pulldown field value to redirector sideview</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108437#M7614</link>
      <description>&lt;P&gt;Thankyou. only Thing I have changed is in redirector module  I am passing&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="arg.VMSID" /&gt;$VMSID$&lt;BR /&gt;
because &lt;PARAM name="arg.VMSID" /&gt;$VMSID.rawValue$ is passing value like &lt;BR /&gt;
VMSID=000-00426-36259-016&amp;amp;VMSID=000-00426-39553-117&amp;amp;VMSID=000-00606-91773-025 and "OR" getting omitted and result were not correct. $VMSID$ is producing correct results. Thanks again.&lt;/OBJECT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 19:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108437#M7614</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2013-02-04T19:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiselect pulldown field value to redirector sideview</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108438#M7615</link>
      <description>&lt;P&gt;Cool.  Well which to use depends on what you're trying to do.  Since you want to have the search language version in the URL you want the $VMSID$, including the templating and the separator.   If instead you wanted to prepopulate a different multiselect Pulldown in the second view you would use $VMSID.rawValue$.     Happy to help.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 19:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiselect-pulldown-field-value-to-redirector-sideview/m-p/108438#M7615</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-02-04T19:40:26Z</dc:date>
    </item>
  </channel>
</rss>

