当我运行以下脚本时,会为每个样本生成图表,但文本框会打印样本名称,而不是实际打印样本名称的值。我该如何解决这个问题?
谢谢!
// 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 过滤器中使用的文本未被评估,因此将保留为 sampleName。以下是评估它的一种方法
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>