...
Code Block |
---|
function onErrorInvoke(rows){ if(rows.length > 0){ window.location="melt://showAlert/"+ rows[0].message; } } |
This example states that if an error occurs, as long as the error does not relate to a blank row (no action performed), then display the message for the current row to the user.
Adding the following code to the invoked function returns row1 dataset, and displays any errors if there are any:
Code Block |
---|
function onErrorInvoke(row1){ window.location="melt://showAlert/"+ row1.message; } |