Skip to profile content
Hi @johnny! Did you get some time to look at this?
My mainly concern was that using the WHERE clause globally will transform a LEFT JOIN into a INNER JOIN, loosing valuable data in the grid. You can check for yourself, using your own database: there is no reason for a query (to the customers table) containing a line like this: ->setRelation('sales…
I’m currently using ‘dropdown_search’ with thousands of values (retrieved from my model/database) and it works fine. A minor issue/side effect of this workaround is that the advanced filter button (not quick search) only have a limited number of matching options like those in fig. below: [image] …
Just give groceryCrudSetQuickSearchValue a try. It should work…
Thank you so much! I knew the child’s father would have a practical solution to this problem :slight_smile:
Hello @dwdc! Did you set your “Status” field to boolean type? $crud->fieldType('Status', 'boolean') Didn’t tested it , but I think you can set your filter using javascript events like this: window.addEventListener('gcrud.datagrid.ready', ({detail}) => { groceryCrudSetQuickSearchValue('Status…
Hi, Johnny! Just passing by to remind you that this translation issue still persists in the latest version (v3.1.2)…
What is the error now? If it is the same error again then clearly your ‘except’ is not working and csrf is still enabled for your admin pages. You have to double check if the informed path (‘admin/*’) is correct for your application. You can also enable csrf with grocery crud by using (see here): $…
Okay. I thought that, in this case, the solution would be in the backend (php). Note that I need (very common situation, IMHO) not only to order by ‘priority’ but also show the ‘priority’ column data alongside the data in the ‘Selection Table’: $crud->setRelationNtoN('actors', 'film_actor', 'actor…
Hi, @johnny ! Regretfully, I’m still unable to change the column width below about 100 pixels. Allow me to demonstrate: [ScreenRecorderProject1 - 0.00.09-0.01.07-1 (2)] Perhaps this minimal column width is the culprit? [class^="gc-search-column-"] { min-width: 160px; } Kind Regards!
Thanks @johnny, I’ll give the new version a try. What exactly the new option “Display JavaScript files into the main output (default is false)” do? What is it used for? Regards.
In fact, this removed the delay in the pagination click but, unfortunately, it resulted in another error when clicking on the buttons for the 1st and last page: Error: Internal Server Error. / empty response :frowning:
Okay, now it makes sense to me. I know I’ve asked for too many features, but if it’s (super) easy to implement, wouldn’t it be worth creating an option for the user to disable this delay/behavior? I wonder if such a feature would not negatively affect the experience of most users, in exchange for …
Thanks Johnny, but fieldTypeColumn method didn’t work for me, but the fieldType did the (quick filter) trick I need. $crud->fieldType('your_field_name', 'string');
Unfortunately my own view cannot be in my project directory because themeView method uses _viewsPath internaly and it search for a view inside src/GroceryCrud/Views/ directory :frowning:
Yes. No error with true.
That’s right. Removed (since the the clear filter button in yellow helped a lot).
I’m having a lot of difficulty debugging this situation. In my vanilla installation of GCE (for testing purposes) everything works normally. But in production, using a custom bootstrap theme, the error appears. Nothing in the logs… the only thing that appears different in the network tab is two 303…
Hi, Johnny! Unfortunately it didn’t work for me. I’m getting error “We can’t process the response of the server. Not well JSON formatted response.” only when the new remember_filters_upon_refresh is set to false. Could you assist me in debugging it more? The message that follows is not very useful… …
@johnny I have also noticed the following error while quick filtering in the $fieldName column relative to setRelationNtoN(), even without the where parameter: CRITICAL - 2023-10-01 17:51:58 --> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the …
Take a look here and tell us if this is what you want.
I can confirm this @johnny, and I’ll be using +20 characters to tell you how I’ve tested it… I’m using CodeIgniter 4.4.1 and GCE v3.0.12. I’ve followed the docs available here and tested with your own example database. To my surprise the example didn’t work out-of-the-box because the in ‘examples_…
The definitive way to verify the version installed You can simply check the change log file in: “vendor\grocery-crud\enterprise\change-log.txt” or the composer.json file (same folder). I don’t know if this is the ‘definitive’ way… How an update should be performed? I’m assuming it is simpler …
Just to let everyone know that this is now possible with GCE >= v3.0.10. So we can use several where clauses one after another (like in the example above). Thanks @johnny…
@johnny How can we customize the Quill text editor presented in Grocery CRUD Enterprise modal dialogs (add, edit)? I would like to add elements to the toolbar and load additional Quill modules… TIA.
Whoa, that’s amazing! Thank you! I will test this version ASAP and report back if I found any issues.
I think you are now using Quill editor in v3, right @johnny? Could you please enable the alignment option for us in the next version? modules: { toolbar: [ [{ 'align': null}, {'align': 'center'}, {'align': 'right'}, {'align': 'justify'}], ['image', 'code-block'] ] }, TIA.
There where clause syntax is described here with examples like that: $crud->where([ 'customers.country > ?' => 'USA' ]); $crud->where([ 'customers.country >= ?' => 'USA' ]); $crud->where([ 'customers.country < ?' => 'USA' ]); $crud->where([ 'customers.country <= ?' => 'USA' ]); $cru…
If you have previously completed the composer wizard steps, then simply place your recently downloaded (zip) archive into the artifacts folder and execute the following commands in order to update GCE to a new version: composer update php spark publish
Hi @iradave ! using the [ and ] does not work - it throws a ParseError: syntax error, unexpected token “=”, expecting “]” $crud->setRelation('ParentCompanyID','company','{Name} (ID:{CompanyID} IsParent:{IsParent})',[IsParent = '1']); This is not a GCE issue, it is an invalid PHP syntax for an …