<?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: losses of information in a graph box saved in journal in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/losses-of-information-in-a-graph-box-saved-in-journal/m-p/485719#M72955</link>
    <description>&lt;P&gt;I'm using JMP16.2 so hopefully the issues are same. I get following error message &lt;EM&gt;Name Unresolved: Var1 in access or evaluation of 'Var1' , Var1/*###*/ &lt;/EM&gt;which tells me that when the journal is re-opened the variables are no longer defined. To avoid this I would try one of the methods found from&lt;LI-MESSAGE title="Insert one expression into another using Eval Insert, Eval Expr, Parse, and Substitute" uid="48998" url="https://community.jmp.com/t5/JSL-Cookbook/Insert-one-expression-into-another-using-Eval-Insert-Eval-Expr/m-p/48998#U48998" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; . These will allow you to evaluate the values to the graph box instead of just leaving it as Var1 and Var2. Below is an example using Eval(EvalExpr()).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

path = "$TEMP\";
Var1 = [10 30 90];
Var2 = [88 22 44];

Eval(
	EvalExpr(
		obj = New Window("Example", Graph Box(Line(Expr(Var1), Expr(Var2))));
	)
);

obj &amp;lt;&amp;lt; journal;
jrn = Current Journal();
 
jrn &amp;lt;&amp;lt; Save Journal(path || "jrn_test.jrn");
jrn &amp;lt;&amp;lt; close window();
obj &amp;lt;&amp;lt; close window();

wait(1);

Open(path || "jrn_test.jrn");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Non-evaluated:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1652194059172.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42361i3A880F92696C3FAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1652194059172.png" alt="jthi_1-1652194059172.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Evaluated:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1652194040615.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42360iC3A0FE8ED985ADE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1652194040615.png" alt="jthi_0-1652194040615.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 14:47:45 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-05-10T14:47:45Z</dc:date>
    <item>
      <title>losses of information in a graph box saved in journal</title>
      <link>https://community.jmp.com/t5/Discussions/losses-of-information-in-a-graph-box-saved-in-journal/m-p/485698#M72954</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;My english may not be clear I apologise in advance if it's the case.&lt;/P&gt;&lt;P&gt;I try to create a graph in a graph box that I want to save in a journal.&lt;/P&gt;&lt;P&gt;To create lines in my graph, I have to put coordintates in a variable because this may be changing depending on some parameters in my data.&lt;/P&gt;&lt;P&gt;Everything is running fine until I save the journal. But when I re-open this journal from an other jmp session or even if I just run "clear globals"&amp;nbsp; I loose everything. In fact , in the journal script, my variables keep their name and if I erase what is assign to my variable then the script of the journal will be bugging ( as it does not recognize&amp;nbsp; anymore my variable).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to put the code in an expression, to put it in a function, to use the "eval" or "eval(parse()" command and nothing id working so far which is driving me craz&lt;SPAN&gt;y.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Does anyone had the problem or have a clue to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a code that re-create the problem&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;path ="C:\";
Var1=[10 30 90]; 
Var2=[88 22 44] ;

obj=New Window( "Example", Graph Box( Line( Var1, Var2 ) ) );

obj&amp;lt;&amp;lt;journal;
jrn= Current Journal();
 
jrn&amp;lt;&amp;lt;Save Journal(path||"jrn_test.jrn");
jrn&amp;lt;&amp;lt; close window();
obj&amp;lt;&amp;lt;close window();

clear globals(); 

path ="C:\";

open(path||"jrn_test.jrn");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you very much in advance !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps :&amp;nbsp;I'm using JMP14.1.0 (64bits)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:24:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/losses-of-information-in-a-graph-box-saved-in-journal/m-p/485698#M72954</guid>
      <dc:creator>johanna_younous</dc:creator>
      <dc:date>2023-06-11T11:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: losses of information in a graph box saved in journal</title>
      <link>https://community.jmp.com/t5/Discussions/losses-of-information-in-a-graph-box-saved-in-journal/m-p/485719#M72955</link>
      <description>&lt;P&gt;I'm using JMP16.2 so hopefully the issues are same. I get following error message &lt;EM&gt;Name Unresolved: Var1 in access or evaluation of 'Var1' , Var1/*###*/ &lt;/EM&gt;which tells me that when the journal is re-opened the variables are no longer defined. To avoid this I would try one of the methods found from&lt;LI-MESSAGE title="Insert one expression into another using Eval Insert, Eval Expr, Parse, and Substitute" uid="48998" url="https://community.jmp.com/t5/JSL-Cookbook/Insert-one-expression-into-another-using-Eval-Insert-Eval-Expr/m-p/48998#U48998" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; . These will allow you to evaluate the values to the graph box instead of just leaving it as Var1 and Var2. Below is an example using Eval(EvalExpr()).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

path = "$TEMP\";
Var1 = [10 30 90];
Var2 = [88 22 44];

Eval(
	EvalExpr(
		obj = New Window("Example", Graph Box(Line(Expr(Var1), Expr(Var2))));
	)
);

obj &amp;lt;&amp;lt; journal;
jrn = Current Journal();
 
jrn &amp;lt;&amp;lt; Save Journal(path || "jrn_test.jrn");
jrn &amp;lt;&amp;lt; close window();
obj &amp;lt;&amp;lt; close window();

wait(1);

Open(path || "jrn_test.jrn");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Non-evaluated:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1652194059172.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42361i3A880F92696C3FAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1652194059172.png" alt="jthi_1-1652194059172.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Evaluated:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1652194040615.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42360iC3A0FE8ED985ADE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1652194040615.png" alt="jthi_0-1652194040615.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 14:47:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/losses-of-information-in-a-graph-box-saved-in-journal/m-p/485719#M72955</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-05-10T14:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: losses of information in a graph box saved in journal</title>
      <link>https://community.jmp.com/t5/Discussions/losses-of-information-in-a-graph-box-saved-in-journal/m-p/485739#M72956</link>
      <description>&lt;P&gt;Thx !!!&lt;/P&gt;&lt;P&gt;It seems to work perfectly!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 14:57:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/losses-of-information-in-a-graph-box-saved-in-journal/m-p/485739#M72956</guid>
      <dc:creator>johanna_younous</dc:creator>
      <dc:date>2022-05-10T14:57:01Z</dc:date>
    </item>
  </channel>
</rss>

