-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unable to filter #44
Comments
Hi Patrick, The filterClosure should look like this:
Let me know how this goes, and then we'll see with the other issues. |
I tried that but I am still getting an error.
|
I misread your example. Try this:
|
I tried that as well and get the below error. I am really at a loss on making this work.
|
Could you show me the entire grid definition you used? ( or at least the column where it fails) |
|
The grid looks good. I don't understand this error message
Were you able to write a working criteria or a where query? |
The grid definition shows that I am retrieving the value of source.environmentendpoint.cepenvironment.cep.name. I also wrote the below query in the page controller to show that the data can be queried.
The above query prints the expected value to the console. |
So basically, the grid displays the data, but throws that error when you want to filter on the "environmentendpoint.cepenvironment.cep.name" column? Everything looks good from what you showed me until now. Is it possible to create a small project to reproduce the error? Thanks |
I am thinking this issue is related to #21. I have my domain objects setup as so: Cep hasMany Cepenvironment hasMany Environmentendpoint hasMany Source There is a reverse reference as well to ensure bi-directional access: Source belongsTo Environmentendpoint belongsTo Cepenvironment belongsTo Cep Let me know if you would agree my issue is similar to issue 22. |
I was able to get the filtering to work using the below code. I am going to have to add a check in the globalFilter to perform special filtering if the field name is 'environmentendpoint.cepenvironment.cep.name'. It would be nice to see this resolved but for now, at least I can filter.
|
Hi Patrick, I'll try to reproduce the problem and let you know. Thanks |
Hi Patrick, I replaced DetachedCriteria (which seems to be quite buggy) with Criteria in the Gorm implementation, in easygrid:1.5.0. Let me know if you give it a try. Thanks |
I have a grid setup using GORM and Source as the domain object. I am trying to add a column that uses a value several domains up in the hierarchy. Specifically environmentendpoint.cepenvironment.cep.name where name is a property of the Cep domain. Each domain in the hierarchy has a belongsTo association with the next domain in the hierarchy. I can get the value no problem but am unable to filter on it.
I am trying to use the globalFilterClosure because I am making use of the search feature in jqGrid. However, I have tried adding a filterClosure to the column with no luck. Below is the error I keep getting.
By the way, I have also tried using:
I don't get an error with this but I also don't get any filtering.
By the way, sort is misspelled in the request params being sent to the server. This is probably on the jqGrid side.
The text was updated successfully, but these errors were encountered: