<?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: Revert Graph Builder title ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Revert-Graph-Builder-title/m-p/888220#M105054</link>
    <description>&lt;P&gt;No idea if there is any way to revert that TextEditBox to default value but you could slightly modify your workaround. After executing the changed code (execute it inside V List Box or something so it won't create anything visible), pick the title from the "new" report, update your current one and then close the newly created one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(528, 454),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight)),
	Elements(Points(X, Y, Legend(1)), Smoother(X, Y, Legend(2))),
	SendToReport(
		Dispatch({}, "graph title", TextEditBox, {Set Text("ABCD")})
	)
);

reset_gb_title = Function({gb}, {Default Local},
	s = gb &amp;lt;&amp;lt; get script;
	titlechange = Extract Expr(s, Dispatch({}, "graph title", TextEditBox, Wild()));
	ngb = Substitute(Name Expr(s), Name Expr(titlechange), Expr(.));

	vlb = V List Box(ngb = ngb);
	default_title = Report(ngb)[TextEditBox(1)] &amp;lt;&amp;lt; get text;

	Report(gb)[TextEditBox(1)] &amp;lt;&amp;lt; Set Text(default_title);
	vlb &amp;lt;&amp;lt; Delete Box();	
	
	Return(1);
);

wait(1); // demo purposes
reset_gb_title(gb);
Write();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 20 Jul 2025 18:08:07 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-07-20T18:08:07Z</dc:date>
    <item>
      <title>Revert Graph Builder title ?</title>
      <link>https://community.jmp.com/t5/Discussions/Revert-Graph-Builder-title/m-p/888194#M105049</link>
      <description>&lt;P&gt;When I change the title, in JSL a command&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Dispatch( {}, {"graph title"}, TextEditBox, {Set Text( "xx" )} )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is added.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a JSL command to revert the title in Graph Builder to the default value?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jul 2025 08:00:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Revert-Graph-Builder-title/m-p/888194#M105049</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-20T08:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Revert Graph Builder title ?</title>
      <link>https://community.jmp.com/t5/Discussions/Revert-Graph-Builder-title/m-p/888204#M105050</link>
      <description>&lt;P&gt;my current workaround:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;get the script of the report&lt;/LI&gt;
&lt;LI&gt;close the report&lt;/LI&gt;
&lt;LI&gt;remove the command for the Graph Title from the retrieved script&lt;/LI&gt;
&lt;LI&gt;execute the changed code&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sun, 20 Jul 2025 08:02:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Revert-Graph-Builder-title/m-p/888204#M105050</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-20T08:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Revert Graph Builder title ?</title>
      <link>https://community.jmp.com/t5/Discussions/Revert-Graph-Builder-title/m-p/888220#M105054</link>
      <description>&lt;P&gt;No idea if there is any way to revert that TextEditBox to default value but you could slightly modify your workaround. After executing the changed code (execute it inside V List Box or something so it won't create anything visible), pick the title from the "new" report, update your current one and then close the newly created one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(528, 454),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight)),
	Elements(Points(X, Y, Legend(1)), Smoother(X, Y, Legend(2))),
	SendToReport(
		Dispatch({}, "graph title", TextEditBox, {Set Text("ABCD")})
	)
);

reset_gb_title = Function({gb}, {Default Local},
	s = gb &amp;lt;&amp;lt; get script;
	titlechange = Extract Expr(s, Dispatch({}, "graph title", TextEditBox, Wild()));
	ngb = Substitute(Name Expr(s), Name Expr(titlechange), Expr(.));

	vlb = V List Box(ngb = ngb);
	default_title = Report(ngb)[TextEditBox(1)] &amp;lt;&amp;lt; get text;

	Report(gb)[TextEditBox(1)] &amp;lt;&amp;lt; Set Text(default_title);
	vlb &amp;lt;&amp;lt; Delete Box();	
	
	Return(1);
);

wait(1); // demo purposes
reset_gb_title(gb);
Write();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jul 2025 18:08:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Revert-Graph-Builder-title/m-p/888220#M105054</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-07-20T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Revert Graph Builder title ?</title>
      <link>https://community.jmp.com/t5/Discussions/Revert-Graph-Builder-title/m-p/892159#M105314</link>
      <description>&lt;P&gt;Nice, much better -&amp;nbsp; it doesn't create a new plot window.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 08:01:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Revert-Graph-Builder-title/m-p/892159#M105314</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-08-04T08:01:43Z</dc:date>
    </item>
  </channel>
</rss>

