<?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: inputting data from an interactive interface in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15824#M14463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you a lot, this was precisely what I was looking for and more!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;-Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 08:10:22 GMT</pubDate>
    <dc:creator>anders_bankefor</dc:creator>
    <dc:date>2015-12-09T08:10:22Z</dc:date>
    <item>
      <title>inputting data from an interactive interface</title>
      <link>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15820#M14459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In JSL would like to create an interactive interface were a user can input values into a column. The column should be of type Continuous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the user inputs a value into a dialog box which enters the value into a column:&lt;/P&gt;&lt;P&gt;x = UpperLimit, y = LowerLimit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Age&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UpperLimit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LowerLimit&lt;/P&gt;&lt;P&gt;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Peter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions of how to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 13:19:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15820#M14459</guid>
      <dc:creator>anders_bankefor</dc:creator>
      <dc:date>2015-12-08T13:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: inputting data from an interactive interface</title>
      <link>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15821#M14460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many ways to do this, and a good UI design depends on exactly what information you want to surface to the user so they can reliably perform the input task. Do you want or need to show all the rows in the table, or just one at a time? Do you need to also show the existing values in one or more of the other columns?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 13:46:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15821#M14460</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2015-12-08T13:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: inputting data from an interactive interface</title>
      <link>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15822#M14461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian and thank you for your quick answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well im new to JSL therefore I've not got a full grasp of the syntax yet and all my attempts of writing a code that will simply store an input from a user into a variable has therefore failed. However I do know some basics in java programming and the corresponding feature I'm looking for is a scanner class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example in java:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scanner sc = new Scanner (System.in);&lt;/P&gt;&lt;P&gt;Int Upperlimit = scanner.nextInt();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In JMP I would like it to work as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can imagine all te rows for both the new columns and other columns sould be visable (maybe this will change in the future).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try (&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UpperLimit = scanner.nextInt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt = Current Data Table ();&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; New Column ("UpperLimit", Numeric, "Continuous", Values ( UpperLimit ) ); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//the same should be done with LowerLimit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;if (UpperLimit &amp;lt; LowerLimit, throw ("!Error") );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you understood my examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 23:39:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15822#M14461</guid>
      <dc:creator>anders_bankefor</dc:creator>
      <dc:date>2015-12-08T23:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: inputting data from an interactive interface</title>
      <link>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15823#M14462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anders,&lt;/P&gt;&lt;P&gt;If I am following what you want, the script below will input upper and lower limits and add them to a data table.&amp;nbsp; I have annotated the script to hopefully allow you to see what the example is doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Names Default To Here( 1 );&lt;/P&gt;&lt;P&gt;// Create the new data table and it"s columns&lt;BR /&gt;dt = New Table( "Limits" );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "UpperLimit", Numeric, Continuous );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "LowerLimit", Numeric, Continuous );&lt;/P&gt;&lt;P&gt;// Open a display window to enter the data into&lt;BR /&gt;InputWindow = New Window( "Enter Input", &lt;BR /&gt; // Add a verticle list box to structure the position of the display&lt;BR /&gt; V List Box(&lt;BR /&gt;&amp;nbsp; // Add some space&lt;BR /&gt;&amp;nbsp; Spacer Box( size( 1, 10 ) ), &lt;BR /&gt;&amp;nbsp; // Display the instruction text&lt;BR /&gt;&amp;nbsp; Text Box( " Enter in the inputs" ),&lt;BR /&gt;&amp;nbsp; Spacer Box( size( 1, 10 ) ), &lt;BR /&gt;&amp;nbsp; // The following displays need to be side by side&lt;BR /&gt;&amp;nbsp; H List Box(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; // Display text to infor the user what data to enter&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Text Box( "Enter in the Lower Limit" ),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Spacer Box( size( 10, 1 ) ), &lt;BR /&gt;&amp;nbsp;&amp;nbsp; // Use a number edit box to capture the users input and&lt;BR /&gt;&amp;nbsp;&amp;nbsp; // give the display object the name "LLimit"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LLimit = Number Edit Box( . ),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Spacer Box( size( 10, 1 ) ), &lt;BR /&gt;&amp;nbsp;&amp;nbsp; // Display text to infor the user what data to enter&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Text Box( "Enter in the Upper Limit" ),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Spacer Box( size( 10, 1 ) ), &lt;BR /&gt;&amp;nbsp;&amp;nbsp; // Use a number edit box to capture the users input and&lt;BR /&gt;&amp;nbsp;&amp;nbsp; // give the display object the name "ULimit"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ULimit = Number Edit Box( . )&lt;BR /&gt;&amp;nbsp; ),&lt;BR /&gt;&amp;nbsp; Spacer Box( size( 1, 10 ) ), &lt;BR /&gt;&amp;nbsp; // Add a couple of control buttons&lt;BR /&gt;&amp;nbsp; H List Box(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; // The first button box will add the values to the data table, if the&lt;BR /&gt;&amp;nbsp;&amp;nbsp; // values are valid&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Button Box( "Add the Values", &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( Is Missing( LLimit &amp;lt;&amp;lt; get ) == 0 &amp;amp; Is Missing( ULimit &amp;lt;&amp;lt; get ) == 0 &amp;amp; (ULimit &amp;lt;&amp;lt; get) &amp;gt; (LLimit &amp;lt;&amp;lt; get), &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // If the values are valid, add a row to the data table and set the values&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt &amp;lt;&amp;lt; add rows( 1 );&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt:LowerLimit[N Rows( dt )] = LLimit &amp;lt;&amp;lt; get;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt:UpperLimit[N Rows( dt )] = ULimit &amp;lt;&amp;lt; get;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // If the values are not valid, set them to missing and &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // display a dialog to the user&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LLimit &amp;lt;&amp;lt; set( . );&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ULimit &amp;lt;&amp;lt; set( . );&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dialog( "The values entered are invalid:" );&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Spacer Box( size( 10, 1 ) ), &lt;BR /&gt;&amp;nbsp;&amp;nbsp; // This button box closes the display window&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Button Box( "Stop Adding", InputWindow &amp;lt;&amp;lt; Close Window )&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt; )&lt;BR /&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 07:23:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15823#M14462</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2015-12-09T07:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: inputting data from an interactive interface</title>
      <link>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15824#M14463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you a lot, this was precisely what I was looking for and more!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;-Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 08:10:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15824#M14463</guid>
      <dc:creator>anders_bankefor</dc:creator>
      <dc:date>2015-12-09T08:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: inputting data from an interactive interface</title>
      <link>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15825#M14464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If row-wise editing is OK, I wanted to also mention this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #032ce4;"&gt;Names Default To Here&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #008f00;"&gt;// Create the new data table and it"s columns&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #032ce4;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;New Table&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #942193;"&gt;"Limits"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;New Column&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"Lower Limit"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Numeric&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Continuous &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;New Column&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"Upper Limit"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Numeric&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Continuous &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #011993; font-family: Courier; font-size: 12px;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #011993; font-family: Courier; font-size: 12px;"&gt;&lt;STRONG&gt;rowEditor&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993; font-family: Courier; font-size: 12px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #011993;"&gt;&lt;/P&gt;&lt;P&gt;This has the shortcoming that it doesn't enforce the USL &amp;gt; LSL requirement, but this could possibly be done by subscribing to changes to 'dt' (look for 'Subscribe' in 'Help &amp;gt; Scripting Index'). Also, be aware that you can add column properties to the columns in the table &lt;A href="http://www.jmp.com/support/help/Expression_Data.shtml"&gt;http://www.jmp.com/support/help/Expression_Data.shtml&lt;/A&gt;, which include a 'range check' on the values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 09:04:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/inputting-data-from-an-interactive-interface/m-p/15825#M14464</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2015-12-09T09:04:25Z</dc:date>
    </item>
  </channel>
</rss>

