<?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: Select All Checkbox in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Select-All-Checkbox/m-p/43603#M25230</link>
    <description>&lt;P&gt;You have the answer in your own code. &amp;nbsp;Take a look at the code below, and also take a look into the Scripting Index for the Check Box()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;&amp;gt;CheckBox&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "test",
	V List Box(
		othicb = Check Box( {"MOErA*", "MOErC*", "MOErT*", "MOErG*"} ),
		Spacer Box( 25 ),
		H List Box(
			othia = Check Box(
				" ",
				&amp;lt;&amp;lt;SetFunction(
					If( othia &amp;lt;&amp;lt; get( 1 ) == 1,
						othicb &amp;lt;&amp;lt; Set All( 1, run script( 1 ) ),
						othicb &amp;lt;&amp;lt; Set All( 0, run script( 1 ) )
					)
				)
			),
			Text Box( "Select All Thioated MOE", &amp;lt;&amp;lt;Set Width( 90 ), &amp;lt;&amp;lt;Set Wrap( 90 ) )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Aug 2017 16:51:23 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-08-24T16:51:23Z</dc:date>
    <item>
      <title>Select All Checkbox</title>
      <link>https://community.jmp.com/t5/Discussions/Select-All-Checkbox/m-p/43595#M25227</link>
      <description>&lt;P&gt;I made a script that contains a list of check boxes followed by a "Select All" Check box.&amp;nbsp; I set the function of the "Select All" check box to select all of the other boxes when it is checked, but now I cannot figure out how to uncheck all the other boxes when the "Select All" check box is unchecked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;V List Box&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;othicb = &lt;/FONT&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;Check Box&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;( {&lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas" size="2"&gt;"MOErA*"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas" size="2"&gt;"MOErC*"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas" size="2"&gt;"MOErT*"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas" size="2"&gt;"MOErG*"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;} ),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;Spacer Box&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas" size="2"&gt;25&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; ),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;H List Box&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(othia = &lt;/FONT&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;Check Box&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;( &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas" size="2"&gt;" "&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &amp;lt;&amp;lt;&lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas" size="2"&gt;SetFunction&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;( othicb &amp;lt;&amp;lt; &lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas" size="2"&gt;Set All&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas" size="2"&gt;1&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, run script( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas" size="2"&gt;1&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; ) ) ) ), &lt;/FONT&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;Text Box&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas" size="2"&gt;"Select All Thioated MOE"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &amp;lt;&amp;lt;&lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas" size="2"&gt;Set Width&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas" size="2"&gt;90&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;), &amp;lt;&amp;lt;&lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas" size="2"&gt;Set Wrap&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas" size="2"&gt;90&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;)))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:20:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-All-Checkbox/m-p/43595#M25227</guid>
      <dc:creator>aallman</dc:creator>
      <dc:date>2017-08-24T15:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select All Checkbox</title>
      <link>https://community.jmp.com/t5/Discussions/Select-All-Checkbox/m-p/43603#M25230</link>
      <description>&lt;P&gt;You have the answer in your own code. &amp;nbsp;Take a look at the code below, and also take a look into the Scripting Index for the Check Box()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;&amp;gt;CheckBox&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "test",
	V List Box(
		othicb = Check Box( {"MOErA*", "MOErC*", "MOErT*", "MOErG*"} ),
		Spacer Box( 25 ),
		H List Box(
			othia = Check Box(
				" ",
				&amp;lt;&amp;lt;SetFunction(
					If( othia &amp;lt;&amp;lt; get( 1 ) == 1,
						othicb &amp;lt;&amp;lt; Set All( 1, run script( 1 ) ),
						othicb &amp;lt;&amp;lt; Set All( 0, run script( 1 ) )
					)
				)
			),
			Text Box( "Select All Thioated MOE", &amp;lt;&amp;lt;Set Width( 90 ), &amp;lt;&amp;lt;Set Wrap( 90 ) )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Aug 2017 16:51:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-All-Checkbox/m-p/43603#M25230</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-08-24T16:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select All Checkbox</title>
      <link>https://community.jmp.com/t5/Discussions/Select-All-Checkbox/m-p/43604#M25231</link>
      <description>&lt;P&gt;Instead of always setting all values to 1, you will want to set the values to the value of the Select All Check Box. You can do this using the Get message. See example below for details.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "test",
	V List Box(
		othicb = Check Box( {"MOErA*", "MOErC*", "MOErT*", "MOErG*"} ),
		Spacer Box( 25 ),
		H List Box(
			othia = Check Box(
				" ",
				&amp;lt;&amp;lt;SetFunction( 
					function({this},
						othicb &amp;lt;&amp;lt; Set All( this &amp;lt;&amp;lt; Get, run script( 1 ) )
					)
				)
			),
			Text Box(
				"Select All Thioated MOE",
				&amp;lt;&amp;lt;Set Width( 90 ),
				&amp;lt;&amp;lt;Set Wrap( 90 )
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Aug 2017 16:52:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-All-Checkbox/m-p/43604#M25231</guid>
      <dc:creator>Justin_Chilton</dc:creator>
      <dc:date>2017-08-24T16:52:47Z</dc:date>
    </item>
  </channel>
</rss>

