if (!window.lineboxes) {
window.lineboxes = [];
}
lineboxes[lineboxes.length] = this;if(window.lineboxes) {
var cells = [];
for (var i = 0; i < lineboxes.length; i++) {
if (lineboxes[i].selected()) {
cells[cells.length] = lineboxes[i].options.location;
}
}
contentPane.deleteRows(cells); //批量删除选中的记录
contentPane.writeReport(); //保存到数据库,实现的是工具栏中提交的操作
}
这个是原来的删除勾选的按钮js
新建一个按钮,改一下js就是全删除按钮:
if (!window.lineboxes) {
window.lineboxes = [];
}
lineboxes[lineboxes.length] = this;if(window.lineboxes) {
var cells = [];
for (var i = 0; i < lineboxes.length; i++) {
cells[cells.length] = lineboxes[i].options.location;
}
contentPane.deleteRows(cells); //批量删除选中的记录
contentPane.writeReport(); //保存到数据库,实现的是工具栏中提交的操作
}
行式填报批量删除-全选.cpt