Subscribe Bookmark RSS Feed

How to add several ColList in the same windows

romrigal0

New Contributor

Joined:

Aug 1, 2016

Hi,

I'd like to create a window selecting parameters from differents tables. I use journal and scripts for this.

The best I can do for this, is opening a new window for each table.

choix1 =Column Dialog(

  current data table(dt_fil_step_1);

  selection_step_1 = colList( "Paramètres à représenter", maxcol( N Col(dt_fil_step_1)) ),

  current data table(dt_fil_step_2);

  selection_step_2 = colList( "Paramètres à représenter", maxcol( N Col(dt_fil_step_2) ) ),

  current data table(dt_fil_step_3);

  selection_step_3 = colList( "Paramètres à représenter", maxcol( N Col(dt_fil_step_3) ) );

  );

Actually the window should look like this :

12110_pastedImage_3.png

3 REPLIES
txnelson

Super User

Joined:

Jun 22, 2012

To start with, you do not want to use a Column Dialog().  That methodology is being de-emphasized in JMP.  Below is the beginning of a script that will do what you want.  You will need to fill in the code you need to populate the Parameters Selected list, etc. but it does popup the 3 data tables for you to select from.

Names Default To Here( 1 );

dt_fil_step_1 = Open( "$SAMPLE_DATA/big class.jmp" );

dt_fil_step_2 = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

dt_fil_step_3 = Open( "$SAMPLE_DATA/drug measurements.jmp" );

selected list = {};

choix1 = New Window( "test",

       Lineup Box( N Col( 2 ),

              Lineup Box( N Col( 2 ),

                     Current Data Table( dt_fil_step_1 );

                     selection_step_1 = Col List Box( dt_fil_step_1, all );,

                     step_1_BB = Button Box( "Select for Data Table 1" ),

                     Current Data Table( dt_fil_step_2 );

                     selection_step_2 = Col List Box( dt_fil_step_2, all );,

                     step_2_BB = Button Box( "Select for Data Table 2" ),

                     Current Data Table( dt_fil_step_3 );

                     selection_step_3 = Col List Box( dt_fil_step_3, all );,

                     step_3_BB = Button Box( "Select for Data Table 3" )

              ),

              selected list = List Box( selected list, nlines( 22 ) )

       )

);

Jim
Phil_Brown

Super User

Joined:

Mar 20, 2012

The ButtonBoxes would then need their click action defined, for example:

step_1_BB <<Script(selected list << Append( selection_step_1 << GetSelected ));

PDB
romrigal0

New Contributor

Joined:

Aug 1, 2016

Thanks a lot it's running well.