In every row, you probably have a remove row button, correct?
If so, just add a ScriptBlock in every row, and in the script block you’ll have javascript like the sample above, but dynamically looking up each row:
//get the remove Button Model
var button = CAF.model("#{caf:cid('removeRowButton')}");
//store the current onclick
var _onclick = button.element.onclick;
//create your custom onClick
button.element.onclick = function() {
//todo add your validation function
alert("hello");
//delegate to the original onclick
_onclick();
};
#webMethods#MWS-CAF-Task-Engine#webMethods-BPMS