Hi,
I've read the documentation and RTFF-ed but could not find a solution for what I think is a pretty trivial issue. Or maybe I've completely missed it and it's something completely obvious.
Let's say I have a report of the following tree structure of outline boxes (in reality e.g. a Fit Least Squares report with multiple responses with more complex structure with additional layers, but this manually created example shows the issue just the same):
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" )
)
);I want to access the "group" profiler (the last one).
However, the reference below returns returns the first one (Prediction Profiler of Response A), I assume because it's the first one since they are numbered in order of appearance without consideration of the hierarchy level.
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 )My current solution is to loop through all of them and check their parent names. The one whose parent name does not start with "Response" is the right one. I have a feeling that this a whole lot of fuss for a very simple task.
Is there a more elegant, direct way of referencing?
Thanks