안녕하세요,
연결 후 새 창()으로 생성된 작은 보고서를 스크립트로 데이터 테이블에 저장하고 나중에 데이터 테이블에서 직접 생성할 수 있도록 하려고 합니다.

<< 스크립트 가져오기 및 << 새 스크립트 기능을 사용해 보았지만 작동하지 않고, 생성된 스크립트도 실패합니다.
좀 도와주실 수 있나요?
감사해요
- 설교자
dt = New Table( "datatable_test5",
Add Rows( 7 ),
New Column( "SerialNumber",
Character( 20 ),
"Nominal",
Set Values(
{"DN802111YSKQ45752507", "DN802111YSKQ45752507",
"DN802111YSKQ45752507", "DN802111YSQQ4575X379",
"DN802111YSQQ4575X379", "DN802111YSQQ4575X379",
"DN802111YUAQ45755340"}
),
Set Display Width( 233 )
),
New Column( "stored_at",
Numeric,
"Continuous",
Format( "y/m/d h:m:s", 22, 0 ),
Input Format( "y/m/d h:m:s", 0 ),
Set Values(
[3806904000, 3806990820, 3806904780, 3806905200, 3806992020,
3806906400, 3806906820]
),
Set Display Width( 169 )
),
New Column( "Version",
Character( 9 ),
"Nominal",
Set Values(
{"Version 3", "Version 1", "Version 2", "Version 5",
"Version 4", "Version 2", "Version 3"}
),
Set Display Width( 100 )
),
New Column( "Metric1",
Numeric,
"Continuous",
Format( "Best", 10 ),
Set Property(
"Spec Limits",
{LSL( 0 ), USL( 40 ), Show Limits( 1 )}
),
Set Values(
[16.197252, 6.39561587, 6.5805566, 6.1837729, 16.3159215,
12.7256798, 9.83716952]
),
Set Display Width( 110 )
)
);
oldlastrecord= format(Col Maximum(dt:stored_at), "y/m/d h:m:s");
Newlastrecord= format(today(), "y/m/d h:m:s");
Ndata = Nrows(dt);
ReportMsg = New Window( "Station ---",
//<<MODAL></MODAL>the log generates the following
ReportScript =
V List Box(
V List Box(
OutlineBox(
TableBox(
StringColBox("2024/08/20 9:47:00 AM"),
StringColBox("2024/09/27 12:41:40 AM"),
NumberColBox(Set Format("Best", 7), Array(7)
)))));
일반적으로 표현식으로 새 창을 빌드하고 테이블 스크립트에 추가하는 것이 가장 쉽다고 말하고 싶습니다. 이 방법은 항상 작동하지만 때로는 추가 작업(또는 대부분의 경우)이 필요합니다.
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
oldlastrecord = {"abc"};
newlastrecord = {"ABC"};
Ndata = [123];
report_expr = Eval Expr(
ReportMsg = New Window("Station ---",
//<<MODAL></MODAL>