<?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 can I get a check box to set instead of toggle? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-get-a-check-box-to-set-instead-of-toggle/m-p/236366#M46649</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am having an issue with setting checked boxes as checked. It seems to be toggling instead of setting. I have included some sample code. I create a 1 item check box in a journal, set it (the box gets checked), then set it again (the box gets unchecked).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;window_journal = New Window("", &amp;lt;&amp;lt;Journal, mainPage = V List Box()    
);

EnableLimitButton = Check Box("Enable Limit Checking");
mainpage &amp;lt;&amp;lt; Append (EnableLimitButton);
EnableLimitButton &amp;lt;&amp;lt; set(1);
EnableLimitButton &amp;lt;&amp;lt; set(1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Is there a way to get this to set instead of toggle? I have tried using set("on") and set("true") but they do not work.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 22:45:08 GMT</pubDate>
    <dc:creator>Kelly</dc:creator>
    <dc:date>2019-11-25T22:45:08Z</dc:date>
    <item>
      <title>How can I get a check box to set instead of toggle?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-a-check-box-to-set-instead-of-toggle/m-p/236366#M46649</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am having an issue with setting checked boxes as checked. It seems to be toggling instead of setting. I have included some sample code. I create a 1 item check box in a journal, set it (the box gets checked), then set it again (the box gets unchecked).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;window_journal = New Window("", &amp;lt;&amp;lt;Journal, mainPage = V List Box()    
);

EnableLimitButton = Check Box("Enable Limit Checking");
mainpage &amp;lt;&amp;lt; Append (EnableLimitButton);
EnableLimitButton &amp;lt;&amp;lt; set(1);
EnableLimitButton &amp;lt;&amp;lt; set(1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Is there a way to get this to set instead of toggle? I have tried using set("on") and set("true") but they do not work.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 22:45:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-a-check-box-to-set-instead-of-toggle/m-p/236366#M46649</guid>
      <dc:creator>Kelly</dc:creator>
      <dc:date>2019-11-25T22:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a check box to set instead of toggle?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-a-check-box-to-set-instead-of-toggle/m-p/236396#M46654</link>
      <description>&lt;P&gt;If you only reference the index, and don't specify the desired setting (0/1) then the set message works like a toggle.&amp;nbsp; If you want to use an absolute reference to select the check box, you need to specify:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;EnableLimitButton &amp;lt;&amp;lt; set(1,1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the example taken from the Scripting Index, on the Set message usage in the Check Box() object&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index==&amp;gt;Check Box==&amp;gt;Set&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Example", cb = Check Box( {"One", "Two", "Three"} ) );
cb &amp;lt;&amp;lt; Set( 3, 1 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2019 23:47:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-a-check-box-to-set-instead-of-toggle/m-p/236396#M46654</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-11-25T23:47:33Z</dc:date>
    </item>
  </channel>
</rss>

