<?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 How to pass values from a multiselect dropdown through a Redirector module and prepopulate a dropdown on 2nd page in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-pass-values-from-a-multiselect-dropdown-through-a/m-p/68305#M4201</link>
    <description>&lt;P&gt;With the following code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Redirector"&amp;gt;                                                                                                    &amp;lt;param name="url"&amp;gt;VG_Single_DUT_Test_Data_v1&amp;lt;/param&amp;gt;                                                                                                    &amp;lt;param name="popup"&amp;gt;True&amp;lt;/param&amp;gt;                                                                                                    &amp;lt;param name="arg.Weight_Select"&amp;gt;$Weight_Select$&amp;lt;/param&amp;gt;                                                                                                 &amp;lt;param name="windowFeatures"&amp;gt;scrollbars=yes,width=1000px,height=1000px;&amp;lt;/param&amp;gt;                                                                                                &amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Weight_Select is a variable from a multi select dropdown. Therefore, the value is 'weight="3" OR weight="2"' for example.&lt;/P&gt;

&lt;P&gt;When I pass this through to the Redirector, the other page cannot use this to prepopulate a dropdown for weights. It seems like to URL loader takes in the parameters such as "Weight_Select=2&amp;amp;Weight_Select=3" in order to prepopulate dropdowns. Is there an easy way to prepopulate my weight dropdown in my second page with the redirector?&lt;/P&gt;

&lt;P&gt;If this cannot be done, I suppose I could construct my own link.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:33:35 GMT</pubDate>
    <dc:creator>cmak</dc:creator>
    <dc:date>2020-09-28T13:33:35Z</dc:date>
    <item>
      <title>How to pass values from a multiselect dropdown through a Redirector module and prepopulate a dropdown on 2nd page</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-pass-values-from-a-multiselect-dropdown-through-a/m-p/68305#M4201</link>
      <description>&lt;P&gt;With the following code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Redirector"&amp;gt;                                                                                                    &amp;lt;param name="url"&amp;gt;VG_Single_DUT_Test_Data_v1&amp;lt;/param&amp;gt;                                                                                                    &amp;lt;param name="popup"&amp;gt;True&amp;lt;/param&amp;gt;                                                                                                    &amp;lt;param name="arg.Weight_Select"&amp;gt;$Weight_Select$&amp;lt;/param&amp;gt;                                                                                                 &amp;lt;param name="windowFeatures"&amp;gt;scrollbars=yes,width=1000px,height=1000px;&amp;lt;/param&amp;gt;                                                                                                &amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Weight_Select is a variable from a multi select dropdown. Therefore, the value is 'weight="3" OR weight="2"' for example.&lt;/P&gt;

&lt;P&gt;When I pass this through to the Redirector, the other page cannot use this to prepopulate a dropdown for weights. It seems like to URL loader takes in the parameters such as "Weight_Select=2&amp;amp;Weight_Select=3" in order to prepopulate dropdowns. Is there an easy way to prepopulate my weight dropdown in my second page with the redirector?&lt;/P&gt;

&lt;P&gt;If this cannot be done, I suppose I could construct my own link.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:33:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-pass-values-from-a-multiselect-dropdown-through-a/m-p/68305#M4201</guid>
      <dc:creator>cmak</dc:creator>
      <dc:date>2020-09-28T13:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass values from a multiselect dropdown through a Redirector module and prepopulate a dropdown on 2nd page</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-pass-values-from-a-multiselect-dropdown-through-a/m-p/68306#M4202</link>
      <description>&lt;P&gt;For Redirector keys, all you have to do is follow the normal convention of using  $foo.rawValue$ always for links, redirects and human-readable headers,  and using the $foo$ key itself only for cases where it's being fed directly into the Splunk search language.   &lt;/P&gt;

&lt;P&gt;This will work for multiselect Pulldowns as well as single-selection Pulldowns, and indeed it will note the array-valued selection and you'll end up with values in the URL like ?Weight_Select=value1&amp;amp;Weight_Select=value2&amp;amp;Weight_Select=value4. &lt;/P&gt;

&lt;P&gt;And in the target view, when URLLoader sees that value, assuming there's a multiselect Pulldown module with a name param of "Weight_Select",   it will be able to prepopulate itself to exactly those values when the page loads. &lt;/P&gt;

&lt;P&gt;This point, about when to use $foo.rawValue$ and when to use $foo$,  is called out as being an important point on the main docs page for using Redirector and URLLoader - go to either "Key Techniques -&amp;gt; linking from view to view -&amp;gt; intro",   OR go to "Module Documentation &amp;gt; The URLLoader and Redirector modules".  Both of those links actually go to the same page.   Note the third bullet item in the "Notes" section.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-pass-values-from-a-multiselect-dropdown-through-a/m-p/68306#M4202</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T13:33:50Z</dc:date>
    </item>
  </channel>
</rss>

