RegisterSearchFAQ UsergroupsLog in
Multiple selection filter and blank values
Goto page Previous  1, 2
 
Reply to topic    Citra Technologies Forum Index » Report a Bug View previous topic
View next topic

Multiple selection filter and blank values
Author Message
jdemurcia



Joined: 02 Feb 2009
Posts: 45

Post Reply with quote
Thanks, it works well on all String columns, which is a great improvement.

How about columns that are not string based ? When there is only one value in the column, filtering with this single value also shows rows with blank value. Is there any work around to change that ?
Fri Nov 18, 2016 9:22 am View user's profile Send private message
support



Joined: 21 Feb 2006
Posts: 1463

Post Reply with quote
Ah, this was a bug, it is now fixed.

Thanks!
Mon Nov 21, 2016 2:02 pm View user's profile Send private message
jdemurcia



Joined: 02 Feb 2009
Posts: 45

Post Reply with quote
Sorry, I did not understand your answer. I downloaded the version 4.2.7 and run the attached test class. When you use the String based table model (line 39), it works fine. When you let the MyObjet based table model, the 'yes' value selected in the filter also selects the blank values. Could you show me how to fix it on this sample using the MyObjet based table model ?

Thanks!



FilterTableDemo.java
 Description:
sample code

Download
 Filename:  FilterTableDemo.java
 Filesize:  5.56 KB
 Downloaded:  76 Time(s)

Tue Nov 22, 2016 6:09 am View user's profile Send private message
support



Joined: 21 Feb 2006
Posts: 1463

Post Reply with quote
I run your attached code and I think that you need to also add the "Blanks" and "Non-Blanks" option for your custom filter objects.

e.g.

Code:
CustomPopupFilterHeaderModel filterHeaderModel = new CustomPopupFilterHeaderModel() {
   protected void preparePopup(int c) {
      super.preparePopup(c);
      box.addItem(BLANK_STRING);
      box.addItem(NON_BLANK_STRING);
   }
};


Then selecting only the 'yes' option will not show any blank values.
Tue Nov 22, 2016 6:41 am View user's profile Send private message
jdemurcia



Joined: 02 Feb 2009
Posts: 45

Post Reply with quote
Thanks !
Tue Nov 22, 2016 6:49 am View user's profile Send private message
Display posts from previous:    

Reply to topic    Citra Technologies Forum Index » Report a Bug All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group