Hello,
The MinItems(n) option for Col List Box will allow you to specify a minimum number of columns for the list. See the Col List Box entry in the JSL Syntax Reference in Appendix A of the JMP Scripting Guide for futher details. You can view this PDF by clicking on the Help menu and select Books > Scripting Guide.
Below is an excerpt from Sample 46984 to demonstrate:
Panel Box( "Cast Selected Columns into Roles",
Lineup Box( N Col( 2 ), Spacing( 3 ),
Button Box( "Y, Response", colListY << Append( colListData << GetSelected ) ),
colListY = Col List Box( width( lbWidth ), nLines( 5 ), numeric, MinItems(2) ), //HERE
Button Box( "X, Factor", colListX << Append( colListData << GetSelected ) ),
colListX = Col List Box( width( lbWidth ), nLines( 1 ), numeric ),
Button Box( "By", colListB << Append( colListData << GetSelected ) ),
colListB = Col List Box( width( lbWidth ), nLines( 1 ) )
)
),
Hope that helps!
Wendy Murphrey
Wendy