If you want to receive a message when a data table changes, use the Subscribe message. For example, you might want a message sent to the log when columns are added or deleted.
delRowsFn = Function( {a, b, rows},
dtname = ( a << Get Name());
addRowsFn = Function( {a, b, insert},
dtname = ( a << Get Name() );
Subscribe to Data Table List() subscribes to a list of data tables to be notified when a new data table has been added or closed. The following example shows how to subscribe and unsubscribe:
Wait( 2 );
Close( dt );
If Subscribe is called with an empty application name, JMP generates a unique name that is returned to the caller. In the following example, appname2 is subscribed to the data table as a client.
appname2 = dt << Subscribe(
dtname = ( dtab << Get Name() );
dt << Unsubscribe( appname1, On Close );