<?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: How to make a checkbox list for user input based on items in a column of a datatable? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-make-a-checkbox-list-for-user-input-based-on-items-in-a/m-p/642315#M83924</link>
    <description>&lt;P&gt;Use Summarize (or many other options) to get the unique values from column into a list and then use that to initialize your check box&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

Summarize(dt, user_options = By(:name));
nw = New Window("", &amp;lt;&amp;lt; modal, &amp;lt;&amp;lt; return result,
	V List Box(
		cb = Check Box(user_options),
		Lineup Box(N Col(2),
			Button Box("OK"),
			Button Box("Cancel")
		)
	)
);

If(nw["Button"] != 1 | N Items(nw["cb"]) != 2,
	stop();
);

show(user_options[nw["cb"]]);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Jun 2023 15:37:00 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-06-14T15:37:00Z</dc:date>
    <item>
      <title>How to make a checkbox list for user input based on items in a column of a datatable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-checkbox-list-for-user-input-based-on-items-in-a/m-p/642204#M83920</link>
      <description>&lt;P&gt;I have a data table with one of the columns having names of different tests conducted on parts. Other columns have other test related data.&lt;/P&gt;&lt;P&gt;I want to make a user interface where these test names are available as check boxes for user input to be used in the next stage of my JSL script. I would like have a warning (with stop further execution) if more than or less than two items selected via these check boxes. How to achieve this via JSL? Test names appear repeated in its column and I do not want repeats to show in the check box.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 12:32:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-checkbox-list-for-user-input-based-on-items-in-a/m-p/642204#M83920</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-14T12:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a checkbox list for user input based on items in a column of a datatable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-checkbox-list-for-user-input-based-on-items-in-a/m-p/642315#M83924</link>
      <description>&lt;P&gt;Use Summarize (or many other options) to get the unique values from column into a list and then use that to initialize your check box&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

Summarize(dt, user_options = By(:name));
nw = New Window("", &amp;lt;&amp;lt; modal, &amp;lt;&amp;lt; return result,
	V List Box(
		cb = Check Box(user_options),
		Lineup Box(N Col(2),
			Button Box("OK"),
			Button Box("Cancel")
		)
	)
);

If(nw["Button"] != 1 | N Items(nw["cb"]) != 2,
	stop();
);

show(user_options[nw["cb"]]);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:37:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-checkbox-list-for-user-input-based-on-items-in-a/m-p/642315#M83924</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-06-14T15:37:00Z</dc:date>
    </item>
  </channel>
</rss>

