다음 스크립트를 실행하면 각 샘플에 대한 차트가 생성되지만 텍스트 상자는 실제 샘플 이름의 값을 인쇄하는 대신 sampleName을 인쇄합니다. 이 문제를 해결하려면 어떻게 해야 합니까?
감사해요!
// 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>