<?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 Script for JMP to &amp;quot;display a text box asking for the max, min and target&amp;quot;. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Script-for-JMP-to-quot-display-a-text-box-asking-for-the-max-min/m-p/37992#M22246</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a basic script which analyses my data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I press the thumbnail linked to the script, I want it to&lt;/P&gt;&lt;P&gt;1. Ask the user to input the ranges&lt;/P&gt;&lt;P&gt;2. Create a data table which shows the max and min&lt;/P&gt;&lt;P&gt;3. Generates a graph with the min, max and the target in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far all I can do is get the script for the data table or the graph and incorporate it into shortcuts in JMP separately. I can't figure out how to get it to generate a generate a query box for the user and I can't&amp;nbsp;incorporate the graph and the data table together. Can you advise a basic tutorial set that might help with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Elaina&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2017 17:21:56 GMT</pubDate>
    <dc:creator>EFarrell</dc:creator>
    <dc:date>2017-04-11T17:21:56Z</dc:date>
    <item>
      <title>Script for JMP to "display a text box asking for the max, min and target".</title>
      <link>https://community.jmp.com/t5/Discussions/Script-for-JMP-to-quot-display-a-text-box-asking-for-the-max-min/m-p/37992#M22246</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a basic script which analyses my data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I press the thumbnail linked to the script, I want it to&lt;/P&gt;&lt;P&gt;1. Ask the user to input the ranges&lt;/P&gt;&lt;P&gt;2. Create a data table which shows the max and min&lt;/P&gt;&lt;P&gt;3. Generates a graph with the min, max and the target in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far all I can do is get the script for the data table or the graph and incorporate it into shortcuts in JMP separately. I can't figure out how to get it to generate a generate a query box for the user and I can't&amp;nbsp;incorporate the graph and the data table together. Can you advise a basic tutorial set that might help with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Elaina&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 17:21:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-for-JMP-to-quot-display-a-text-box-asking-for-the-max-min/m-p/37992#M22246</guid>
      <dc:creator>EFarrell</dc:creator>
      <dc:date>2017-04-11T17:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script for JMP to "display a text box asking for the max, min and target".</title>
      <link>https://community.jmp.com/t5/Discussions/Script-for-JMP-to-quot-display-a-text-box-asking-for-the-max-min/m-p/38091#M22306</link>
      <description>&lt;P&gt;If I have understood correctly, t&lt;SPAN&gt;he code below may get you started:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Skeleton Table
dt = New Table( "User Supplied Values",
	Add Rows( 0 ),
	New Column( "Minumum", Numeric, "Continuous", ),
	New Column( "Target", Numeric, "Continuous", ),
	New Column( "Maximum", Numeric, "Continuous", )
);
		
// Make a UI to allow the values to be entered
cols = dt &amp;lt;&amp;lt; getColumnNames( "String", Continuous );
lub1 = Lineup Box( N Col( 1 ) );
lub2 = Lineup Box( N Col( 1 ) );
For( c = 1, c &amp;lt;= N Items( cols ), c++,
	lub1 &amp;lt;&amp;lt; Append( Text Box( cols[c] ) );
	lub2 &amp;lt;&amp;lt; Append( Number Edit Box( . ) );
);
nw = New Window( "Enter Values",
	&amp;lt;&amp;lt;onClose( makeGraph ),
	Lineup Box( N Col( 2 ), lub1, lub2 ),
	Lineup Box( N Col( 2 ), Button Box( "Add", addScript ), Button Box( "Cancel", nw &amp;lt;&amp;lt; closeWindow ) )
);

// Add a new row to dt when required
addScript = Expr(
	dt &amp;lt;&amp;lt; addRows( 1 );
	lastRow = N Row( dt );
	For( c = 1, c &amp;lt;= N Items( cols ), c++,
		Column( dt, c )[lastRow] = (lub2[c] &amp;lt;&amp;lt; get);
		lub2[c] &amp;lt;&amp;lt; set( . );
		);
	);

// Make a graph
makeGraph = Expr(
	If( N Row( dt ) &amp;gt; 0, 
			Beep();
			Print("Insert code here.")	
		);
	);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 13:59:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-for-JMP-to-quot-display-a-text-box-asking-for-the-max-min/m-p/38091#M22306</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-04-13T13:59:55Z</dc:date>
    </item>
  </channel>
</rss>

