PDA

View Full Version : problem deleting a multiple selection.


Blancocs
11-09-2009, 10:05 AM
Hi, i'm having problems when i try to delete selected textlistitems inside a list.

i have 2 list referencing two differents datasets . when i press a button i send all the selected items into the other list. and i need to delete them from the other dataset. i tried using a for, a decreasing for, but i am still having problems.

function delete (lstSelected, dsDelete) {
var dp=dsDelete.getPointer();
dp.selectChild();

for(var i=0; i< lstSelected.length; i++) {
dp.addNodeFromPointer(lstSelected[i].datapath);

}

Blancocs
11-13-2009, 06:51 AM
Solved----->