-
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
FilterForm #134
Comments
I think I found why the FilterFormService was not called. static def services = [
GridImpl: 'gridImplService',
DS : 'dataSourceService',
AC : 'autocomplete.autocompleteService',
Export : 'export.exportService',
FFF : 'filterForm.filterFormService'
] FFF should be FF. Now FilterFormService is called but without success |
Finally, I made it working. filterForm {
fields {
'testauthor' {
label 'testlabel'
type 'text'
filterDataType String
filterClosure { Filter filter ->
or{
eq('username', filter.paramValue)
eq('coeditor', filter.paramValue)
}
}
}
}
} |
Hi sebDK, The filterForm functionality hasn't unfortunately really gone beyond experimental, yet. Thanks for the fixes. I will add them to the next version. |
Hi there,
First thank you for your work. It is really helpful.
I am using the easygrid plugin with grails 2.3.1 and easygrid:1.6.9.
It is fine, I have no problem to show my list.
Now I would like to add a form on the top of the grid to add a more complex filter like for example "Where author or co author is me"
I m trying this simple code
Here is how my controller is looking like (inspired from #113):
Here is the code in my GSP file:
Here is a picture of the UI;
By the way, I got a problem with the tag gridForm (switch simple quote to "). I changed it to:
Anyway now when I press enter on my filter input box, the following query is called:
/report/reportsRows?testrevision=7.
Hence the filter data is sent.
But the result is wrong. The grid is just reloaded with the default rowNum 20 instead of the one set in my grid:
I set a breakpoint in FilterService and FilterFormService but it looks like they are never run. It might explain my problem. Any idea?
The text was updated successfully, but these errors were encountered: