⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


Trying to migrate to Enteprise version

setActionButton; columns; migrating; codeigniter

  • Please log in to reply
4 replies to this topic

#1 matiasnabarro@gmail.com

matiasnabarro@gmail.com

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 19 March 2020 - 07:52 PM

Hi!, maybe you can help me. I'm migrating an application in CI3 from community version to enterprise. I can't get the actions to work. As an example:

 

this worked with community version.  
 
     $crud->add_action('Personal & Equipos','','operaciones/personal_equipos_detalle','','');
Also this neither works anymore
 
      $crud->callback_column('monto',array($this,'_callback_monto'));
(The callback function)
 
function _callback_monto($value, $row)
{
$total= $row->monto_transporte+
$row->monto_servicios+
$row->monto_materiales;
return '<div class="font-weight-bold">'.$total.'</div>';
}
 
One more issue is that I add the "Monto" column, referenced in the callback_column, the grid does not finish to load, I get an error. I think I can't use columns other than those who come from the db or model. Is that right?.

Thanks in advance.

 

 



#2 Fernyx

Fernyx

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 30 April 2020 - 06:50 PM

Abre 2 pestañas en un navegador y vete comparando las siguientes páginas:

https://www.groceryc...d-function-list

https://www.groceryc...ions_functions/

Básicamente consiste en quitar _ y poner la primera letra en mayusculas por ejemplo display_as --> displayAs

Para el callback_column es callbackColumn a mi por ahora las que he portado bien, es un poco coñazo que no sea la misma sintaxis pero bueno...

Comenta la línea del callback y cuando te cargue bien la página quita el comentario, lo mismo el error viene de otra función anterior, te lo digo porque a mi también me ha pasado varias veces



#3 shubhamsharma

shubhamsharma

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 23 May 2020 - 10:18 AM

This is my website Best VPS Hosting Plans on which you get VPS hosting in best rates. By understanding each of our customers well, we make this offer available to you.



#4 shubhamsharma

shubhamsharma

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 23 May 2020 - 10:19 AM

Well astounding post! Latest Coupons I have store up a goliath level of information on it keep posting here. 






Also tagged with one or more of these keywords: setActionButton;, columns;, migrating;, codeigniter

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users