您的位置:首页 > 其它

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();
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: