Skip to content

Instantly share code, notes, and snippets.

@vincentdeelen
Created April 30, 2014 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentdeelen/7bfef29cc40d99f5452d to your computer and use it in GitHub Desktop.
Save vincentdeelen/7bfef29cc40d99f5452d to your computer and use it in GitHub Desktop.
Check the affected rows after page submit.
// Create an array of of the empno's
var empArr = $v('P1_EMPNOS').split(':')
// Loop over the array
for ( var i = 0; i < empArr.length; i++ ){
// Look for the employee and find the checkbox of that row. Then set the checkbox property to 'checked'.
$('td[headers="EMPNO"] input[value="'+empArr[i]+'"]').parent().parent().find('.row-selector').prop('checked', true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment