cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

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