Why is this code selecting the top level outline box and not the requested one?I was playing along with a Discovery Summit video on interacting with Report layer objects and came to a crashing halt on my very first example I tired.
Here I am trying to select the Correlation outline box but this ends up selecting the entire Multivariate analysis. I've tried a couple of different approaches and can't get it work out so humbling asking for some input!
dt=Open( "$SAMPLE_DATA/Big Class.jmp" );
dt<<MULTIVARIATE></MULTIVARIATE>
Want this:

Getting this:

Thanks!
Steve
Automation and ScriptingSharing and Communicating ResultsRe: Why is this code selecting the top level outline box and not the requested one?Great Video, thanks for the link!
Re: Why is this code selecting the top level outline box and not the requested one?Oh I was so close!! Thanks for the assist @hogi , that was going to drive me crazy.....
Back to the video now
I Can See It. How Do I Get It? - JMP User Community
Steve
Re: Why is this code selecting the top level outline box and not the requested one?You got it right, but your attempt to double-check was misleading : )
To select the outline boxes which are returned by the Xpath command, use:
(obj<< XPath("//OutlineBox[text()='Correlations']"))<<SELECT></SELECT>
Without the additional brackets, you will send the select command to obj.
like in
Data Table( "Height" ) << Clear Select << Select Rows( [4] ) << Delete Rows;