cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
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.