该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


1.
Select Help > Sample Data Library and open SAS Offices.jmp.
2.
Right-click the City column and select Column Info.
thisTable is the data table object.
thisColumn is the column object.
iRow is the index of the row in thisColumn.
Web opens the URL in the default browser.
The @ sign in "https://www.google.com/maps/@" is specific to the Google API for maps. Google expects coordinates to follow it.
||Char(thisTable:latitude[irow]) concatenates the latitude defined in the Latitude column.
||","||Char(thisTable:longitude[irow])|| concatenates the longitude defined in the Longitude column.
The Google API uses ",12z" to specify a zoom factor.
See JMP Colors for a diagram of JMP colors.
New Table( "Wildlife",
New Column( "Column 1", Character, "Nominal",
Set Property( "Event Handler",
Click( JSL Quote(Function( {thisTable, thisColumn, iRow}, Open( Char(
Tip( JSL Quote(Function( {thisTable, thisColumn, iRow}, "Open " || Char(
thisTable:thisColumn[ iRow ] ) || " in a media player."; );) ),
Color( JSL Quote(Function( {thisTable, thisColumn, iRow}, 5; );) )
The SAS Country Office and Photo columns in SAS Offices.jmp also contain examples of Event Handler scripts.