Subscribe Bookmark RSS Feed

How to Call Script From Button Box?

terapin

Community Trekker

Joined:

Jun 23, 2011

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

Joined:

Jun 23, 2011

Solution
You need to include the file and it will work.

2 REPLIES
pmroz

Super User

Joined:

Jun 23, 2011

Solution
You need to include the file and it will work.

terapin

Community Trekker

Joined:

Jun 23, 2011

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.