cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
lala
Level VIII

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

这个脚本能运行。

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

需要如何修改代码 ?

谢谢大家!

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 VIII

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

OK、Thanks!

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