cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
DMR
DMR
Level V

Closing data tables automatically when a window is closed

Hi,

I have a script which produces both a data table and a window which contains some charts derived from that data table.  I'd like to arrange for the data table to be closed if the user closes the chart window.  How do I do that please?  I've tried using the "<< on close" property of the window, but am evidently doing something wrong as it appears to be having no effect.

(Obviously I could add a button within the window to close the window that way and tell the user to click on it, but there's no guarantee that they'll actually do that: some users will simply close the window by means of the "X" button at the top-right.)

Many thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Level X

Re: Closing data tables automatically when a window is closed

From memory you need the 'OnClose()' message immediately after the window title. It's really quite useful for housekeeping (like closing invisible tables) and other things.

View solution in original post

2 REPLIES 2
ian_jmp
Level X

Re: Closing data tables automatically when a window is closed

From memory you need the 'OnClose()' message immediately after the window title. It's really quite useful for housekeeping (like closing invisible tables) and other things.

DMR
DMR
Level V

Re: Closing data tables automatically when a window is closed

Perfect!  Many thanks Ian.