Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case Sensitive Filter or Same Term problems #35

Closed
mushishiAL opened this issue Mar 12, 2014 · 12 comments
Closed

Case Sensitive Filter or Same Term problems #35

mushishiAL opened this issue Mar 12, 2014 · 12 comments

Comments

@mushishiAL
Copy link

Hey,
Great job, this plugin is awesome.
I have a problem which has taken me a while to solve but without success.
Let's say I have two data texts to filter: "Percorso" and "Non percorso". In my columns, "Non percorso" is usually associated with other texts such as : "Client not available" etc.
I want to filter only based on the two data types, but I can't. If filter_match_mode is set to exact, it won't show me the results about "Non percorso" (since additional dynamic text follows it inside the same column). If I set the filter_match_mode to contains, it will show me the results about both the data texts (the term "percorso" is in both the data texts) . How can I solve this?
One trivial solution would be if you added the case sensitive option, however there may be other better solutions.

Thank you in advance.

@vedmack
Copy link
Owner

vedmack commented Mar 12, 2014

You are welcome,

I will add another match mode: startsWith + I will add case sensitive boolean property, that way typing "percorso"/"Percorso" will show results that starts with "Percorso"

@vedmack
Copy link
Owner

vedmack commented Mar 13, 2014

#34, Also, maybe in your case a text input filter will be a better choice

@mushishiAL
Copy link
Author

That would be great. :)
Thank you very much!

@vedmack
Copy link
Owner

vedmack commented Mar 18, 2014

Since the better solution for your case is to use the text filter with startsWith , I'm changing this issue into "startsWith" feature request instead of "case sensitive" In case you need the case sensitive feature let me know

@vedmack vedmack changed the title Case Sensitive Filter or Same Term problems new filter_match_mode type "startsWith" (Same Term problems) Mar 18, 2014
@mushishiAL
Copy link
Author

Thank you for this solution.

The problem is that in the future I will surely add other filter data except the "Percorso/Non percorso" ones. This was the reason I actually used chosen instead of a text input filter.
If it is not much trouble for you, the "case sensitive" would help me a lot (or any other solution you surely can give better than me).

Take care.

@vedmack vedmack changed the title new filter_match_mode type "startsWith" (Same Term problems) Case Sensitive Filter or Same Term problems Mar 18, 2014
@vedmack
Copy link
Owner

vedmack commented Mar 18, 2014

Ok, no problem ,the startsWith is a new issue then #37 and yours is back to "Case Sensitive Filter or Same Term problems"

vedmack added a commit that referenced this issue Mar 20, 2014
…"text" (#34)

Added new feature: case_insensitive, can be set to false or true (default) (#35)
Added new mode "startsWith" for filter_match_mode (#37)
@vedmack
Copy link
Owner

vedmack commented Mar 20, 2014

Available in 6.0.3 version

@vedmack vedmack closed this as completed Mar 20, 2014
@mushishiAL
Copy link
Author

Thank you a lot.

@mushishiAL
Copy link
Author

I inserted the new js file of 6.0.3 version but it shows me the error: "Uncaught TypeError: Cannot read property 'case_insensitive' of undefined". The filtering isn't working even when I am not including case_insensitive in the options.

@vedmack
Copy link
Owner

vedmack commented Mar 21, 2014

Might be a bug. Will check it

vedmack added a commit that referenced this issue Mar 21, 2014
@vedmack
Copy link
Owner

vedmack commented Mar 21, 2014

Fixed in 0.6.4

@mushishiAL
Copy link
Author

Works perfectly. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants