-
Notifications
You must be signed in to change notification settings - Fork 64
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
date_input_to_isoformat #97
Comments
In time I have figured out that I need to add |
Hello @cnagytcorp, To efficiently apply sorting and searching, i.e. delegating them to the database, each column of the javascript datatable must be associated with a specific column of the table in the database. The criteria for formulating the search on the ORM side are automatically deduced from the context, while you would like to do a search on multiple columns. I understand the need, and it seems interesting to me, but unfortunately it is not currently supported; it would be necessary to provide some mechanism for optionally replacing the criterion of the search on the column with an arbitrary expression. Unfortunately I can't predict a short intervention in this sense, because I deal more with backend than with frontend, and for me this is a secondary project to which I can devote little time. But I will keep the Issue open as a reminder, just in case. |
Thanks for the explanation, it's becoming my new favorite table rendering tool, realy like the compact layout and the customizability. Unfortunately being a novice in Python-Django it's a frustrating (sometimes fun) learning curve for me. |
I can't get your example working, this function is part of what ? date_input_to_isoformat "Query.Deferred exception: date_input_to_isoformat is not defined ReferenceError: date_input_to_isoformat is not defined"
Removing it than the table works but obviously no longer able to filter by date_range.
Also how to make user__first_name and user__last_name in to 1 column ? If I just use user than cannot search user column "got error"
Had to split it to make it work.
{'name': 'First name', 'foreign_field': 'user__first_name', 'visible': True}, {'name': 'Last name', 'foreign_field': 'user__last_name', 'visible': True},
Documentation is extensive and looks great on first sight but for a beginner is difficult to understand what does what especially when english not the native language.
Sorry for commenting here as issue but havent found a forum where django-ajax-datatable being discussed in dept.
I'm greatly appreciate the work you put in to this, would like to learn more and make it usable in my project.
The text was updated successfully, but these errors were encountered: