For example, I have made a report from a table as shown below:
op1 = tbl1 << Get As Report;
But the default display for the report table is too small (yes, I can use the scroll bars to move around). Is there any way in JSL so that I can re-size or maximize the display window for the report? I tried the followings, but none works :-(.
A report Table Box cannot be directly resized (you can resize columns, see this post), though you probably just need to turn off the scrollbars so that the tablebox is as big as the content. I'll illustrate here:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
jmp_report = New Window( "Big Class",
Text Box( "Big Class" ),
H List Box( Outline Box( "Big Class", tbl = dt << Get As Report ) ),
tbl[table box(1)] << Set Scrollable(0,0);
yes, it is helpful to turn off the scrollbars. But my data table is too long (column sizes are fine), so I still like to keep the scrollbars, while just to re-size the report fram size to "longer". I can do it manully on the report display by just drag the bottom corner and enlarge the report data size. It should be a way in JSL to do it.