⚠ 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 is an archived forum. ⚠

  •     

profile picture

Trying to migrate to Enteprise version



matiasnabarro@gmail.com

matiasnabarro@gmail.com
  • profile picture
  • Member

Posted 19 March 2020 - 19: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.

 

 


Fernyx

Fernyx
  • profile picture
  • Member

Posted 30 April 2020 - 18:50 PM

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

https://www.grocerycrud.com/enterprise/api-and-function-list

https://www.grocerycrud.com/documentation/options_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


shubhamsharma

shubhamsharma
  • profile picture
  • Member

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.


shubhamsharma

shubhamsharma
  • profile picture
  • Member

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.