<?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 How to save to data Table but with script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-save-to-data-Table-but-with-script/m-p/781312#M96389</link>
    <description>&lt;P&gt;Hello, I would like to save the following script which generates several BenchMarks in a FitGroup via a loop as if I were doing a "save to data table" but dynamically (compared to the loop) how to do it?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&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" )}
							)}
						)
					)
				);
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;for info col_with_note contains the coordinates of the different benchmarks and selection the abscissa of the benchmarks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ty&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 15:33:20 GMT</pubDate>
    <dc:creator>PercentileBat71</dc:creator>
    <dc:date>2024-08-13T15:33:20Z</dc:date>
    <item>
      <title>How to save to data Table but with script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-to-data-Table-but-with-script/m-p/781312#M96389</link>
      <description>&lt;P&gt;Hello, I would like to save the following script which generates several BenchMarks in a FitGroup via a loop as if I were doing a "save to data table" but dynamically (compared to the loop) how to do it?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&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" )}
							)}
						)
					)
				);
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;for info col_with_note contains the coordinates of the different benchmarks and selection the abscissa of the benchmarks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ty&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 15:33:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-to-data-Table-but-with-script/m-p/781312#M96389</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-13T15:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to save to data Table but with script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-to-data-Table-but-with-script/m-p/781322#M96390</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = current data table();
jsl=dt&amp;lt;&amp;lt;get script();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;gets the script for the data table in variable "jsl"&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 14:09:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-to-data-Table-but-with-script/m-p/781322#M96390</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2024-08-13T14:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to save to data Table but with script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-to-data-Table-but-with-script/m-p/781326#M96393</link>
      <description>&lt;P&gt;It didn't work I want to save it to dt (=open(fichier1)). If it could help I have JMP 16&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 15:30:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-to-data-Table-but-with-script/m-p/781326#M96393</guid>
      <dc:creator>PercentileBat71</dc:creator>
      <dc:date>2024-08-13T15:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to save to data Table but with script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-to-data-Table-but-with-script/m-p/781340#M96396</link>
      <description>&lt;P&gt;&lt;LI-MESSAGE title="How to save the benchmarks window to the data table ?" uid="780989" url="https://community.jmp.com/t5/Discussions/How-to-save-the-benchmarks-window-to-the-data-table/m-p/780989#U780989" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 16:02:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-to-data-Table-but-with-script/m-p/781340#M96396</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-13T16:02:41Z</dc:date>
    </item>
  </channel>
</rss>

