BookmarkSubscribe
Choose Language Hide Translation Bar
jake
Community Trekker

Scripting Column Switcher

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.

0 Kudos
3 REPLIES 3
blackeneth
Community Trekker

Re: Scripting Column Switcher

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".

0 Kudos
jake
Community Trekker

Re: Scripting Column Switcher

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

By The Way:

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

0 Kudos
mikedriscoll
Community Trekker

Re: Scripting Column Switcher

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."

0 Kudos