Subscribe Bookmark RSS Feed

Append "Multiple Response" Column to Col list box

Tzu-Chun

Occasional Contributor

Joined:

Oct 25, 2017

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()
);

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson

Super User

Joined:

Jun 22, 2012

Solution

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
txnelson

Super User

Joined:

Jun 22, 2012

Solution

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

Occasional Contributor

Joined:

Oct 25, 2017

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.