Update all highlighted rows

Update all highlighted rows

dozedoze Posts: 5Questions: 1Answers: 0
edited November 2014 in Free community support

hey Guys.
here is my code

var colIndex = table.row('.selected')[0]+"";
                    var strIndex = colIndex.split(',');
                    for(i=0;i<strIndex.length;i++){
                        editor
                            .edit(table.row(strIndex[i]).node(), false)
                            .set('stc_timekeeping.leave_earn', (editor.get('stc_timekeeping.leave_earn') * 1) + 1)
                            .submit();

                    }

I have selected the rows that need's to be updated ex: 5rows
problem is that when i click the button it only updates the last record or the last loop..

anybody have other solutions for this?

Replies

  • allanallan Posts: 61,821Questions: 1Answers: 10,126 Site admin

    Hi,

    Currently Editor does not support multi-row editing. That is a feature that will be introduced in v1.5 in the new year :-)

    Allan

  • dozedoze Posts: 5Questions: 1Answers: 0

    Ok thanks. looking forward to that update.

    BTW. good job I love your work :)

This discussion has been closed.