<?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: Button Boxes - Steps into different .jsl in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Button-Boxes-Steps-into-different-jsl/m-p/62302#M33579</link>
    <description>&lt;P&gt;Thank you for the reply..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Question: If i use the 3rd option that would execute both subscripts and not treat it like an IF() statement?&lt;/P&gt;</description>
    <pubDate>Sun, 08 Jul 2018 14:40:19 GMT</pubDate>
    <dc:creator>Yngeinstn</dc:creator>
    <dc:date>2018-07-08T14:40:19Z</dc:date>
    <item>
      <title>Button Boxes - Steps into different .jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Button-Boxes-Steps-into-different-jsl/m-p/62299#M33576</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// First Option [Of course the doSomethingElse is accomplished by an Include(C:\doSomethingElse.jsl)
win = New Window( "DataBase",
//	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;ReturnResult, // ensures that you get the same result as with Dialog
	V List Box(
		V List Box(
			Text Box( "Database" ),
			Line Up Box(
				NCol( 1 ),
				Panel Box(" Lot Number ", LotListBox ), // pull in list of lots from database
				Panel Box( "Test Type",
					Button Box( "S_PARAMS", doSelection_SS),
					Button Box( "NF", doSelection_NF),
					Button Box( "DC_DATA", doSelection_DC),
					Button Box( "TIMING", doSelection_TIME),
					Button Box( "BITREAD", doSelection_BIT),
					Button Box( "GCA_I", doSelection_GCA),
				)
			)
		),
		
		H List Box(
			Align( Right ),
			Spacer Box(),
				Button Box( "Exit", win &amp;lt;&amp;lt; Close Window),
		)
	)
);

// What I am wanting to accomplish the doSomethingElse could include one, two or even three different tasks
win = New Window( "DataBase",
//	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;ReturnResult, // ensures that you get the same result as with Dialog
	V List Box(
		V List Box(
			Text Box( "Database" ),
			Line Up Box(
				NCol( 1 ),
				Panel Box(" Lot Number ", LotListBox ), // pull in list of lots from database
				Panel Box( "Test Type",
					Button Box( "S_PARAMS", doSelection_SS, doSomethingElse),
					Button Box( "NF", doSelection_NF,doSomethingElse),
					Button Box( "DC_DATA", doSelection_DC, doSomethingElse),
					Button Box( "TIMING", doSelection_TIME,doSomethingElse),
					Button Box( "BITREAD", doSelection_BIT),
					Button Box( "GCA_I", doSelection_GCA),
				)
			)
		),
		
		H List Box(
			Align( Right ),
			Spacer Box(),
				Button Box( "Exit", win &amp;lt;&amp;lt; Close Window),
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After looking through the community boards i found how to use botton boxes when creating windows. Unlike using Check Box() or Radio Box() that require clicking through different selection and the hitting&amp;nbsp; 'OK' to excute a varitey of If() statements. I then learned that you have to not use &amp;lt;&amp;lt; Modal in order to get the 'OK and 'Cancel' button but insteat using 'Exit' which just exits the window. I find this to be more user friendly when it comes to others executing&amp;nbsp; a wide variety of options. The button boxes then allow you to use different icons for each button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now to my problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do a multiple of .jsl (which envolves the Include() function)? Can you introduce If() statements inside these button box windows?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each doSomethingElse steps into another window with a different set of button boxes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 11:28:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Button-Boxes-Steps-into-different-jsl/m-p/62299#M33576</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2018-07-08T11:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Button Boxes - Steps into different .jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Button-Boxes-Steps-into-different-jsl/m-p/62300#M33577</link>
      <description>&lt;P&gt;ButtonBox has one script that runs when the button is pressed. I think the 3rd argument is being quietly ignored:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Button Box( "S_PARAMS", doSelection_SS, doSomethingElse)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You probably want&amp;nbsp;this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Button Box( "S_PARAMS", if( doSelection_SS, doSomethingElse) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or (semicolon, not comma)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Button Box( "S_PARAMS", doSelection_SS; doSomethingElse)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;both of which have only two&amp;nbsp;arguments, separated by a comma, for the ButtonBox function.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 12:23:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Button-Boxes-Steps-into-different-jsl/m-p/62300#M33577</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2018-07-08T12:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Button Boxes - Steps into different .jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Button-Boxes-Steps-into-different-jsl/m-p/62302#M33579</link>
      <description>&lt;P&gt;Thank you for the reply..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Question: If i use the 3rd option that would execute both subscripts and not treat it like an IF() statement?&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 14:40:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Button-Boxes-Steps-into-different-jsl/m-p/62302#M33579</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2018-07-08T14:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Button Boxes - Steps into different .jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Button-Boxes-Steps-into-different-jsl/m-p/62306#M33583</link>
      <description>&lt;P&gt;Yes. In the example, the two statements are separated by a semicolon. Each statement is an expression that is evaluated. I imagine&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;doSelection_SS&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;does something that selects some data and&lt;/P&gt;
&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;doSomethingElse&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;processes the selected data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 21:49:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Button-Boxes-Steps-into-different-jsl/m-p/62306#M33583</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2018-07-08T21:49:15Z</dc:date>
    </item>
  </channel>
</rss>

