样本量探索器:如何以编程方式访问我想以编程方式访问和编辑样本大小探索器的不同组件/字段(文本字段)。我想构建一个自定义脚本,其中我的用户界面(非常简单,有一些默认值)将要求用户输入类似的数字/选项。该用户界面应连接到样本大小探索器平台并返回输出。我该怎么做。下面突出显示了我想要访问以进行编辑的组件

基础数据分析与建模内容组织数据探索与可视化实验设计大规模定制质量与工艺工程分享和交流结果视窗回复:样本量探索器:如何以编程方式访问您可能能够从 JMP 安装位置和文件夹\资源\内置中找到脚本
回复:样本量探索器:如何以编程方式访问如果您只是希望修改这些值,请找到对窗口的引用,然后找到对这些数字编辑框的引用。要访问窗口,您可以使用 Window("windowname"),或者尝试使用您可能从内置 jsl 中找到的引用直接访问窗口。然后使用 Show Properties 探索您希望访问的显示元素

或者如果内置的 jsl 公开了对这些的引用,您可以利用它们。
回复:样本量探索器:如何以编程方式访问如果您不知道如何构建脚本,此示例将提供一些有关如何访问值的建议(可能有更好的方法,您可以从内置脚本中找到)
Names Default To Here(1);
path = "$BUILTIN_SCRIPTS/Power_Two_Independent_Sample_Means.jsl";
Include(path);
show(win << Get Window Title); // take a look at Power_Two_Independent_Sample_Means.jsl and you see this reference is there
// Using indexing from Show Properties
// Window("Power Explorer for Two Independent Sample Means")["Power Explorer for Two Independent Sample Means","Explorer Settings",NumberEditBox(1)]
aneb1 = win[Outline Box("Explorer Settings"), NumberEditBox(1)];
// Using references
// _alphanb gets lost somewhere, so access through alphatb
alpha_neb2 = (alphatb << sib);
// Using XPath
alpha_neb = win << XPath("//TextBox[text() ='Alpha']/following-sibling::NumberEditBox");
alpha_neb3 = alpha_neb[1]; // XPath returns a list
// Setting the values
alpha_neb2 << Set(0.10, run script(1)); // You most likely want to include Run Script(1) to most value changes to avoid messing anything up
回复:样本量探索器:如何以编程方式访问谢谢!
所有解决方案看起来都很棒,并且提供了很大的灵活性。我会尝试提供的解决方案并提供反馈(如果有)。