日期日曆盒我正在嘗試製作一個運行趨勢的 jmp 應用程式。 我有兩個帶有“從”和“到”日期的日曆框。 當我單擊“運行腳本”按鈕時,我希望能夠使用日曆框中定義的日期來選擇趨勢中的日期。 如何從日曆框中獲取值以在腳本中使用?

進階統計建模自動化和腳本編寫內容組織數據探索和視覺化品質和工藝工程分享和交流成果回覆:日期日曆框謝謝@pmroz和@Craige_Hales這非常有幫助!現在工作順利,謝謝你們兩位。
回覆:日期日曆框你可能會喜歡使用日曆框選擇日期範圍
Linked calendar boxesLinked calendar boxes連結的日曆框
回覆:日期日曆框沒有意識到您正在使用日曆框。嘗試這個:
nw = new window("Test Dates", << modal(),
text box("Monitoring & Trending"),
hlistbox(
panelbox("From Date",
cal_start = calendar box(<< Show Time( 0 )),
),
panelbox("To Date",
cal_end = calendar box(<< Show Time( 0 )),
),
),
ok_button = button box("OK",
startdate = cal_start << get date;
enddate = cal_end << get date;
)
);
print(format(startdate, "ddMonyyyy" ), format(enddate, "ddMonyyyy" ));
回覆:日期日曆框試試這樣的事情:
nw = new window("Test Dates", << modal(),
Lineup Box( N Col( 2 ),
text box("Enter start date: "),
start_neb = number edit box(today(), << Set Format( Format( "ddMonyyyy", 10))),
text box("Enter end date: "),
end_neb = number edit box(today(), << Set Format( Format( "ddMonyyyy", 10))),
),
ok_button = button box("OK",
startdate = start_neb << get;
enddate = end_neb << get;
)
);
print(format(startdate, "ddMonyyyy" ), format(enddate, "ddMonyyyy" ));

從日誌中:
"11Apr2022"
"24Apr2022"
回覆:日期日曆框這是我嘗試過的,但似乎不起作用
NumberEdit1 << set Function( Function( {this}, sd = NumberEdit1 << Get Date() ) );
NumberEdit2 << set Function( Function( {this}, ed = NumberEdit2 << Get Date() ) );
Show( sd );
startdate = Format( sd, "ddMonyyyy" );
Show( ed );
enddate = Format( ed, "ddMonyyyy" );