具有復選框行為的JMP15模態窗口好的,所以我的代碼在JMP 14中可以正常工作,它像這樣:
ithead = "EAR Configuration for Factor Cross Plots";
itprompt = "Select to Include EAR warning on Factor Cross Plots.";
itwarn =
"WARNING – This document contains technical data classified under the Commerce Control List and assigned Export Control Classification Number (ECCN) 0A606.x and 0E606. ";
//determine if itar/ear warning is required
itwin = New Window( ithead,
<<MODAL></MODAL>
我看到現在我的代碼中基本上所有試圖關閉窗口後輸出的實例在JMP15中都不再起作用,您可以使用On Close或on Validate來使大多數事情正常工作。這對我來說適用於文本框和“關閉”。在這種情況下,我嘗試:
ithead = "EAR Configuration for Factor Cross Plots";
itprompt = "Select to Include EAR warning on Factor Cross Plots.";
itwarn =
"WARNING – This document contains technical data classified under the Commerce Control List and assigned Export Control Classification Number (ECCN) 0A606.x and 0E606.";
//determine if itar/ear warning is required
itwin = New Window( ithead,
<<MODAL></MODAL>
如果我使用On Validate,則會出現以下錯誤:
Object 'EvalContextBox' does not recognize the message 'On Validate'; perhaps you mean one of these: <<Inval Size <<Inval <<Journal <<Copy Data <<On Close <<Journal Window <<Horizontal Alignment <<Enabled.
如果我使用“關閉時”而不選擇複選框,則無法關閉模式窗口。選擇“確定”不會執行任何操作,並且角落中的X也不會關閉模態窗口。如果我選中該複選框,它將返回1並且可以正常工作。如果我選中該複選框然後取消選擇,則該窗口不會關閉。如何獲得0值以返回並能夠關閉窗口?
腳本編寫回复:具有復選框行為的JMP15模態窗口嘗試<<返回結果消息獲取對話框結果列表。
itwin = New Window( ithead,
<<MODAL></MODAL>
日誌(選中復選框時):
itwin = New Window( ithead,
<<Modal,
<<Return Result,
H List Box( check1 = Check Box( itprompt, ), H List Box( "" ) ),
);
show(itwin);
/*:
itwin = {check1 = {1}, Button(1)};
回复:帶有復選框行為的 JMP15 模態窗口我認為您最好的解決方案是將設置變量 itar 的操作放置在選中或取消選中復選框時執行的腳本中
ithead = "EAR Configuration for Factor Cross Plots";
itprompt = "Select to Include EAR warning on Factor Cross Plots.";
itwarn =
"WARNING – This document contains technical data classified under the Commerce Control List and assigned Export Control Classification Number (ECCN) 0A606.x and 0E606.";
//determine if itar/ear warning is required
itar = .;
itwin = New Window( ithead,
<<MODAL></MODAL>