Is it possible to create a new csv button and add it next to the 'Save CSV' that is already there. Also how would I then specify only specific columns for that button to download?
has anyone done this before or could point me in the right direction?
Additional CSV Button
Re: Additional CSV Button
I have managed to put something together, I copied the csv function the _view.php and renamed it by adding 2 on the end. I then updated the datalist.php and copied the function for exporting there. I know not ideal and these will be overwritten but I can manage that locally.
AppGini 22.13
Re: Additional CSV Button
You can use the following code as sample to add extra button
file : hooks/TABLENAME-tv.js
Have a nice day.
file : hooks/TABLENAME-tv.js
Code: Select all
// create additional button to the tableview
jQuery(function () {
jQuery('#CSV').after(
'<button class="btn btn-default" type="button" id="gantt-chart"><i class="glyphicon glyphicon glyphicon-minus"></i> Gantt Chart</button>'
);
jQuery('button[id=gantt-chart]').click(function () {
window.location = 'hooks/project_gantt.php';
});
});
Zala.
Appgini 23.15, MacOS 14.0 Windows 11 on Parallels.
Appgini 23.15, MacOS 14.0 Windows 11 on Parallels.