<?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 Determine Values Selected In Multiple Listbox in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Determine-Values-Selected-In-Multiple-Listbox/m-p/243038#M4809</link>
    <description>&lt;P&gt;I am currently working on developing a stored process in SAS Enterprise Guide 5.1 on Windows 7 Operating System that allows users to select multiple items from a listbox. &amp;nbsp;Once the values are selected I would like the form to chain to another stored process that will use the values that were selected in the listbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having difficulty creating a variable that contains the values selected by the user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used the following code and can get the multiple select to work, but when I print the results, only the first value selected is printed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code is written in HTML and I am wondering if there is some Javascript that I would need to add in order for the selected values to be brought together into a single variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;select size=3 id=multilistbox multiple="multiple"&amp;gt;
	&amp;lt;option value="1"&amp;gt;Option 1&amp;lt;/option&amp;gt;
    &amp;lt;option value="2"&amp;gt;Option 2&amp;lt;/option&amp;gt;
    &amp;lt;option value="3"&amp;gt;Option 3&amp;lt;/option&amp;gt;
&amp;lt;/select&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2016 19:56:32 GMT</pubDate>
    <dc:creator>chris_lampron</dc:creator>
    <dc:date>2016-01-12T19:56:32Z</dc:date>
    <item>
      <title>Determine Values Selected In Multiple Listbox</title>
      <link>https://communities.sas.com/t5/Developers/Determine-Values-Selected-In-Multiple-Listbox/m-p/243038#M4809</link>
      <description>&lt;P&gt;I am currently working on developing a stored process in SAS Enterprise Guide 5.1 on Windows 7 Operating System that allows users to select multiple items from a listbox. &amp;nbsp;Once the values are selected I would like the form to chain to another stored process that will use the values that were selected in the listbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having difficulty creating a variable that contains the values selected by the user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used the following code and can get the multiple select to work, but when I print the results, only the first value selected is printed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code is written in HTML and I am wondering if there is some Javascript that I would need to add in order for the selected values to be brought together into a single variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;select size=3 id=multilistbox multiple="multiple"&amp;gt;
	&amp;lt;option value="1"&amp;gt;Option 1&amp;lt;/option&amp;gt;
    &amp;lt;option value="2"&amp;gt;Option 2&amp;lt;/option&amp;gt;
    &amp;lt;option value="3"&amp;gt;Option 3&amp;lt;/option&amp;gt;
&amp;lt;/select&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 19:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Determine-Values-Selected-In-Multiple-Listbox/m-p/243038#M4809</guid>
      <dc:creator>chris_lampron</dc:creator>
      <dc:date>2016-01-12T19:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Determine Values Selected In Multiple Listbox</title>
      <link>https://communities.sas.com/t5/Developers/Determine-Values-Selected-In-Multiple-Listbox/m-p/245300#M4810</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a couple of things - I think you need to make sure that your HTML is a form element that you submit, that you are executing your STP via the STP Web App, and that the STP itself is configured to run on a Stored Process server rather than a Workspace Server. If that's the case, if you add &amp;amp;_debug=131 to the end of your URL, you should see the selected values being passed to sas as multiple called &amp;amp;multilistbox1,&amp;nbsp;&lt;SPAN&gt;&amp;amp;multilistbox2, etc.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;More info in the Multiple Values section of the SAS docs&amp;nbsp;&lt;A href="http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/input.html" target="_self"&gt;here&lt;/A&gt;, it explains it a lot better. It's quite straightforward.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;You will also be able to debug the parameters sent to the STP Web App via your browser's debug console, if you're familiar with that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 21:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Determine-Values-Selected-In-Multiple-Listbox/m-p/245300#M4810</guid>
      <dc:creator>boemskats</dc:creator>
      <dc:date>2016-01-21T21:10:58Z</dc:date>
    </item>
  </channel>
</rss>

