cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

JSL Cookbook

Choose Language Hide Translation Bar
Adding a Custom Message to all JMP Windows
Jed_Campbell_1-1780412837220.png

 


 

 
Here's a simple way to add a message to all JMP Windows. This could be customized to determine which type of window, then display a different message for each window type. This could also be used in a custom Add-In that could be installed via a custom JMP installation package so that it always runs when JMP opens.
 
This might be useful, for example, wherever a notification or message needs to be shown on each data table, reminding users of proprietary data or other regulations.

Ingredients:
  • Platforms: n/a
  • Objects: Can treat all windows as objects
  • JSL Features: Set Global Window Handler( ), Clear Global Window Handler ( )
Sample Data Tables — n/a
Steps:
  1. The global window handler runs a specified function each time a new JMP window is created. The example JSL below appends a simple text message to each window.
    1. Names Default To Here( 1 );
      Set Global Window Handler(
      	Function( {window},
      		window << append (text box ("Sample Required Notification"));
      		
      	)
      );
  2. If desired, the handler could determine which type of window, then customize the message location or type based on the window type. This could be put into an add-in that runs each time JMP opens, so the behavior could be made automatic.
  3. To remove the function, use the JSL below:
    1. Clear Global Window Handler();

Recommended Articles