EAS BOS清空分录数据
2015-11-03 17:11
309 查看
tblMain.removeRows();
或者
public static void removeTableData(KDTable table) {
IObjectCollection collection = (IObjectCollection) table.getUserObject();
if (collection != null && !collection.isEmpty())
for (int rowIndex = 0; rowIndex < table.getRowCount(); rowIndex++) {
IObjectValue detailData = (IObjectValue) table.getRow(rowIndex).getUserObject();
if (detailData != null) {
collection.removeObject(detailData);
}
}
table.removeRows();
}
或者
public static void removeTableData(KDTable table) {
IObjectCollection collection = (IObjectCollection) table.getUserObject();
if (collection != null && !collection.isEmpty())
for (int rowIndex = 0; rowIndex < table.getRowCount(); rowIndex++) {
IObjectValue detailData = (IObjectValue) table.getRow(rowIndex).getUserObject();
if (detailData != null) {
collection.removeObject(detailData);
}
}
table.removeRows();
}
相关文章推荐
- WebSphere Password Decoder
- 详解Swift语言的while循环结构
- Structs2工作流程
- 从”JAVA“而终 N/:易混淆知识点大全
- c++读写文件流
- 关于Python类中的各种变量
- 注记字体样式选择指导
- WEB返回代码列表
- 文本框输入的样式
- mysqli扩展库---事务控制
- DIV拖拽
- 套接字编程
- win10耳机和扬声器不能自动切换的解决办法
- 锁的效率很低
- Wdatepicker日期控件的使用指南
- android教程学习 第12讲:lookup_keyword这个函数的实现
- 代码:显示查询的日历
- 解决UnicodeEncodeError: 'ascii' codec can't encode characters in position问题
- 10-判断数据库中字段重复的数据
- 迷宫寻宝(一)