lorsque j'exécute le script suivant, les graphiques sont produits pour chaque échantillon, mais la zone de texte imprime sampleName au lieu d'imprimer réellement la valeur du nom de l'échantillon. comment puis-je contourner cela ?
merci!
// 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 Le texte utilisé dans le filtre n'est pas évalué, il sera donc laissé comme sampleName. Voici une façon de l'évaluer
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>