BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
Tzu-Chun
Community Trekker

Append "Multiple Response" Column to Col list box

Hi,

I have an example to drag and drop the columns from one col list box to another. Everything works perfectly expect the column with "Multiple Response" modeling type. Did I worte someything wrong in the script, or it is actually a bug in JMP?

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
column(dt,1)<<modeling type("Multiple Response");
New Window( "Col List Box Example",
    Col List Box( all, width( 250 ), maxSelected( 1 ) ),
    fontobj = lb = Col List Box()
);

 

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: Append "Multiple Response" Column to Col list box

You need to define what is allowed in the receiving Col List Box() too

 

Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
Column( dt, 1 ) << modeling type( "Multiple Response" );
New Window( "Col List Box Example",
	Col List Box( all, width( 250 ), maxSelected( 1 ) ),
	fontobj = Col List Box( <<modeling type( {"Any"} ) )
);
Jim
2 REPLIES 2
Highlighted
txnelson
Super User

Re: Append "Multiple Response" Column to Col list box

You need to define what is allowed in the receiving Col List Box() too

 

Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
Column( dt, 1 ) << modeling type( "Multiple Response" );
New Window( "Col List Box Example",
	Col List Box( all, width( 250 ), maxSelected( 1 ) ),
	fontobj = Col List Box( <<modeling type( {"Any"} ) )
);
Jim
Tzu-Chun
Community Trekker

Re: Append "Multiple Response" Column to Col list box

Thanks Jim, it is perfect and you saved me again. Here is a little clarification on the JMP scripting index.

 

image.png

 

Actually, the default "Any" is different from the "Any" we set manually.

The default "Any" = {"Continuous", "Nomial", "Ordinal"}

The manual "Any" ={"Continuous", "Nomial", "Ordinal", "Multiple Response", "Unstructured Text", "Vector", "None", "Row State"}

 

Thanks Jim again for helping me to realize the differences, which made my scripting better. 

0 Kudos