具有复选框行为的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>