- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
prev sib - how?
I want to get in this display tree from the Axis Box to the TextEditBox:
but with the below code, I get stuck at step 2: going to the previous sibling:
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt << Graph Builder(
Variables( X( :height ), Y( :weight )),
Elements( Points( X, Y) )
);
show(start= report(gb)["Graph Builder",AxisBox(1)]);
show(step1 = start << parent());
show(step2 = step1 << Prev Sib()); // -> empty. doesn't work
show(step3 = step2 << child());
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: prev sib - how?
The Properties Widow does not appear to show all levels of the hierarchy. The Show Tree Structure window has an additional layer that needs to be traversed to get to the TextBox() you are looking for
I was able to get to the TextBox() with the below modifications to your illistration
show(start= report(gb)["Graph Builder",AxisBox(1)]);
show(step1 = start << parent());
show(step2 = step1 << parent());
show(step3 = step2 << Prev Sib());
show(step4 = step3 << child());
show(step5 = step4 << child());
which has the below results
start = Report(gb)["Graph Builder",AxisBox(1)] = DisplayBox[AxisBox]; step1 = start << parent() = DisplayBox[GraphBuilderAxisBox]; step2 = step1 << parent() = DisplayBox[GraphBuilderComponentBox]; step3 = step2 << Prev Sib() = DisplayBox[GraphBuilderComponentBox]; step4 = step3 << child() = DisplayBox[GraphBuilderTitleBox]; step5 = step4 << child() = DisplayBox[TextEditBox];
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: prev sib - how?
The Properties Widow does not appear to show all levels of the hierarchy. The Show Tree Structure window has an additional layer that needs to be traversed to get to the TextBox() you are looking for
I was able to get to the TextBox() with the below modifications to your illistration
show(start= report(gb)["Graph Builder",AxisBox(1)]);
show(step1 = start << parent());
show(step2 = step1 << parent());
show(step3 = step2 << Prev Sib());
show(step4 = step3 << child());
show(step5 = step4 << child());
which has the below results
start = Report(gb)["Graph Builder",AxisBox(1)] = DisplayBox[AxisBox]; step1 = start << parent() = DisplayBox[GraphBuilderAxisBox]; step2 = step1 << parent() = DisplayBox[GraphBuilderComponentBox]; step3 = step2 << Prev Sib() = DisplayBox[GraphBuilderComponentBox]; step4 = step3 << child() = DisplayBox[GraphBuilderTitleBox]; step5 = step4 << child() = DisplayBox[TextEditBox];
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: prev sib - how?
Thank you, Jim