This function is called after a target has been validated. (New v14.02)


This example checks to see if there are any errors in the target that was just processed, and if so, then it adds the target to the $_JOB.openineditor array if the array contains less than 50 entries. The targets in the $_JOB.openineditor array are automatically opened in the editor after the Batch Wizard job completes.

function onTargetProcessed() {
 if (getValueInt(1)>0) // if # of errors > 0
// uncomment the line below if wanted
//    || (getValueInt(2)>0) // or # of warnings > 0
  if ($_JOB.openineditor.arrayLength()<50) {