<?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: Option to Treat Distribution() as Modal in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Option-to-Treat-Distribution-as-Modal/m-p/662375#M85120</link>
    <description>&lt;P&gt;Most likely using modal window like Jim suggested is the easiest option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also provide expressions to platforms which will be run after user completes the selections, but using this is usually more difficult and not necessary &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/enable-user-input-in-jmp-platforms.shtml#" target="_blank" rel="noopener"&gt;Scripting Guide &amp;gt; Scripting Platforms &amp;gt; Enable User Input in JMP Platforms&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt &amp;lt;&amp;lt; Distribution(Action(doit));

doit = Expr(
	New Window("Bivariate", Bivariate(Action(doit2)))
);

doit2 = Expr(Caption("analyses complete"));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Jul 2023 05:58:25 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-07-26T05:58:25Z</dc:date>
    <item>
      <title>Option to Treat Distribution() as Modal</title>
      <link>https://community.jmp.com/t5/Discussions/Option-to-Treat-Distribution-as-Modal/m-p/662299#M85109</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to treat the "Distribution" function as modal? I am looking to create a distribution report with an arbitrary number of Continuous Distributions that I will later modify or change via JSL. I found that a dialog opens when I run the code below, but execution is not halted and the rest of my code is run before I have a chance to select my columns of interest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also looked into using a Column Dialog, but cannot figure out how to directly code a distribution report object with an arbitrary number of Continuous Distributions. Any input on how to accomplish this is greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dist = dt &amp;lt;&amp;lt; Distribution( Stack ( 1 ), &amp;lt;&amp;lt;Modal );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vs putting something like below in a for loop...&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Distribution(
Stack( 1 ),
Continuous Distribution(
Column( As Column( arbitraryName ) ),
Horizontal Layout( 1 )
Vertical( 0 ),
),
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Connor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using JMP 16.0.0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 21:26:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Option-to-Treat-Distribution-as-Modal/m-p/662299#M85109</guid>
      <dc:creator>Connor_K</dc:creator>
      <dc:date>2023-07-25T21:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Option to Treat Distribution() as Modal</title>
      <link>https://community.jmp.com/t5/Discussions/Option-to-Treat-Distribution-as-Modal/m-p/662307#M85110</link>
      <description>&lt;P&gt;Here is one way to do this.&amp;nbsp; Just put the distribution into a modal window.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = 
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );


new window("",modal,
Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( As Column( "weight" ) ),
		Horizontal Layout( 1 ),
		Vertical( 0 ),

	)
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1690321738438.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55274i52391B8BA65D0464/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1690321738438.png" alt="txnelson_0-1690321738438.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;No code past the window execution will be run until the OK button is pressed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 21:49:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Option-to-Treat-Distribution-as-Modal/m-p/662307#M85110</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-07-25T21:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Option to Treat Distribution() as Modal</title>
      <link>https://community.jmp.com/t5/Discussions/Option-to-Treat-Distribution-as-Modal/m-p/662375#M85120</link>
      <description>&lt;P&gt;Most likely using modal window like Jim suggested is the easiest option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also provide expressions to platforms which will be run after user completes the selections, but using this is usually more difficult and not necessary &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/enable-user-input-in-jmp-platforms.shtml#" target="_blank" rel="noopener"&gt;Scripting Guide &amp;gt; Scripting Platforms &amp;gt; Enable User Input in JMP Platforms&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt &amp;lt;&amp;lt; Distribution(Action(doit));

doit = Expr(
	New Window("Bivariate", Bivariate(Action(doit2)))
);

doit2 = Expr(Caption("analyses complete"));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2023 05:58:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Option-to-Treat-Distribution-as-Modal/m-p/662375#M85120</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-07-26T05:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Option to Treat Distribution() as Modal</title>
      <link>https://community.jmp.com/t5/Discussions/Option-to-Treat-Distribution-as-Modal/m-p/663111#M85185</link>
      <description>&lt;P&gt;Jim, thanks for the response. I think my question could have used some more clarification, but I found a way to do what I wanted shown below. It is however a bit clunky...&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );

dlg = Column Dialog( colList = Col List( "Columns" ), );
numCols = N Items( dlg["colList"] );

startSubstring = ",Continuous Distribution( Column(:";
endSubstring = "), Horizontal Layout( 1 ), )";
mainStr = "Distribution( Stack( 1 )";

For( colCount = 1, colCount &amp;lt;= numCols, colCount++,
	myCol = dlg["colList"][colCount];
	distStr = startSubstring || Expr( myCol ) || endSubstring;
	mainStr ||= distStr;
	Show( mainStr );
);
mainStr ||= ")";
dist = Eval( Parse( mainStr ) );

// Code to modify dist goes here&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is basically a less efficient Distribution dialog, but resolves the issue I was having before of execution not halting when I ask a user to select their columns. This is all done with the intention of appending statistics to the resulting distribution window. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 20:52:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Option-to-Treat-Distribution-as-Modal/m-p/663111#M85185</guid>
      <dc:creator>Connor_K</dc:creator>
      <dc:date>2023-07-27T20:52:14Z</dc:date>
    </item>
  </channel>
</rss>

