Get Script after User Input and Script to StringHello Guys,
New to jmp scripting. I require assistance
I want to get the script after user specifies the valid information
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
obj = dt << Variability Chart();
// I want to get Script after User clicks OK How to do that
If i have a string and to run it as script i do this
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
theScript = "Variability Chart( Y( :NPN2 ), X( :wafer ) );";
// I run this string as script by following
ww = New Window( "dummy window", <<SCRIPT>&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/pre&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;P&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;nbsp;Thanks in advance&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/P&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/lingo-body&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;lingo-labs id="lingo-labs-729415" slang="en-US" mode="CREATE"&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;lingo-label&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;Automation and Scripting&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/lingo-label&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/lingo-labs&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;</SCRIPT>
Re: Get Script after User Input and Script to String// This will find the script for a Display Window
vcRpt = Current Report()[Outline Box( 1 )];
vcObj = vcRpt << get scriptable object
theScript = vcObj << get script;
// This will make the script a string
theScript = Char( vcObj << get script );
// this will run the script as a string
Eval( Parse( theScript ) );
// This will run the Platform, and place it into an object
obj = V List Box( Eval( Parse( theScript ) ) );
// This will display the object
New Window( "Output", obj );
Re: Get Script after User Input and Script to StringI am not aware of anyway to capture the script prior to actually running the platform. Also, JMP JSL will not pause a script as the user enters the information into the Variability Chart dialog screen.
This snippet of code shows that the line following the call for the Variability Chart is run regardless of the status of the dialog box.
variability chart();
show("code after variability chart invocation")
This is why I suggested that since the Variability Chart dialog box is limited and building your own version of it is very possible in JSL, and it will give you the control you need.