Skip to profile content
Hi, I do this with a callback in the relevant column. So the button is not in the action column, but yo have full access on all data. in my case the email button is only shown if an email is there: $crud->callbackColumn('email', function ($value, $row) { $email = $value; …
I need to show the button only if there is something in the “web” field. The below does not work. How does one access data in the row array inside of a controller in this new version? if ($row->web){ $crud->setActionButton(‘Web’, ‘fa fa-plus’, function ($value,$row) {return $row->web;},true); }
Hello Then go to the second alternative, create the button in a callbackcolumn. It’s crazy but it’s a small solution
hi! would be nice to have a “where clause” for setActionButton. for example if I want to make a button to download an image, I would like to show it only if the “image” field is not null, or something like that I think to accomplish that now I have to hide the button with some jQuery magic but I …
Exciting news :hugs::hugs::hugs: ! Grocery CRUD is now on a private composer repository for its Enterprise version, hosted on a private server. This simplifies updates and installations for those who uses composer. In short to update, use: composer update --prefer-dist For a fresh installation, run: composer inst…
Hello @dodo.selusin , Since the column is not taking the full width of the table this is only possible by hardcoding the width of the column. For example by adding width: 300px. So in your example it would be something like this: $crud->callbackColumn('amount', function ($value) { if (!empty($…
Hi there, Please add “Feature Request” category, so we could send feature request and discuss further more why we need for such feature. Thank you.
how to set a row with totals in grocerycrud grid
thank you @dodo.selusin i have implement your suggestion but became error like this PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''("…
I faced a problem to get master key(id) on the detail crud.. the example use POST but the route URL ask for get for detail crud.. can you show full example with route URL using CodeIgniter 4 ? also i noticed that you call PHP file on URL .. can i call other function on the same file or i have to …
Thank you very much @johnny I will wait for your updates. Grocery CRUD has been very helpful for me in creating programs. I hope you are always in good health. Regards Nasrul
Hello @nasrul , I see what you mean. Since this is a new area, I haven’t thought about that. I will revisit this and let you know for any solutions or at least a work-around if any. Regards Johnny
hello @johnny Is it possible to add details in master-detail mode with a single field referring to the master table and set it to hidden? For now, it seems that the variable “master_id” is only sent in the list datatable mode, and it is not sent in the add_form and edit form modes. regards Nasru…
Hello I tested a simple relation on two tables. One table named tr with id as primary key, a truid field and a msg field. The other table named test-table for this example, has id as primary key, uuid and additional fields. I tried to set a relation for truid from tr table as setPrimaryKey(‘truid…
Hello, There is the possibility of creating a master detail screen on the same page. That I can position myself in a master record and see only in the grid below the related records according to a column of the table to be defined? Thanks in advance