H List Box
H List Box using New Window
Example 1
Summary: Creates a new window with a Bivariate script, which runs on a data table and saves the report with embedded data.
Code:
dt = Open("data_table.jmp");
w = New Window( "Neg filter", H List Box( Text Box( "Bivariate" ), biv = dt << Run Script( "Bivariate" ) ) );
w << Save Window Report( "$TEMP/image.jrp", embed data( 0 ) );
w << Close Window;
Code Explanation:
- Open data table.
- Create new window.
- Add text box to window.
- Run Bivariate script on data table.
- Save window report.
- Embed data in report.
- Close window.
Example 2
Summary: Creates a new window with a bubble plot region, sets background color, and saves the report to a temporary file.
Code:
dt = Open( "$SAMPLE_DATA/PopAgeGroup.jmp", private );
win = New Window( "private data", H List Box( bp = dt << Run Script( "Bubble Plot Region" ) ) );
Report( bp )[FrameBox( 1 )] << Set Background Color( "Light Yellow" );
win << Save Window Report( "$TEMP/privatetable.jrp", embed data( 0 ) );
win << Close Window;
Code Explanation:
- Open data table.
- Create new window.
- Run bubble plot script.
- Change background color.
- Save window report.
- Close window.
Example 3
Summary: Creates and customizes a bubble plot report, including changing the frame background color and saving the window as a JMP report.
Code:
dt = Open( "$SAMPLE_DATA/PopAgeGroup.jmp", private );
win = New Window( "private data", H List Box( bp = dt << Run Script( "Bubble Plot Region" ) ) );
Report( bp )[FrameBox( 1 )] << Set Background Color( "Light Yellow" );
win << Save Window Report( "$TEMP/privatetable.jrp", embed data( 0 ) );
win << Close Window;
Open( "$TEMP/privatetable.jrp" );
Code Explanation:
- Open data table.
- Create new window.
- Run bubble plot script.
- Change frame background color.
- Save window report.
- Close window.
- Open saved report.