cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
lala
Level VIII

How to create a new table with JSL: no menu bar, no toolbar, no sidebar

How to create a new table with JSL: no menu bar, no toolbar, no sidebar, no status bar

Thanks!

2024-08-20_19-21-57.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
hogi
Level XII

Re: How to create a new table with JSL: no menu bar, no toolbar, no sidebar

alternatively, you could use

dt = new table("test", INvisible());
new window("test",<< type("Dialog"), db =  dt<< new data box());
db << Close Side Panels( 1 );

to remove the status bar as well:

hogi_1-1724158043106.png

 

View solution in original post

lala
Level VIII

Re: How to create a new table with JSL: no menu bar, no toolbar, no sidebar

OK

nw=new window("",dt<<Get As Report);

View solution in original post

6 REPLIES 6
hogi
Level XII

Re: How to create a new table with JSL: no menu bar, no toolbar, no sidebar

Hi @lala ,
this code will generate a data table view without the surrounding menus:

dt = new table("test", INvisible());
new window("test",show toolbars(0), show menu(0), db =  dt<< new data box());
db << Close Side Panels( 1 );

hogi_0-1724157766423.png

 

hogi
Level XII

Re: How to create a new table with JSL: no menu bar, no toolbar, no sidebar

alternatively, you could use

dt = new table("test", INvisible());
new window("test",<< type("Dialog"), db =  dt<< new data box());
db << Close Side Panels( 1 );

to remove the status bar as well:

hogi_1-1724158043106.png

 

lala
Level VIII

Re: How to create a new table with JSL: no menu bar, no toolbar, no sidebar

Can it go any further?

Thanks!

Looks like this code doesn't work?

 

Wait(0);window=Get Window(dt);sp=window<<Find(SplitterBox(1));dt<<Set Row ID Width(15);

2024-08-20_21-10-59.png

jthi
Super User

Re: How to create a new table with JSL: no menu bar, no toolbar, no sidebar

What are you trying to achieve? Just an empty grid? Does it have to be a data table? You could create Table Box for example

Names Default To Here(1);

nw = new windoW("", show toolbars(0), show menu(0),
	tb = Table Box(
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""}),
		String Col Edit Box("", {""})
	)
);

scebs = nw << XPath("//StringColEditBox");
scebs << Set Width(100);

For(i = 1, i <= 20, i++,
	Eval(EvalExpr(
		tb << Add Row(Expr(Repeat({""}, N Items(scebs))));
	));
);

Write();

You can also somewhat hide those

Names Default To Here(1);
dt = New Table("", Invisible);
nw = New Window("School", show toolbars(0), show menu(0),
	H List Box(
		dg = dt << New Data Box()
	)
);
dg << close side panels(1);
dg << Set Header Height(1);
dg << close summary panels(1);
dg << Set Row ID Width(15);

and you might be able to further "minimize" (rather hide) using spanning

-Jarmo
lala
Level VIII

Re: How to create a new table with JSL: no menu bar, no toolbar, no sidebar

I need to create tables, expressions, and store images in each cell through a loop

Thanks!

na = {"B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S"};
gs = 5;
dt = New Table( "K", Add Rows( gs ), New Column( "A", Expression ) );
For( i = 1, i <= 8, i++,
	New Column( na[i], Expression )
);
dt << Set Window Size( 9 * 370, 800 );
dt << Move Window( 0, 0 );
Wait( 0 );
window = Get Window( dt );
sp = window << Find( SplitterBox( 1 ) );
sp << Set Width( 3 );
dt << Set Row ID Width( 15 );
For( i = 1, i <= N Col( dt ), i++,
	Column( i ) << Set Display Width( 370 )
);
dt << Set Cell Height( 250 );

2024-08-21_09-01-29.png

lala
Level VIII

Re: How to create a new table with JSL: no menu bar, no toolbar, no sidebar

OK

nw=new window("",dt<<Get As Report);