cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
lala
Level IX

这个脚本如何修改才能在工具栏的按键形式运行?

这个脚本能运行。

但将它放在工具栏的按键形式、却不能工作。

需要如何修改代码 ?

谢谢大家!

2022-03-26_15-30-17.png2022-03-26_15-31-52.png

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: 这个脚本如何修改才能在工具栏的按键形式运行?

Seems to be working fine for me (using JMP16.2 Pro on Windows 10).

dt = Current Data Table();
dt << Select Where(:age == 12);
d3 = dt << Subset(Output table("a12", Selected Rows(1), Selected Columns(0)));

jthi_0-1648280947050.png

jthi_1-1648280965780.png

You seem to be missing : from the column name, maybe Toolbar is more strict on the syntax? At least if I remove that from the toolbar script I will get this error:

jthi_2-1648281050586.png

but it will work fine from script editor (in my opinion it shouldn't)

 

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: 这个脚本如何修改才能在工具栏的按键形式运行?

Seems to be working fine for me (using JMP16.2 Pro on Windows 10).

dt = Current Data Table();
dt << Select Where(:age == 12);
d3 = dt << Subset(Output table("a12", Selected Rows(1), Selected Columns(0)));

jthi_0-1648280947050.png

jthi_1-1648280965780.png

You seem to be missing : from the column name, maybe Toolbar is more strict on the syntax? At least if I remove that from the toolbar script I will get this error:

jthi_2-1648281050586.png

but it will work fine from script editor (in my opinion it shouldn't)

 

-Jarmo
lala
Level IX

Re: 这个脚本如何修改才能在工具栏的按键形式运行?

OK、Thanks!

2022-03-26_15-56-51.png

Recommended Articles