<?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: How to rename the default graph builder script in a data table ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-rename-the-default-graph-builder-script-in-a-data-table/m-p/34654#M20463</link>
    <description>&lt;P&gt;Dave,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your response.&amp;nbsp;I need to execute the script generated from graph builder and hence I tried &amp;nbsp;option 1.&lt;/P&gt;&lt;PRE&gt;obj &amp;lt;&amp;lt; Save Script to Data Table("My Script");&lt;/PRE&gt;&lt;P&gt;Unfortunately, it still saves the script by the name "Graph builder" and not "My script". &amp;nbsp;For your information, I am using JMP 12.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2017 01:04:42 GMT</pubDate>
    <dc:creator>AJ</dc:creator>
    <dc:date>2017-01-17T01:04:42Z</dc:date>
    <item>
      <title>How to rename the default graph builder script in a data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-rename-the-default-graph-builder-script-in-a-data-table/m-p/34647#M20459</link>
      <description>&lt;P&gt;Below code generates a script for graph builder and is saved under the data table.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = Graph Builder(
	Variables( X( :Sex ), Y( :Height ), Group X( :Age ) ),
	Elements( Box Plot( X, Y ) )
);
obj &amp;lt;&amp;lt; Save Script to Data Table;&lt;/PRE&gt;&lt;P&gt;The names of the graph builder objects are using the default naming pattern for this platform. How do I rename them to my choice? (I have attached a screen shot and the graph builder names are highlighted in yellow)&lt;/P&gt;&lt;P&gt;I have tried using "set name" before and after saving the script to the data table but it didn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 22:32:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-rename-the-default-graph-builder-script-in-a-data-table/m-p/34647#M20459</guid>
      <dc:creator>AJ</dc:creator>
      <dc:date>2017-01-16T22:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename the default graph builder script in a data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-rename-the-default-graph-builder-script-in-a-data-table/m-p/34649#M20461</link>
      <description>&lt;P&gt;Here's a couple of approaches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First method, based directly on your code. &amp;nbsp;Just add an argument to the message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = Graph Builder(
	Variables( X( :Sex ), Y( :Height ), Group X( :Age ) ),
	Elements( Box Plot( X, Y ) )
);
obj &amp;lt;&amp;lt; Save Script to Data Table("My Script");&lt;/PRE&gt;
&lt;P&gt;The second method, if you simply want to attacth the script with a name, but not execute it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Set Property("My Script,",	
	Graph Builder(
		Variables( X( :Sex ), Y( :Height ), Group X( :Age ) ),
		Elements( Box Plot( X, Y ) )
	);	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jan 2017 23:15:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-rename-the-default-graph-builder-script-in-a-data-table/m-p/34649#M20461</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2017-01-16T23:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename the default graph builder script in a data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-rename-the-default-graph-builder-script-in-a-data-table/m-p/34654#M20463</link>
      <description>&lt;P&gt;Dave,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your response.&amp;nbsp;I need to execute the script generated from graph builder and hence I tried &amp;nbsp;option 1.&lt;/P&gt;&lt;PRE&gt;obj &amp;lt;&amp;lt; Save Script to Data Table("My Script");&lt;/PRE&gt;&lt;P&gt;Unfortunately, it still saves the script by the name "Graph builder" and not "My script". &amp;nbsp;For your information, I am using JMP 12.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 01:04:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-rename-the-default-graph-builder-script-in-a-data-table/m-p/34654#M20463</guid>
      <dc:creator>AJ</dc:creator>
      <dc:date>2017-01-17T01:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename the default graph builder script in a data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-rename-the-default-graph-builder-script-in-a-data-table/m-p/34656#M20464</link>
      <description>&lt;P&gt;It looks like the ability to add the name as an argument is a version 13 feature.&lt;/P&gt;
&lt;P&gt;Here is a workaround:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;obj &amp;lt;&amp;lt; Save Script To Data Table;
lstNames = dt &amp;lt;&amp;lt; Get Table Script Names;
dt &amp;lt;&amp;lt; Rename Table Script( lstNames[NItems(lstNames)], "My Script" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jan 2017 01:34:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-rename-the-default-graph-builder-script-in-a-data-table/m-p/34656#M20464</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2017-01-17T01:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename the default graph builder script in a data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-rename-the-default-graph-builder-script-in-a-data-table/m-p/34660#M20465</link>
      <description>Thanks a lot for your effort! This works perfect for me.</description>
      <pubDate>Tue, 17 Jan 2017 01:55:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-rename-the-default-graph-builder-script-in-a-data-table/m-p/34660#M20465</guid>
      <dc:creator>AJ</dc:creator>
      <dc:date>2017-01-17T01:55:43Z</dc:date>
    </item>
  </channel>
</rss>

