14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 15 Creating and Sharing Applications 513<br />

Application Builder<br />

Create a New Blank Application<br />

1. Select File > New > Application (or File > New > New Application on Macintosh).<br />

The Application Builder window appears.<br />

2. Select File > Save and save the file as a JMP Source File. The extension is .jmpappsource.<br />

Manage Modules<br />

When you create a new application, a Module tab appears by default. You can add objects to this module to<br />

create interface items. To create additional windows for your application, you can add and customize new<br />

modules.<br />

Add Objects to a Module<br />

Follow these steps to add objects to a module:<br />

1. In the Sources pane, select the type of object that you want to add.<br />

2. Drag the object onto the Module1 tab (or double-click the object).<br />

3. Select the object and update its properties in the Properties pane. See “Customize Object Properties” on<br />

page 516 for details.<br />

4. Add scripts to scriptable objects. See “Write Scripts” on page 518 for details.<br />

5. (Optional) To prevent a module from launching when you run the application, select the module in the<br />

Objects pane and deselect Auto Launch. (You might do this while testing one out of multiple modules.)<br />

6. From the Application Builder red triangle menu, select Run Application to test your application.<br />

Your application appears.<br />

Create a Module<br />

Select Format > Add Module.<br />

Tip: When you run an application, the window title is the name of the data table, if applicable, followed by<br />

a hyphen and the application name. Change the title by modifying text in the module’s Title object<br />

property.<br />

Rename a Module<br />

Change the Variable Name in the object properties.<br />

Delete a Module<br />

Select Format > Delete Module.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!