Subscribe Bookmark RSS Feed

Scripting Column Switcher

jake

Community Trekker

Joined:

Aug 29, 2012

Is there a way to script "Column Switcher"?  When I set it up for a chart and save the script, the column switcher is not saved as part of the script.

3 REPLIES
blackeneth

Community Trekker

Joined:

Mar 6, 2013

Here is an example of how to script it:

// Begin Script;

Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Fitness.jmp" ); obj = oneway(

      Y( :Weight ),

      X( :Sex ),

      Column Switcher( :Weight,

                       {:Age,:Oxy,:Weight} ));

//End Script;


You can also find information on the JSL syntax by searching the "Scripting Index" for "column switcher".

jake

Community Trekker

Joined:

Aug 29, 2012

Perfect.  That's exactly what I need.  Thanks a lot.

By The Way:

I couldn't find the "column switcher" in the scripting index.

mikedriscoll

Community Trekker

Joined:

Jun 23, 2011

You need to search on "Objects" or "All Categories".   The scripting index won't find it if you're searching under "functions" or "display box."