1. Add one transient attribute "MultySelectFlag" of type string to your VO
2. create multiple selection based on this attribute
3. In table actions add one button called "Delete"
To handle delete functionality write following code:
public void deleteLineRow() {
XxscmPoLinesStgVOImpl vo =
(XxscmPoLinesStgVOImpl)getXxscmPoLinesStgVO1();
Row row[] = vo.getAllRowsInRange();
for (int i = 0; i < row.length; i++) {
XxscmPoLinesStgVORowImpl rowi = (XxscmPoLinesStgVORowImpl)row[i];
if (rowi.getMultySelectFlag() != null &&
rowi.getMultySelectFlag().equals("Y")) {
rowi.remove();
}
}
}
2. create multiple selection based on this attribute
3. In table actions add one button called "Delete"
To handle delete functionality write following code:
public void deleteLineRow() {
XxscmPoLinesStgVOImpl vo =
(XxscmPoLinesStgVOImpl)getXxscmPoLinesStgVO1();
Row row[] = vo.getAllRowsInRange();
for (int i = 0; i < row.length; i++) {
XxscmPoLinesStgVORowImpl rowi = (XxscmPoLinesStgVORowImpl)row[i];
if (rowi.getMultySelectFlag() != null &&
rowi.getMultySelectFlag().equals("Y")) {
rowi.remove();
}
}
}
No comments:
Post a Comment