Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
Sburel
Level III

How to populate a ColListBox with a list specific columns

Hello,

 

I'm trying to build a simple UI in which the user would have the choice between a few specific columns in order to launch a platform. The data table itself has many more columns irrelevant to the platform.

The choice of columns  to populate the ColListBox is known in advance and can be hard coded into a list. 

My issue is with finding the correct syntax to use to only display those few columns.

 

Any suggestions would be appreciated.

 

Happy memorial day

 

Sebastien

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
David_Burnham
Super User

Re: How to populate a ColListBox with a list specific columns

You can use the append message

names default to here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
lstCols = {"height","weight"};
NewWindow("Test",
	clb = ColListBox(<<append(lstCols))
);
-Dave

View solution in original post

2 REPLIES 2
Highlighted
David_Burnham
Super User

Re: How to populate a ColListBox with a list specific columns

You can use the append message

names default to here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
lstCols = {"height","weight"};
NewWindow("Test",
	clb = ColListBox(<<append(lstCols))
);
-Dave

View solution in original post

Highlighted
Sburel
Level III

Re: How to populate a ColListBox with a list specific columns

Worked like a charm, Thanks a lot
Article Labels

    There are no labels assigned to this post.