樣本量探索器:如何以程式設計方式存取我想以程式設計方式存取和編輯樣本大小資源管理器的不同元件/欄位(文字欄位)。我想建立一個自訂腳本,其中我的使用者介面(非常簡單,有一些預設值)將要求使用者輸入類似的數字/選項。此使用者介面應連接到樣本大小探索平台並返回輸出。我怎樣才能做到這一點。以下是我想要存取編輯的突出顯示的元件

基礎資料分析與建模內容組織數據探索與視覺化實驗設計大規模客製化品質與工藝工程分享和交流成果視窗回覆:樣本量探索器:如何以程式設計方式存取您可能能夠從 JMP 安裝位置和資料夾\資源\內建中找到腳本
回覆:樣本量探索器:如何以程式設計方式存取如果您只是想修改這些值,請找到對視窗的引用,然後找到這些數字編輯框的引用。要存取該窗口,您可以使用 Window("windowname") 或嘗試使用從內建 jsl 中找到的引用直接存取該視窗。然後使用“顯示屬性”探索要存取的顯示元素

或者如果內建的 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
回覆:樣本量探索器:如何以程式設計方式存取謝謝!
所有解決方案看起來都很棒並且提供了很大的靈活性。我將嘗試提供的解決方案並提供任何反饋。