The following example opens the Big Class.jmp sample data table (making it the current data table), and then specifies row 2 in the weight column. A value of 123 is returned in the log, which is the weight for Louise in row 2.
New Table and Open are commands to create objects that do not exist yet. Once created, you send them messages requesting changes. To close such objects, you must close the objects’ container, because the objects cannot delete themselves.
The following example creates a table and assigns the data table reference to the dt variable. New Column messages are sent to the data table reference. To delete one of those columns, the Delete Columns message is sent to the data table reference, not to the column itself.
1.
Select Help > Scripting Index.
2.
Set the menu to show All Categories.
3.
Select Data Table in the list.
You can also use the Show Properties command. This is a good approach if you want to print or copy the list of messages. The Show Properties command lists the messages that you can send to a data table in the Log window. Show Properties is a command that takes any scriptable object (such as a data table or column) as its argument. To show properties for a data table:
[Subtable] refers to a set of JMP menu commands. For example, the Tables subtable represents the JMP Tables menu, and the indented messages in this subtable correspond to commands in the Tables menu. Many messages include a short description.
Messages labeled as [Action] all result in some action being taken. Some messages are available for [Scripting Only]. Some messages take a Boolean argument, labeled as [Boolean].
The platforms in the Analyze and Graph menus appear in the properties list because you can send a platform name as a message to a data table. This launches the platform for the data table through the usual launch window. For more information about writing platform-specific scripts, see the Scripting Platforms section.
Note: In addition to data tables, Show Properties also works with platforms and display boxes.