cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
twalk
Level II

Specify table in Filter Col Selector

We are trying to use Filter Col Selector in JMP Pro 15.0.0. It works if we bring the data table to the front, but that is not good for our addin. It would be better to call the table by name in Filter Col Selector. The scripting index says data table is an argument for Filter Col Selector, but I can't make it work.

 

In the following example, how do we get Filter Col Selector to work with dt1 without changing the order of opening tables and not using Bring Window

To Front?

 

Names Default To Here( 1 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt2 = Open( "$SAMPLE_DATA/Cities.jmp" );
New Window( "Filter Col Selector Example",
	lb = Filter Col Selector( dt1, width( 250 ) )
);

Thanks for any suggestions.

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Specify table in Filter Col Selector

Placing Datatable() around dt1 seems to work at least with this example

Names Default To Here( 1 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt2 = Open( "$SAMPLE_DATA/Cities.jmp" );
New Window( "Filter Col Selector Example",
	lb = Filter Col Selector(Datatable(dt1), width( 250 ) )
);
-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Specify table in Filter Col Selector

Placing Datatable() around dt1 seems to work at least with this example

Names Default To Here( 1 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt2 = Open( "$SAMPLE_DATA/Cities.jmp" );
New Window( "Filter Col Selector Example",
	lb = Filter Col Selector(Datatable(dt1), width( 250 ) )
);
-Jarmo
twalk
Level II

Re: Specify table in Filter Col Selector

Works for me. That is all I need. Why didn't I think of that? Thank you.