<?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: Embedding a table script into a table that is generated by an embedded table script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Embedding-a-table-script-into-a-table-that-is-generated-by-an/m-p/710991#M89464</link>
    <description>&lt;P&gt;Add the table script to dt_sum in same table script as you create the summary. It might be enough if you just replace , with ;.&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; Delete scripts(dt &amp;lt;&amp;lt; Get Table Script Names); // has many of these already

dt &amp;lt;&amp;lt; New Script("Create Summary", 
	Names Default To Here(1); 

	dt_sum = Current Data Table() &amp;lt;&amp;lt; Summary(
		Group(:name),
		Mean(:height),
		Mean(:weight),
		Freq("None"),
		Weight("None"),
		Link to original data table(0)
	);
	
	dt_sum &amp;lt;&amp;lt; New Script("Plot",
		Graph Builder(
			Size(528, 458),
			Show Control Panel(0),
			Variables(X(:name), Y(:"Mean(height)"n), Y(:"Mean(weight)"n, Position(1))),
			Elements(Bar(X, Y(1), Y(2), Legend(4)))
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 20 Dec 2023 07:10:24 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-12-20T07:10:24Z</dc:date>
    <item>
      <title>Embedding a table script into a table that is generated by an embedded table script</title>
      <link>https://community.jmp.com/t5/Discussions/Embedding-a-table-script-into-a-table-that-is-generated-by-an/m-p/710912#M89458</link>
      <description>&lt;P&gt;I have a script that adds some embedded table scripts for graphing. I'm now trying to add another table script that creates a summarized table and embeds a new table script inside that new table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the embedded table in dt runs fine, opens dtsum as expected except "secondary table script title" does not embed into dtsum. If I run that portion of the script (CTL+R) then it embeds to dtsum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that I have sanitized the script to hide some company IP stuff. Are you able to see something wrong with my format/structure?&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;dt &amp;lt;&amp;lt; New Script(
	"First level Table script title",
	dtsum = dt &amp;lt;&amp;lt; Summary(
				// summary details
			),
	dtsum &amp;lt;&amp;lt; New Script(
		"Secondary table script title",
		// graph builder details here
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 01:46:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Embedding-a-table-script-into-a-table-that-is-generated-by-an/m-p/710912#M89458</guid>
      <dc:creator>SamKing</dc:creator>
      <dc:date>2023-12-20T01:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding a table script into a table that is generated by an embedded table script</title>
      <link>https://community.jmp.com/t5/Discussions/Embedding-a-table-script-into-a-table-that-is-generated-by-an/m-p/710991#M89464</link>
      <description>&lt;P&gt;Add the table script to dt_sum in same table script as you create the summary. It might be enough if you just replace , with ;.&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; Delete scripts(dt &amp;lt;&amp;lt; Get Table Script Names); // has many of these already

dt &amp;lt;&amp;lt; New Script("Create Summary", 
	Names Default To Here(1); 

	dt_sum = Current Data Table() &amp;lt;&amp;lt; Summary(
		Group(:name),
		Mean(:height),
		Mean(:weight),
		Freq("None"),
		Weight("None"),
		Link to original data table(0)
	);
	
	dt_sum &amp;lt;&amp;lt; New Script("Plot",
		Graph Builder(
			Size(528, 458),
			Show Control Panel(0),
			Variables(X(:name), Y(:"Mean(height)"n), Y(:"Mean(weight)"n, Position(1))),
			Elements(Bar(X, Y(1), Y(2), Legend(4)))
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Dec 2023 07:10:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Embedding-a-table-script-into-a-table-that-is-generated-by-an/m-p/710991#M89464</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-20T07:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding a table script into a table that is generated by an embedded table script</title>
      <link>https://community.jmp.com/t5/Discussions/Embedding-a-table-script-into-a-table-that-is-generated-by-an/m-p/711197#M89477</link>
      <description>&lt;P&gt;Looks like your last sentence was correct, I just needed to replace the , with ;&lt;/P&gt;&lt;P&gt;I thought my format was good and that I had something more broken than that, I appreciate the quick response! Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 15:06:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Embedding-a-table-script-into-a-table-that-is-generated-by-an/m-p/711197#M89477</guid>
      <dc:creator>SamKing</dc:creator>
      <dc:date>2023-12-20T15:06:04Z</dc:date>
    </item>
  </channel>
</rss>

