<?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: JSL: make check box in loop in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-make-check-box-in-loop/m-p/4998#M4997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="laugh" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.jmp.com/5.0.2/images/emoticons/laugh.gif"&gt;&lt;/SPAN&gt;, problem soved,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;First, get list of all names: list=column_name[1:N Rows];&amp;nbsp; then make them into check box: new window("hello", var=check box(list)); &lt;/P&gt;&lt;P&gt;done :-). &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.jmp.com/5.0.2/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 10:28:47 GMT</pubDate>
    <dc:creator>yc4037</dc:creator>
    <dc:date>2012-06-05T10:28:47Z</dc:date>
    <item>
      <title>JSL: make check box in loop</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-make-check-box-in-loop/m-p/4997#M4996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I'm learning JSL recent days &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://kvoqx44227.lithium.com/5.0.2/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;, but come across many problems &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" height="1" src="https://kvoqx44227.lithium.com/5.0.2/images/emoticons/sad.gif" width="1"&gt;&lt;/SPAN&gt;, one of them is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see I have 3 names stored in a table, I want to put these names into a window with check box infront of each name:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2117_Capture1.PNG" style="width: 246px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/54i400F5E9286486671/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2117_Capture1.PNG" alt="2117_Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can make it by the script below:&lt;/P&gt;&lt;P&gt;/* script 1 */&lt;/P&gt;&lt;P&gt;x1="Name1";&lt;/P&gt;&lt;P&gt;x2="Name2";&lt;/P&gt;&lt;P&gt;x3="Name3";&lt;/P&gt;&lt;P&gt;New Window("Hi", &lt;/P&gt;&lt;P&gt;y1=Check Box(eval(x1)),&lt;/P&gt;&lt;P&gt;y2=Check Box(eval(x2)),&lt;/P&gt;&lt;P&gt;y3=Check Box(eval(x3))&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;how can I do it in loop, since it may have thousands of names in future. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 19:57:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-make-check-box-in-loop/m-p/4997#M4996</guid>
      <dc:creator>yc4037</dc:creator>
      <dc:date>2016-10-18T19:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: make check box in loop</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-make-check-box-in-loop/m-p/4998#M4997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="laugh" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.jmp.com/5.0.2/images/emoticons/laugh.gif"&gt;&lt;/SPAN&gt;, problem soved,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;First, get list of all names: list=column_name[1:N Rows];&amp;nbsp; then make them into check box: new window("hello", var=check box(list)); &lt;/P&gt;&lt;P&gt;done :-). &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.jmp.com/5.0.2/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 10:28:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-make-check-box-in-loop/m-p/4998#M4997</guid>
      <dc:creator>yc4037</dc:creator>
      <dc:date>2012-06-05T10:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: make check box in loop</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-make-check-box-in-loop/m-p/4999#M4998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there could be thousands of them, you'd probably be better putting them into a single list box - something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lblist = {"AAA", "BBB", "CCC", "DDD", "EEE"};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lb = list box(lblist, nlines(min(nItems(lblist), 30)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WriteToLog = expr(show(lb &amp;lt;&amp;lt; get selected));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;okbox = buttonbox("Do Something", WriteToLog);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nw = new window("Control", lineupbox(ncol(1), lb, okbox));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 11:04:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-make-check-box-in-loop/m-p/4999#M4998</guid>
      <dc:creator />
      <dc:date>2012-06-05T11:04:56Z</dc:date>
    </item>
  </channel>
</rss>

