Using something similar to the code below how can I write a javascript snippet to loop through all the data in a Model displayed in a table.
Basically I have 3 columns and one of the columns contains checkboxes.
The user can check any of the checkboxes for each row.
Once they click on the button, it calls the snippet, which should then loop through and get the Id’s of the rows that have been checked.
(NB when looping through to check each row, to see what has been checked if the data has not been saved yet, can we still get the Id’s of the checkboxes that have been checked?)
var params = arguments[0],
$ = skuid.$;
var OutstandingItemModel = skuid.model.getModel(‘OutstandingItem’);
var allOutstandingItemData = ;
allOutstandingItemData = OutstandingItemModel.data;
var i = 0;
for(i=0;i<allOutstandingItemData.length;i++){
var itemRow = itemData[i];
}
Question
loop through rows in a model
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
