你好,
我已经阅读了文档和 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”开头的那个是正确的。 我有一种感觉,对于一个非常简单的任务来说,这需要大惊小怪。
有没有更优雅、更直接的引用方式?
谢谢