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)
![2022-08-29 12_38_51-Filter Col Selector Example - JMP.png 2022-08-29 12_38_51-Filter Col Selector Example - JMP.png](https://community.jmp.com/t5/image/serverpage/image-id/45071iC0F2CE0AD38FCF75/image-size/large?v=v2&px=999)
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:
![2022-08-29 12_40_25-Filter Col Selector Example - JMP.png 2022-08-29 12_40_25-Filter Col Selector Example - JMP.png](https://community.jmp.com/t5/image/serverpage/image-id/45070iCF1A2386288A22CF/image-size/large?v=v2&px=999)
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.
![2022-08-29 12_43_51-Filter Col Selector Example - JMP.png 2022-08-29 12_43_51-Filter Col Selector Example - JMP.png](https://community.jmp.com/t5/image/serverpage/image-id/45072i7B7F7EE76A0BCD62/image-size/large?v=v2&px=999)
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:
![2022-08-29 12_40_25-Filter Col Selector Example - JMP.png 2022-08-29 12_40_25-Filter Col Selector Example - JMP.png](https://community.jmp.com/t5/image/serverpage/image-id/45070iCF1A2386288A22CF/image-size/large?v=v2&px=999)
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?