<?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: Get Script after User Input and Script to String in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-Script-after-User-Input-and-Script-to-String/m-p/729432#M91189</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;But how to get script ... when variability chart selection&amp;nbsp; window opens then i want to get script after user selects "OK" button in that screen&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aadit_0-1709401383718.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61752i9E3F7AD433088523/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aadit_0-1709401383718.png" alt="Aadit_0-1709401383718.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i want to capture variability chart script after user selects OK in this screen&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
obj = dt &amp;lt;&amp;lt; Variability Chart();
// I want to get Script after User clicks OK How to do that&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Mar 2024 17:43:52 GMT</pubDate>
    <dc:creator>ComplexNerd</dc:creator>
    <dc:date>2024-03-02T17:43:52Z</dc:date>
    <item>
      <title>Get Script after User Input and Script to String</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Script-after-User-Input-and-Script-to-String/m-p/729415#M91186</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;New to jmp scripting. I require assistance&lt;/P&gt;&lt;P&gt;I want to get the script after user specifies the valid information&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
obj = dt &amp;lt;&amp;lt; Variability Chart();
// I want to get Script after User clicks OK How to do that&lt;/LI-CODE&gt;&lt;P&gt;If i have a string and to run it as script i do this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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", &amp;lt;&amp;lt;Script, theScript);
ed = ww[Script Box(1)];
ed &amp;lt;&amp;lt; Run();
ww &amp;lt;&amp;lt;CloseWindow();

// But is there a way to assign it to a obj that runs holds output of the script?
like 
obj &amp;lt;&amp;lt; that holds the "Variability Chart( Y( :NPN2 ), X( :wafer ) )" as report(which is the string content) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 13:03:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Script-after-User-Input-and-Script-to-String/m-p/729415#M91186</guid>
      <dc:creator>ComplexNerd</dc:creator>
      <dc:date>2024-03-02T13:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get Script after User Input and Script to String</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Script-after-User-Input-and-Script-to-String/m-p/729430#M91188</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// This will find the script for a Display Window
vcRpt = Current Report()[Outline Box( 1 )];
vcObj = vcRpt &amp;lt;&amp;lt; get scriptable object
theScript = vcObj &amp;lt;&amp;lt; get script;

// This will make the script a string
theScript = Char( vcObj &amp;lt;&amp;lt; 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 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Mar 2024 17:12:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Script-after-User-Input-and-Script-to-String/m-p/729430#M91188</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-03-02T17:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get Script after User Input and Script to String</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Script-after-User-Input-and-Script-to-String/m-p/729432#M91189</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;But how to get script ... when variability chart selection&amp;nbsp; window opens then i want to get script after user selects "OK" button in that screen&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aadit_0-1709401383718.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61752i9E3F7AD433088523/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aadit_0-1709401383718.png" alt="Aadit_0-1709401383718.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i want to capture variability chart script after user selects OK in this screen&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
obj = dt &amp;lt;&amp;lt; Variability Chart();
// I want to get Script after User clicks OK How to do that&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 17:43:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Script-after-User-Input-and-Script-to-String/m-p/729432#M91189</guid>
      <dc:creator>ComplexNerd</dc:creator>
      <dc:date>2024-03-02T17:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get Script after User Input and Script to String</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Script-after-User-Input-and-Script-to-String/m-p/729433#M91190</link>
      <description>&lt;P&gt;I am not aware of anyway to capture the script prior to actually running the platform.&amp;nbsp; Also, JMP JSL will not pause a script as the user enters the information into the Variability Chart dialog screen.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;variability chart();

show("code after variability chart invocation")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 18:11:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Script-after-User-Input-and-Script-to-String/m-p/729433#M91190</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-03-02T18:11:39Z</dc:date>
    </item>
  </channel>
</rss>

