Cuando ejecuto el siguiente script, los gráficos se producen para cada muestra, sin embargo, el cuadro de texto imprime sampleName en lugar de imprimir realmente el valor del nombre de la muestra. ¿Cómo puedo solucionar esto?
¡gracias!
// Create a new window with variability charts for each sample name
New Window("whiteshirts - Variability Chart",
V List Box(
Current Data Table(summaryTable);
For Each Row(
summaryTable,
sampleName = Column(summaryTable, "SAMPLE_NAME")[Row()];
grandMin = Column(summaryTable, "Min(LAB_L)")[Row()];
grandMax = Column(summaryTable, "Max(LAB_L)")[Row()];
Print(sampleName, grandMin, grandMax);
/*Text Box( "Where(:SAMPLE_NAME == " || char(sampleName) || ")", <<SET wrap=""></SET>
Edit 2024-09-05 jthi: added jsl formatting El texto utilizado en el filtro no se está evaluando, por lo que se dejará como sampleName. Aquí se muestra una forma de evaluarlo
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
Column(dt, 2) << Set Name("shirt");
Column(dt, 3) << Set Name("SAMPLE_NAME");
Column(dt, 4) << Set Name("LAB_L");
dt_summary = dt << Summary(
Group(:SAMPLE_NAME),
Min(:LAB_L),
Max(:LAB_L),
Freq("None"),
Weight("None"),
Link to original data table(0),
output table name("Summary of Big Class grouped by SAMPLE_NAME")
);
nw = New Window("whiteshirts - Variability Chart",
V List Box(
For Each Row(
dt_summary,
sampleName = Column(dt_summary, "SAMPLE_NAME")[Row()];
grandMin = Column(dt_summary, "Min(LAB_L)")[Row()];
grandMax = Column(dt_summary, "Max(LAB_L)")[Row()];
Print(sampleName, grandMin, grandMax);
/*Text Box( "Where(:SAMPLE_NAME == " || char(sampleName) || ")", <<SET wrap=""></SET>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1725536855554.png" style="width: 400px;"><span class="lia-inline-image-display-wrapper" image-alt="jthi_0-1725536855554.png" style="width: 190px;"><img src="https://us.v-cdn.net/6038925/uploads/images/67975i8C914B0F4F8B2309/jthi_0-1725536855554.png" role="button" title="jthi_0-1725536855554.png" alt="jthi_0-1725536855554.png" /></span></SPAN></P>
<P> </P>