cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

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