This version of the Help is no longer updated. See JMP.com/help for the latest version.

.
Scripting Guide > Data Tables > Columns > Add a Column Switcher
Publication date: 07/30/2020

Add a Column Switcher

Use JSL to add a Column Switcher panel to a report window. The Column Switcher lets you quickly analyze different variables without having to re-create your analysis.

obj << Column Switcher(<default_col>(<col1>, <col2>, ...);
// add a Column Switcher to the report
 
obj << Remove Column Switcher();
// remove the Column Switcher from a report

For example, add the Column Switcher to a Contingency report for the Car Poll.jmp data as follows:

dt = Open( "$SAMPLE_DATA/Car Poll.jmp" );
obj = Contingency(
	Y( :size ),
	X( :marital status )
);
ColumnSwitcherObject = obj <<
Column Switcher(
	:marital status,
	{:sex, :country, :marital status}
);
// number of pixels for the switcher width
ColumnSwitcherObject << Set Size( 200 );
 

// number of columns to display in the switcher

ColumnSwitcherObject << Set NLines( 6 );

For more information about the Column Switcher, see Column Switcher in Using JMP.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).