<?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: Error for JMP application from JMP14 to JMP15 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Error-for-JMP-application-from-JMP14-to-JMP15/m-p/339421#M58763</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;&amp;nbsp;already provided a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be more general remarks for future projects:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;please use the JSL formatting option in the post, makes it much more readable&lt;/LI&gt;&lt;LI&gt;In Scripteditor you can also let JMP format your script (Edit menu, or Crtl-M), I find it very useful&lt;/LI&gt;&lt;LI&gt;JMP changes from time to time how Objects are handled, your object "Texteditbox" has gone, when the window is closed, so no data can be retrieved anymore,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;provided a solution to overcome&lt;/LI&gt;&lt;LI&gt;Other solutions can be found in scripting index (hope so also in future), searching for modal window&lt;/LI&gt;&lt;LI&gt;following script is from scripting index and slightly modified, you can play with it to understand how values are returned with option "Return Result"; I find this a good and easy way for more complex windows.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
window_reference = New Window( "Dialog() example",
// try comment out next line
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;Return Result,
	V List Box( H List Box( "Set this value", variable = Number Edit Box( 42 ) ), H List Box( Button Box( "OK" ), Button Box( "Cancel" ) ) )
);

// show(variable&amp;lt;&amp;lt; get);
show(window_reference);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 05 Dec 2020 12:26:23 GMT</pubDate>
    <dc:creator>Georg</dc:creator>
    <dc:date>2020-12-05T12:26:23Z</dc:date>
    <item>
      <title>Error for JMP application from JMP14 to JMP15</title>
      <link>https://community.jmp.com/t5/Discussions/Error-for-JMP-application-from-JMP14-to-JMP15/m-p/339401#M58761</link>
      <description>&lt;P&gt;Good day JMP community, I just installed JMP15 and I am finding some errors, hoping somebody can help me to fix this.&lt;/P&gt;
&lt;P&gt;I developed an application in JMP 14 to make interactive analysis easier, however I am finding errors when trying to use same application with JMP15.&lt;/P&gt;
&lt;P&gt;Here brief explanation of application, I press a button in the app and appears screen to interactively encode data (Baseline), then as user encodes the condition to be used as baseline, ANOVA is created.&lt;/P&gt;
&lt;P&gt;Here the script I am using (this scripts runs in the application when the corresponding button is pressed):&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;nw = New Window( "SCRIPT REQUIREMENTS",
    &amp;lt;&amp;lt;Modal,
    H List Box(
        V List Box(
            Text Box( "Provide Baseline" ),
            Text Box( "" ),
            Lineup Box( 2, Text Box( "BASELINE" ), conditionlist_box = Text Edit Box( "", set width( 80 ) ) ),

        ),
        V List Box( Text Box( "" ), Button Box( "OK" ), Button Box( "Cancel", nw &amp;lt;&amp;lt; Close Window ) )
    )
);
CND1 = conditionlist_box &amp;lt;&amp;lt; get text;
If( nw == {Button( -1 )},
    Stop()
);
Show( CND1 );

Oneway(
    Y( :FINALTHICKNESS ),
    X( :CONDITION ),
    All Pairs( 1, Ordered Differences Report( 1 ) ),
    With Control( 1, {Char( CND1, "\!N" )} ),
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say I encoded "A" (as baseline), then JMP 14 executes the ANOVA, I can see this is in the LOG of JMP14:&lt;/P&gt;
&lt;P&gt;CND1 = "A";&lt;BR /&gt;Oneway[]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However if I try to use JMP 15, this is the error I get (it seems CND1 is not picked or recognized):&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;deleted object reference: conditionlist_box &amp;lt;&amp;lt; get text in access or evaluation of 'Glue' , nw = New Window( "SCRIPT REQUIREMENTS",
&amp;lt;&amp;lt;Modal,
H List Box(
V List Box(
Text Box( "Provide Baseline" ),
Text Box( "" ),
Lineup Box(
2,
Text Box( "BASELINE" ),
conditionlist_box = Text Edit Box( "", set width( 80 ) )
)
),
V List Box(
Text Box( "" ),
Button Box( "OK" ),
Button Box( "Cancel", nw &amp;lt;&amp;lt; Close Window )
)
)
); /*###*/CND1 = conditionlist_box &amp;lt;&amp;lt; get text; /*###*/
If( nw == {Button( -1 )},
Stop()
); /*###*/Show( CND1 ); /*###*/Oneway(
Y( :FINALTHICKNESS ),
X( :CONDITION ),
All Pairs( 1, Ordered Differences Report( 1 ) ),
With Control( 1, {Char( CND1, "
" )} )
) /*###*/;

In the following script, error marked by /*###*/
nw = New Window( "SCRIPT REQUIREMENTS",
&amp;lt;&amp;lt;Modal,
H List Box(
V List Box(
Text Box( "Provide Baseline" ),
Text Box( "" ),
Lineup Box(
2,
Text Box( "BASELINE" ),
conditionlist_box = Text Edit Box( "", set width( 80 ) )
)
),
V List Box(
Text Box( "" ),
Button Box( "OK" ),
Button Box( "Cancel", nw &amp;lt;&amp;lt; Close Window )
)
)
); /*###*/CND1 = conditionlist_box &amp;lt;&amp;lt; get text; /*###*/
If( nw == {Button( -1 )},
Stop()
); /*###*/Show( CND1 ); /*###*/Oneway(
Y( :FINALTHICKNESS ),
X( :CONDITION ),
All Pairs( 1, Ordered Differences Report( 1 ) ),
With Control( 1, {Char( CND1, "
" )} )
) /*###*/;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 21:59:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-for-JMP-application-from-JMP14-to-JMP15/m-p/339401#M58761</guid>
      <dc:creator>AndresGlez</dc:creator>
      <dc:date>2023-06-09T21:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error for JMP application from JMP14 to JMP15</title>
      <link>https://community.jmp.com/t5/Discussions/Error-for-JMP-application-from-JMP14-to-JMP15/m-p/339420#M58762</link>
      <description>&lt;P&gt;Changing the setting of "conditionlist_box" to be populated when the Text Edit Box is changed, fixes the issue&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "SCRIPT REQUIREMENTS",
&amp;lt;&amp;lt;Modal, 
H List Box(
V List Box(
Text Box ("Provide Baseline"),
Text Box( "" ),
Lineup Box( 2, Text Box( "BASELINE" ), conditionlist_box = Text Edit Box( "", set width(80),
&amp;lt;&amp;lt;set script(CND1 = conditionlist_box &amp;lt;&amp;lt; get text;) ) ),
),
V List Box( Text Box( "" ), Button Box( "OK"),
Button Box( "Cancel" , nw &amp;lt;&amp;lt; Close Window) )
)
);

If( nw == {Button( -1 )}, Stop() );
show (CND1);

Oneway( Y( :FINALTHICKNESS ), X( :CONDITION ),
All Pairs( 1, Ordered Differences Report( 1 ) ),
With Control( 1, {char( CND1, "\!N")} ), );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 Dec 2020 05:06:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-for-JMP-application-from-JMP14-to-JMP15/m-p/339420#M58762</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-12-05T05:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error for JMP application from JMP14 to JMP15</title>
      <link>https://community.jmp.com/t5/Discussions/Error-for-JMP-application-from-JMP14-to-JMP15/m-p/339421#M58763</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;&amp;nbsp;already provided a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be more general remarks for future projects:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;please use the JSL formatting option in the post, makes it much more readable&lt;/LI&gt;&lt;LI&gt;In Scripteditor you can also let JMP format your script (Edit menu, or Crtl-M), I find it very useful&lt;/LI&gt;&lt;LI&gt;JMP changes from time to time how Objects are handled, your object "Texteditbox" has gone, when the window is closed, so no data can be retrieved anymore,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;provided a solution to overcome&lt;/LI&gt;&lt;LI&gt;Other solutions can be found in scripting index (hope so also in future), searching for modal window&lt;/LI&gt;&lt;LI&gt;following script is from scripting index and slightly modified, you can play with it to understand how values are returned with option "Return Result"; I find this a good and easy way for more complex windows.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
window_reference = New Window( "Dialog() example",
// try comment out next line
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;Return Result,
	V List Box( H List Box( "Set this value", variable = Number Edit Box( 42 ) ), H List Box( Button Box( "OK" ), Button Box( "Cancel" ) ) )
);

// show(variable&amp;lt;&amp;lt; get);
show(window_reference);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 Dec 2020 12:26:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-for-JMP-application-from-JMP14-to-JMP15/m-p/339421#M58763</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2020-12-05T12:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error for JMP application from JMP14 to JMP15</title>
      <link>https://community.jmp.com/t5/Discussions/Error-for-JMP-application-from-JMP14-to-JMP15/m-p/339422#M58764</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;for the support, it fixed my problem.&lt;/P&gt;&lt;P&gt;Also thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9474"&gt;@Georg&lt;/a&gt;, after your suggestion I used the CTRL-M in my scripts, you are right it is very helpful and more readable.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 13:17:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-for-JMP-application-from-JMP14-to-JMP15/m-p/339422#M58764</guid>
      <dc:creator>AndresGlez</dc:creator>
      <dc:date>2020-12-05T13:17:19Z</dc:date>
    </item>
  </channel>
</rss>

