Choose Language Hide Translation Bar
Highlighted
FN
FN
Community Trekker

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.
0 Kudos
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
0 Kudos
Highlighted
FN
FN
Community Trekker

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

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

filter col.jpg

0 Kudos

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.

 

 

0 Kudos
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