你好,
我已經閱讀了文檔和 RTFF-ed,但找不到解決我認為非常微不足道的問題的方法。 或者,也許我完全錯過了它,而且它是非常明顯的東西。
假設我有一份關於以下輪廓框樹結構的報告(實際上,例如具有多個響應的最小二乘擬合報告,具有更複雜的結構和附加層,但這個手動創建的示例顯示了同樣的問題):
New Window("Report",
Outline Box("Fit Group",
Outline Box( "Response A",
Outline Box("Prediction Profiler")
),
Outline Box( "Response B",
Outline Box("Prediction Profiler")
),
Outline Box( "Response C",
Outline Box("Prediction Profiler")
),
Outline Box( "Prediction Profiler" )
)
);我想訪問“組”分析器(最後一個)。
但是,下面的參考返回返回第一個(響應 A 的預測刻畫器),我假設是因為它是第一個,因為它們是按出現順序編號的,而不考慮層次結構級別。
prf = Current Report()[Outline Box("Fit Group")][Outline Box("Prediction Profiler")];<BR /><BR />// check the parent - confirmation that it returns the "Response A" profiler <BR />Show( (prf << parent) << get title )我目前的解決方案是遍歷所有這些並檢查它們的父名稱。 父名稱不以“Response”開頭的那個是正確的。 我有一種感覺,對於一個非常簡單的任務來說,這需要大驚小怪。
有沒有更優雅、更直接的引用方式?
謝謝