cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. ET on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
ajp
ajp
Level I

How to use multiple selections from a List Box

Hi All,

I am attempting to create multiple control charts from selections made using a list box.  I can select multiple items, but I am not sure how to create a chart for each item chosen.

1 ACCEPTED SOLUTION

Accepted Solutions
ms
Super User (Alumni) ms
Super User (Alumni)

Re: How to use multiple selections from a List Box

The  <<get selected message will return a list of the selected items of a List Box or a Col List Box. Then loop over the list to create the charts.

An example:

dt = Open( "$SAMPLE_DATA/Quality Control/Coating.jmp" );

New Window( "select columns",

    <<modal,

    cl = Col List Box( all, cols = cl << get selected )

);

nw = New Window( "test" );

For( i = 1, i <= N Items( cols ), i++,

    nw << append(

        dt << Control Chart Builder(

            Show Control Panel( 0 ),

            Variables( Subgroup( :Sample ), Y( cols[i] ) ),

            Chart(

                Position( 1 ),

                Points( Statistic( "Average" ) ),

                Limits( Sigma( "Range" ) ),

                Connecting Line( 1 )

            )

        )

    )

);

View solution in original post

2 REPLIES 2
ms
Super User (Alumni) ms
Super User (Alumni)

Re: How to use multiple selections from a List Box

The  <<get selected message will return a list of the selected items of a List Box or a Col List Box. Then loop over the list to create the charts.

An example:

dt = Open( "$SAMPLE_DATA/Quality Control/Coating.jmp" );

New Window( "select columns",

    <<modal,

    cl = Col List Box( all, cols = cl << get selected )

);

nw = New Window( "test" );

For( i = 1, i <= N Items( cols ), i++,

    nw << append(

        dt << Control Chart Builder(

            Show Control Panel( 0 ),

            Variables( Subgroup( :Sample ), Y( cols[i] ) ),

            Chart(

                Position( 1 ),

                Points( Statistic( "Average" ) ),

                Limits( Sigma( "Range" ) ),

                Connecting Line( 1 )

            )

        )

    )

);

ajp
ajp
Level I

Re: How to use multiple selections from a List Box

Thanks!  Much appreciated!

Recommended Articles