Choose Language Hide Translation Bar
Highlighted
RB
RB
Level I

Grab a column switcher box value

Hello friends,

Is there any way to grab the value of user selection in column switcher box?

 

Column switcher box code is highlited in JSL below. I have also added an image to this message in order to visualize the problem.

 

M2V1_dt << Bivariate(

     Y( :VALUE ),

     X( :Time_1 ),

     Fit Where(

           :SITE == "A",

           Fit Spline( 0.1, Standardized, {Line Color( {213, 72, 87} )} )

     ),

     Fit Where(

           :SITE == "B",

           Fit Spline( 0.1, Standardized, {Line Color( {64, 111, 223} )} )

     ),

     Column Switcher( VALUE, {VALUE, VAL2} ),

     Column Switcher( Time_1, {Time_1, Time_2} ),

     SendToReport(

           Dispatch(

                {},

                "2",

                ScaleBox,

                {Add Ref Line( 18, Dashed, "Dark Blue", "+0.5S", 2 ),

                Add Ref Line( 9, Dashed, "Dark Blue", "-0.5S", 2 )}

           ),

           Dispatch(

                {},

                "Bivar Plot",

                FrameBox,

                {Frame Size( 533, 205 ), Row Legend(

                      SITE,

                      Color( 1 ),

                      Color Theme( "JMP Default" ),

                      Marker( 1 ),

                      Marker Theme( "Standard" ),

                      Continuous Scale( 0 ),

                      Reverse Scale( 0 ),

                      Excluded Rows( 0 )

                )}

           ),

           Dispatch(

                {},

                "Smoothing Spline Fit",

                OutlineBox,

                {Close( 1 ), Set Title( "" )}

           ),

           Dispatch(

                {},

                "Smoothing Spline Fit",

                OutlineBox,

                {Close( 1 ), Set Title( "" )}

           )

     )

);

Thanks,

RB.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: Grab a column switcher box value

All of the messages that you can query the Column Switcher are documented in the Scripting Index.

     Help==>Scripting Index==>Column Switcher

Below is the example from the Scripting Index illustrating the Get Current message

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Car Poll.jmp" );
obj = dt <<
Contingency( Y( :size ), X( :marital status ) );
ColumnSwitcherObject = obj <<
Column Switcher(
	:marital status,
	{:sex, :country, :marital status}
);
ColumnSwitcherObject << Set Current( "country" );
ColumnSwitcherObject << Get Current/*country*/ ;
Jim

View solution in original post

1 REPLY 1
Highlighted
txnelson
Super User

Re: Grab a column switcher box value

All of the messages that you can query the Column Switcher are documented in the Scripting Index.

     Help==>Scripting Index==>Column Switcher

Below is the example from the Scripting Index illustrating the Get Current message

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Car Poll.jmp" );
obj = dt <<
Contingency( Y( :size ), X( :marital status ) );
ColumnSwitcherObject = obj <<
Column Switcher(
	:marital status,
	{:sex, :country, :marital status}
);
ColumnSwitcherObject << Set Current( "country" );
ColumnSwitcherObject << Get Current/*country*/ ;
Jim

View solution in original post

Article Labels

    There are no labels assigned to this post.