Troubles with interactive graph boxHi all, hope you can help me with below concern. I am trying to create a graph box chart, but I want the data to be displayed taken from an interactive window, so far I only can do it by creating a table, then taking the values from the table to be presented in the graph.
See the script I created:
// Script starts here:
// I created this table "Measurements" in order to create the data with data to be displayed in the chart.
Meas = New Table( "Measurements",invisible, Add Rows( 1 ),
New Column( "AVG", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [3] ) ),
New Column( "STDEV", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [1] ) ));
// This interactive window is in order to input the values to be displayed in the chart instead of taking them from the table "measurements".
New Window( "SCRIPT REQUIREMENTS",
<<MODAL></MODAL>
Re: Troubles with interactive graph boxThanks a lot Jim, your help is highly appreciated.
I've been reading the JSL Scripting Guide, but I did not fully understand the way to use properly Throw().
I will keep reading it and practicing.
Thank you once again
Re: Troubles with interactive graph boxSee script below for the proper way to capture the cancel. I strongly suggest that you read through the JSL Scripting Guide before you go much deeper into JSL. The knowledge you gain will make your adventure easier and a lot more fun.
Help==>Books==>Scripting Guide
Names Default To Here( 1 );
// This interactive window is in order to input the values to be displayed in the chart instead of taking them from the table "measurements".
nw = New Window( "SCRIPT REQUIREMENTS",
<<MODAL></MODAL>
Re: Troubles with interactive graph boxThank you Jim, this is eactly what I want. I have an additional question:
In case user selects Cancel from the interactive window, I noticed that chart is still created, what is the correct to approach to cancel the creation of the chart if cancel is selected?
Thank you in advance.
Re: Troubles with interactive graph boxHere is one way to handle it
Names Default To Here( 1 );
// This interactive window is in order to input the values to be displayed in the chart instead of taking them from the table "measurements".
New Window( "SCRIPT REQUIREMENTS",
<<MODAL></MODAL>