I have a Filter Col Selector with filter text field (because of many columns in the data table):
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Bands Data.jmp" );
pb = Panel Box("Test",
fcl = Filter Col Selector( dt, all )
);
New Window( "Filter Col Selector Example", pb );
I get the list of columns (red frame) and filter (green frame)
Let's say I now want to delete the whole thing.
I say:
fcl<<Delete Box();
What I see is that only list of columns got deleted, leaving the filter behind:
So if I look at the properties of the window, I see the following:
The box that got deleted was actually the very last ListBoxBox. While FilterColSelector has other boxes, when you create it, returned reference is to that last box only.
Ok, let's try to say:
realFCL = (((fcl << Parent)<<Parent)<<Parent);
//DisplayBox[FilterColSelector]
I can see now that realFCL is our FilterColSElector.
Let's delete it:
realFCL <<Delete Box;
But we get exactly the same picture:
Looks like referring to grand-grand-parent of Filter Col Selector gets the same reference.
The only way to do it is to try to delete either realFCS or fcs TWICE.
realFCL = (((fcl << Parent)<<Parent)<<Parent);
realFCL <<Delete Box;
realFCL <<Delete Box;
Then it works.
Can someone explain to me why this is happening and what is the proper way of deleting Filter Col Box?