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
terapin
Level VI

How to Call Script From Button Box?

I'm writing some code that will create a new window that contains several Button Boxes. Each Button Box will execute some jsl code located in some directory. I've tried many different ways to call these jsl files but can't get them to work. Any suggestions on how to accomplish this would be appreciated.

regress = "C:\script_a.jsl";
ov1 = "C:\script_b.jsl";

dlg1 = New Window ( "Title",
Lineup Box( Spacing ( 10, 10 ),
Button Box ( " Plot Data ", ov1 ),
Button Box ( " Regress Selected Data ", regress ),
Button Box ( " Close Dialog ", dlg1 << Close Window ),
)
);

1 ACCEPTED SOLUTION

Accepted Solutions
pmroz
Super User

Re: How Call Script From Button Box?

You need to include the file and it will work.

View solution in original post

2 REPLIES 2
pmroz
Super User

Re: How Call Script From Button Box?

You need to include the file and it will work.

terapin
Level VI

Re: How Call Script From Button Box?

Thanks for the solution. I've used the include command before but got hung up on the syntax the JMP scripting guide listed for using a Button Box and didn't even think about the include command.

Recommended Articles