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
FN
FN
Level V

Refresh Filter Col Selector() after action that groups columns

I have an application (add-in) that that has a Filter Column Selector to find, select or paste columns to group.

 

After performing the operations, the table shows the groups but the Filter Column Selector in the application shows the previous columns.

 

How can I 'refresh' or 'reload' it? Something like:

 

colListData << Reload; //where colListData is my Filter Column Selector object.
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Refresh Filter Col Selector() after action that groups columns

A <<Reset will sync groups with the data table, but it also resets any filters that you have applied:

 

colListData << Reset;

View solution in original post

4 REPLIES 4
Highlighted
txnelson
Super User

Re: Refresh Filter Col Selector() after action that groups columns

I think the easiest thing to do, would be to delete and recreate the Filter Col Selector()

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Filter Col Selector Example",
	vlb = V List Box( fontobj = lb = Filter Col Selector( width( 250 ) ) )
);

Wait( 10 );

dt << delete columns( "age" );
fontobj << delete;
vlb << append( fotobj = Filter Col Selector( width( 250 ) ) );
Jim
Highlighted
FN
FN
Level V

Re: Refresh Filter Col Selector() after action that groups columns

While it works, the filter acumulates in the list :/

filter col.jpg

Highlighted

Re: Refresh Filter Col Selector() after action that groups columns

This is a bug in the <<Delete handling for the FilterColSelector.  Most messages sent to the FilterColSelector just get forwarded on to the ListBox child.

 

This solution can be made to work if you wrap the box in an extra container (HListBox or VListBox will do), and delete this container box instead.

 

 

Highlighted

Re: Refresh Filter Col Selector() after action that groups columns

A <<Reset will sync groups with the data table, but it also resets any filters that you have applied:

 

colListData << Reset;

View solution in original post

Article Labels

    There are no labels assigned to this post.