<?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 use a value selected in a list ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-a-value-selected-in-a-list/m-p/6911#M6905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;Hi, i selected a value in a list thanks to a window, this value is keep in a variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;i would like now to select the lines in my data table which correspond to this value, how can i do ? &lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" height="1" src="https://community.jmp.com/5.0.2/images/emoticons/confused.gif" width="1"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;here my script :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;value = {"1","2","3","4"};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;New Window( "window",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Outline Box( "example",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; H List Box( Text Box( "select value" ), listvalues= list Box(value, nlines(4))),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; Button Box( "OK", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = (listvalues &amp;lt;&amp;lt; Get selected);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nw &amp;lt;&amp;lt; Close Window;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;dt &amp;lt;&amp;lt; Select Where(variable== value);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;thanks for your help !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jun 2013 13:30:45 GMT</pubDate>
    <dc:creator>antoinesofradir</dc:creator>
    <dc:date>2013-06-13T13:30:45Z</dc:date>
    <item>
      <title>How to use a value selected in a list ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-a-value-selected-in-a-list/m-p/6911#M6905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;Hi, i selected a value in a list thanks to a window, this value is keep in a variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;i would like now to select the lines in my data table which correspond to this value, how can i do ? &lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" height="1" src="https://community.jmp.com/5.0.2/images/emoticons/confused.gif" width="1"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;here my script :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;value = {"1","2","3","4"};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;New Window( "window",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Outline Box( "example",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; H List Box( Text Box( "select value" ), listvalues= list Box(value, nlines(4))),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; Button Box( "OK", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = (listvalues &amp;lt;&amp;lt; Get selected);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nw &amp;lt;&amp;lt; Close Window;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;dt &amp;lt;&amp;lt; Select Where(variable== value);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;thanks for your help !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 13:30:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-a-value-selected-in-a-list/m-p/6911#M6905</guid>
      <dc:creator>antoinesofradir</dc:creator>
      <dc:date>2013-06-13T13:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a value selected in a list ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-a-value-selected-in-a-list/m-p/6912#M6906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Value will be a List of strings. Char must be used if variable is numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If only one item is to be selected selected, this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt &lt;SPAN style="color: #160091;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; Select Where&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #2800e1;"&gt;contains&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #2800e1;"&gt;char&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;variable&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;==&lt;/SPAN&gt;value&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below works also if several items are selected:&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;dt &lt;SPAN style="color: #160091;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; Select Where&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #2800e1;"&gt;contains&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;value&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #2800e1;"&gt;char&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;variable&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 13:49:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-a-value-selected-in-a-list/m-p/6912#M6906</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2013-06-13T13:49:57Z</dc:date>
    </item>
  </channel>
</rss>

