cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm 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