<?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 save the benchmarks window to the data table ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781339#M96395</link>
    <description>&lt;P&gt;What is wrong with the script I provided you with? You didn't tell me which JMP version you are using so that might not work for all JMP version (I have only access top JMP17 and JMP18).&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 16:02:40 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-08-13T16:02:40Z</dc:date>
    <item>
      <title>How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/780989#M96347</link>
      <description>&lt;P&gt;Hi !&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to this script I generate à window of BenchMarks on jmp and I would like to save it to the data table ( like if I was doing "save script to data table") The problem is that the end of my script doesn't work !!&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Ouvrir la table de données
dt = Open(fichier1);

// Initialiser une liste pour stocker les noms des colonnes avec la note "INGOT CHARACTERISTICS"
cols_with_note = {};

// Parcourir chaque colonne de la table par index
For(i = 1, i &amp;lt;= N Cols(dt), i++,
	col = Column(dt, i);
// Vérifier si la colonne a une note "INGOT CHARACTERISTICS"
	If(col &amp;lt;&amp;lt; Get Property("Notes") == "INGOT CHARACTERISTICS", 
// Ajouter le nom de la colonne à la liste
		Insert Into(cols_with_note, col &amp;lt;&amp;lt; Get Name)
	);
);

Print(
	"Colonnes avec notes trouvées pour la famille " || "INGOT CHARACTERISTICS" || " : " ||
	Char(cols_with_note) || "\n"
);

// Créer une nouvelle fenêtre pour regrouper tous les graphiques
report_window = New Window("BenchMarks_Ingot_Characteristics",
	V List Box(
		Fit Group(
			For(i = 1, i &amp;lt;= N Items(cols_with_note), i++,
				col_name = cols_with_note[i];
// Ajouter le graphique Oneway au Fit Group
				Oneway(
					Y(Column(dt, col_name)),
					X(Column(dt, selection)),
					Quantiles(1),
					Means and Std Dev(1),
					Box Plots(1),
					Mean Error Bars(1),
					Std Dev Lines(1),
					X Axis Proportional(0),
					Grand Mean(0),
					SendToReport(
						Dispatch({}, "Oneway Plot", FrameBox,
							{DispatchSeg(
								Box Plot Seg(1),
								{Confidence Diamond(0), Shortest Half Bracket(0),
								Line Color("Red")}
							)}
						)
					)
				);
			)
		)
	)
);
// Enregistrer la fenêtre dans le fichier de données
report_window &amp;lt;&amp;lt; Save Script to Data Table(
	dt, // Spécifie la table de données
	"BenchMarks_Ingot_Characteristics", // Nom de la fenêtre pour enregistrer

);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Edit 2024-08-12 jthi, Added JSL formatting&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 15:23:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/780989#M96347</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-12T15:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781012#M96350</link>
      <description>&lt;P&gt;When you post JSL code to JMP Community, please utilize JSL formatting. You can add it with &lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1723476660559.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67047i846FEFB160782B7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1723476660559.png" alt="jthi_0-1723476660559.png" /&gt;&lt;/span&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On your question, which JMP version are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 15:31:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781012#M96350</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-12T15:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781038#M96352</link>
      <description>&lt;P&gt;Here are two options which might work for you. Option 2 is usually easier to use but the script it creates is more difficult to modify in the table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

sel = "SITE";

cols = Left(dt &amp;lt;&amp;lt; Get Column Names("Continuous", "String"), 10);


// Option1
ow_expr = EvalExpr(dt &amp;lt;&amp;lt; Oneway(
	Y(Eval(Expr(cols))),
	X(Eval(Expr(sel))),
	Quantiles(1),
	Means and Std Dev(1),
	Box Plots(1),
	Mean Error Bars(1),
	Std Dev Lines(1),
	X Axis Proportional(0),
	Grand Mean(0),
	SendToReport(
		Dispatch({}, "Oneway Plot", FrameBox,
			{DispatchSeg(
				Box Plot Seg(1),
				{Confidence Diamond(0), Shortest Half Bracket(0),
				Line Color("Red")}
			)}
		)
	)
));

Eval(EvalExpr(
	dt &amp;lt;&amp;lt; New Script("Plots", Expr(Name Expr(ow_expr)));
));
dt &amp;lt;&amp;lt; Run Script("Plots"); // if you want to leave it open



// Option2
ows = dt &amp;lt;&amp;lt; Oneway(
	Y(Eval(cols)),
	X(Eval(sel)),
	Quantiles(1),
	Means and Std Dev(1),
	Box Plots(1),
	Mean Error Bars(1),
	Std Dev Lines(1),
	X Axis Proportional(0),
	Grand Mean(0),
	SendToReport(
		Dispatch({}, "Oneway Plot", FrameBox,
			{DispatchSeg(
				Box Plot Seg(1),
				{Confidence Diamond(0), Shortest Half Bracket(0),
				Line Color("Red")}
			)}
		)
	)
);

ows[1] &amp;lt;&amp;lt; Save Script for All Objects To Data Table("Plot2");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Aug 2024 16:22:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781038#M96352</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-12T16:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781055#M96356</link>
      <description>&lt;P&gt;I made a loop to have all my benchmarks in one Fit Group and I would like to save all this Fit Group in one window, the script you sent me did not works for me :(&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 17:11:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781055#M96356</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-12T17:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781339#M96395</link>
      <description>&lt;P&gt;What is wrong with the script I provided you with? You didn't tell me which JMP version you are using so that might not work for all JMP version (I have only access top JMP17 and JMP18).&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 16:02:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781339#M96395</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-13T16:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781341#M96397</link>
      <description>It didn’t register the benchmarks in my fichier1 don’t know why</description>
      <pubDate>Tue, 13 Aug 2024 16:28:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781341#M96397</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-13T16:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781342#M96398</link>
      <description>I use jmp 16</description>
      <pubDate>Tue, 13 Aug 2024 16:29:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781342#M96398</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-13T16:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781344#M96400</link>
      <description>Moreover the script you send me doesn’t incluse the loop</description>
      <pubDate>Tue, 13 Aug 2024 16:34:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781344#M96400</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-13T16:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781346#M96401</link>
      <description>&lt;P&gt;If loop isn't necessary (might be with JMP16) why would you use one? For with my previous scripts you get results like this (in JMP18)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1723567187515.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67104i4471801717B9E538/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1723567187515.png" alt="jthi_0-1723567187515.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 16:39:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781346#M96401</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-13T16:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781357#M96402</link>
      <description>&lt;P&gt;Jarmo,&lt;/P&gt;
&lt;P&gt;I ran your script in JMP 16 and both options worked as expected, saving the scripts to the original data table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 16:47:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781357#M96402</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-08-13T16:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781358#M96403</link>
      <description>I don’t get how loop isn’t necessary when I need to generate benchmarks for each values of the list cols_with_note as Y</description>
      <pubDate>Tue, 13 Aug 2024 16:53:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781358#M96403</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-13T16:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781359#M96404</link>
      <description>&lt;P&gt;Some JMP platforms let you use multiple columns as inputs. After you have your list of columns, you might just be able to directly use it as an input in a platform. So you need one loop to collect columns (or some other method, I don't have your data so I cannot know) and second loop might be unnecessary depending on the final result you wish to have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My example doesn't have any loops, because it is unnecessary for my example script to loop over any columns to create an example list. I can just pick some columns to demonstrate what you can do, especially as you seem to have already solved the column collection part.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 16:58:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781359#M96404</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-13T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781360#M96405</link>
      <description>&lt;P&gt;Okay I get it but I don't know why when I click on the button to lauch it it doesnt work ? So know it did save it but I can't launch the benchmarks&amp;nbsp;from the green button&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 17:15:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781360#M96405</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-13T17:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781363#M96406</link>
      <description>&lt;P&gt;Right click on the script and select Edit&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1723571386633.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67106iDE69D4F7D79EB61B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1723571386633.png" alt="jthi_0-1723571386633.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can then view the script which is in the table, most likely there is something wrong with it. Sometimes it can be a bit difficult to get them saved correctly to data table.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 17:51:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781363#M96406</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-13T17:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781364#M96407</link>
      <description>&lt;P&gt;Ok ty very much, you really saved me !! I have another question, I'm making this for several study and sometimes the list cols (or cols_with_note) might be empty but the script you send me doesn't work if cols is empty (which is normal actually) I'm making this script to add them to a workflow form jump. Is there any way to say like "if cols is empty then stop the script and pass to the next one" ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 17:56:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781364#M96407</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-13T17:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781365#M96408</link>
      <description>&lt;P&gt;or rather an if the list is not empty we generate the benchmarks and otherwise we do nothing&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 18:03:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781365#M96408</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-13T18:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781367#M96410</link>
      <description>&lt;P&gt;You can use if statement and N Items() to check if list has any items. And then either stop if it is empty or do something else&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mylist = {};
If(N Items(mylist) == 0,
	stop();
);
show(1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Aug 2024 18:06:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781367#M96410</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-13T18:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781369#M96411</link>
      <description>&lt;P&gt;I strongly suggest that you take the time to read the Scripting Guide available under the Help pull down menu.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 18:15:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781369#M96411</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-08-13T18:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to save the benchmarks window to the data table ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781395#M96417</link>
      <description>&lt;P&gt;I have noticed that when my list contain only one column name or column that are empty the script say :&amp;nbsp;send expects scriptable objects how to correct this ??&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 19:45:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/781395#M96417</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-13T19:45:57Z</dc:date>
    </item>
  </channel>
</rss>

