EllisLab text mark
Advanced Search
3 of 3
3
   
Carbogrid - datagrid and CRUD
Posted: 03 November 2012 05:30 PM   [ Ignore ]   [ # 31 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-13
77 posts

I use carbogrid with my database, and i got this in my log :

ERROR 2012-11-03 21:09:20 --> SeverityNotice  --> Array to string conversion /application/modules/account/views/carbo/carbo_grid.php 42 

carbo_grid.php

41.            foreach ($command as $key => $value{
42.                $command_str 
.= "'" $key "': '" $value "',";
43.            } 

in my controller i have this:

$commands['delete']['toolbar'false;
        
$params = array(
      
'id' => 'users',
      
'table' => 'roles',
      
'url' => 'admin/single',
      
'uri_param' => $grid,
      
'columns' => $columns,
      
//'columns_visible' => array(0,2,3,4),
      
'commands' => $commands,
      
'ajax' => TRUE
); 

I do not know what to do, apart from disabling errors :/

 
Posted: 14 February 2013 03:04 PM   [ Ignore ]   [ # 32 ]   [ Rating: 0 ]
Joined: 2013-02-14
1 posts

Is there a way to disable add/edit/delete in CarboGrid?

If so, is there any way to set it so that users can’t edit, but can still pop-up the edit screen? 

Basically, I’m working on an app that’ll be a display-only interface to a DB, the visitors should only be able to look at data, not add/edit/delete. However, each record has too much info to display on the grid. I’d like to be able to show a limited number of fields, then have the user be able to call up the edit screen (or equivalent), which lists more of the fields (including more space for large text fields), but still not be able to edit the record.

Thanks,
Juliean

 
3 of 3
3