<?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 Set a Check Box to default on? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62365#M33617</link>
    <description>&lt;P&gt;Here is an example setting your first check box to being on&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Input Required", &amp;lt;&amp;lt;Modal,
VlistBox(align("Center"),
	Text Box("Set Preferences"),
	Pref =Check Box({"Remove Single Value","Remove Duplicates","Group by Name"},1),
	spacer box(size(200,20)), 
	pref&amp;lt;&amp;lt;set(1,1);
 
 Hlistbox(2, 
	Button Box( "OK",
		RV=Pref&amp;lt;&amp;lt;get(1);
		RD=Pref&amp;lt;&amp;lt;get(2);
		GR=Pref&amp;lt;&amp;lt;get(3);

	),
	Button Box( "Cancel",
		stop();
	)
	))
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 09 Jul 2018 14:49:40 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-07-09T14:49:40Z</dc:date>
    <item>
      <title>How to Set a Check Box to default on?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62362#M33616</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building a simple interface for the user and have a window to set some options using check boxes. &amp;nbsp;I would like to have the boxes checked by default. &amp;nbsp;How is this done. &amp;nbsp;The manual mentions a depreciated dialog box that allows setting of a default and recommends using modal window instead. &amp;nbsp;There appears to be no straightforward method described in the manual to achieve same functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should it be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Input Required", &amp;lt;&amp;lt;Modal,
VlistBox(align("Center"),
	Text Box("Set Preferences"),
	Pref =Check Box({"Remove Single Value","Remove Duplicates","Group by Name"},1),
	spacer box(size(200,20)), 
 
 Hlistbox(2, 
	Button Box( "OK",
		RV=Pref&amp;lt;&amp;lt;get(1);
		RD=Pref&amp;lt;&amp;lt;get(2);
		GR=Pref&amp;lt;&amp;lt;get(3);

	),
	Button Box( "Cancel",
		stop();
	)
	))
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:44:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62362#M33616</guid>
      <dc:creator>Hegedus</dc:creator>
      <dc:date>2018-07-09T14:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set a Check Box to default on?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62365#M33617</link>
      <description>&lt;P&gt;Here is an example setting your first check box to being on&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Input Required", &amp;lt;&amp;lt;Modal,
VlistBox(align("Center"),
	Text Box("Set Preferences"),
	Pref =Check Box({"Remove Single Value","Remove Duplicates","Group by Name"},1),
	spacer box(size(200,20)), 
	pref&amp;lt;&amp;lt;set(1,1);
 
 Hlistbox(2, 
	Button Box( "OK",
		RV=Pref&amp;lt;&amp;lt;get(1);
		RD=Pref&amp;lt;&amp;lt;get(2);
		GR=Pref&amp;lt;&amp;lt;get(3);

	),
	Button Box( "Cancel",
		stop();
	)
	))
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:49:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62365#M33617</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-07-09T14:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set a Check Box to default on?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62366#M33618</link>
      <description>Thank you,.&lt;BR /&gt;&lt;BR /&gt;I would suggest you add some verbiage to the manual to explain this.</description>
      <pubDate>Mon, 09 Jul 2018 14:55:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62366#M33618</guid>
      <dc:creator>Hegedus</dc:creator>
      <dc:date>2018-07-09T14:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set a Check Box to default on?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62368#M33620</link>
      <description>&lt;P&gt;You need to add this request to the JMP Wish List.&amp;nbsp; I, like you, am just a JMP user, not an employee for JMP.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 15:00:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62368#M33620</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-07-09T15:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set a Check Box to default on?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62370#M33621</link>
      <description>&lt;P&gt;There is already a solution in the scripting guide, by the way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 561px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11428i672EBFA7A3A12881/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 15:05:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62370#M33621</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-07-09T15:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set a Check Box to default on?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62388#M33636</link>
      <description>I am using JMP 12 and I did a search of the scripting guide and your example was not found. Perhaps it only exists in the latter versions.</description>
      <pubDate>Mon, 09 Jul 2018 17:36:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62388#M33636</guid>
      <dc:creator>Hegedus</dc:creator>
      <dc:date>2018-07-09T17:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set a Check Box to default on?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62425#M33661</link>
      <description>&lt;P&gt;This version sets all of the checkboxes to checked, regardless of how many are in your list.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Input Required", &amp;lt;&amp;lt;Modal,
	V List Box(
		align( "Center" ),
		Text Box( "Set Preferences" ),
		Pref = Check Box( {"Remove Single Value", "Remove Duplicates", "Group by Name"}),
		Spacer Box( size( 200, 20 ) ),
		H List Box(
			Button Box( "OK",
				RV = Pref &amp;lt;&amp;lt; get( 1 );
				RD = Pref &amp;lt;&amp;lt; get( 2 );
				GR = Pref &amp;lt;&amp;lt; get( 3 );
			),
			Button Box( "Cancel", Stop() )
		),
	),
	pref_list = pref &amp;lt;&amp;lt; get items;
	for (i = 1, i &amp;lt;= nitems(pref_list), i++,
		pref &amp;lt;&amp;lt; set(i, 1);
	),
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jul 2018 17:43:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62425#M33661</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-07-10T17:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set a Check Box to default on?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62426#M33662</link>
      <description>&lt;P&gt;Ha! Never mind. Yes, you do need the iteration in this case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ignore: Do you need the explicit iteration at the end? Just send the message to the list and it will distribute it to each of its items.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(pref &amp;lt;&amp;lt; get items) &amp;lt;&amp;lt; set( 1 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 17:59:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62426#M33662</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-07-10T17:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set a Check Box to default on?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62427#M33663</link>
      <description>&lt;P&gt;Sorry Mark but that doesn't work.&amp;nbsp; I should have checked (ar ar ar) the scripting index.&amp;nbsp; Use &lt;STRONG&gt;set all&lt;/STRONG&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Input Required", &amp;lt;&amp;lt;Modal,
	V List Box(
		align( "Center" ),
		Text Box( "Set Preferences" ),
		Pref = Check Box( {"Remove Single Value", "Remove Duplicates", "Group by Name"}),
		Spacer Box( size( 200, 20 ) ),
		H List Box(
			Button Box( "OK",
				RV = Pref &amp;lt;&amp;lt; get( 1 );
				RD = Pref &amp;lt;&amp;lt; get( 2 );
				GR = Pref &amp;lt;&amp;lt; get( 3 );
			),
			Button Box( "Cancel", Stop() )
		),
	),
	pref &amp;lt;&amp;lt; set all(1)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jul 2018 17:58:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Set-a-Check-Box-to-default-on/m-p/62427#M33663</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-07-10T17:58:51Z</dc:date>
    </item>
  </channel>
</rss>

