Mass updater used with other batch actions
Posted: 2020-04-15 18:00
Dear all,
I'm trying to learnt how to create additional batch actions in paral·lel with the usage of the mass updater.
I'm trying to follow this tutorial: https://bigprof.com/appgini/help/advanc ... ch-actions
As the usage of the plugin implies to work a little bit different I'm not sure if I'm doing right.
In the edited by plugin tablename.php file I've added this code above the edited part of the file
$custom_actions_top = array(
'custom_actions_top' => array(
'title' => "Cerrar NCs",
'function' => 'mifuncion',
'icon' => 'random'
),
);
I've added to the tablename-tv.js the definition of mifuncion as follows
function mifuncion(table_name, ids){
alert("IDs selected from " + table_name + ": " + ids);
}
It is the same function than in the tutorial but renamed.
the code is not executed... can anybody tell me where could be the error...
Thanks in advance
I'm trying to learnt how to create additional batch actions in paral·lel with the usage of the mass updater.
I'm trying to follow this tutorial: https://bigprof.com/appgini/help/advanc ... ch-actions
As the usage of the plugin implies to work a little bit different I'm not sure if I'm doing right.
In the edited by plugin tablename.php file I've added this code above the edited part of the file
$custom_actions_top = array(
'custom_actions_top' => array(
'title' => "Cerrar NCs",
'function' => 'mifuncion',
'icon' => 'random'
),
);
I've added to the tablename-tv.js the definition of mifuncion as follows
function mifuncion(table_name, ids){
alert("IDs selected from " + table_name + ": " + ids);
}
It is the same function than in the tutorial but renamed.
the code is not executed... can anybody tell me where could be the error...
Thanks in advance