cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

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

Vector Columns?

How Can I create a pre-filled Col List Box with all the Vector Columns of the current data table?

Like << Modeling Type({"Continuous"}), but for modeling type Vector.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
New Window( "Vector columns", 
Col List Box(All, width( 250 ),<< Modeling Type({"Continuous"}) ),
Col List Box(All, width( 250 ),<< Modeling Type({"Vector"} ) ));


Seems to be an issue of All - which doesn't pick All  columns .
 is there a command All_even_the_Expressions ?

2 REPLIES 2
jthi
Super User

Re: Vector Columns?

Loop over the list of columns, get vector modeling types and use "" with col list box

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class Families.jmp");

nw = New Window("Vector columns",
	clb = Col List Box(dt, "", width(250), <<Modeling Type({"Vector"}))
);

vcols = Filter Each({colname}, dt << Get Column Names("String"), Column(dt, colname) << get modeling type == "Vector");
clb << Set Items(vcols);
-Jarmo
hogi
Level XIII

Re: Vector Columns?

@jthi , many thanks for the nice workaround :)

@JMP: why ?!

Recommended Articles