.rowDelete()

Previous Next

Deletes rows from the database. Contrast with Rows.rowRemove() which removes rows only from the client browser.

Returns the 'this' object.

Syntax

.rowDelete( options )

 

options   :=  {

     async:  async

,    check:  check-function

,    success: success-function

,    error: error-function

}

 

async  :=  { true | false }

Options is a struct that can have the following items, all of which are optional.

Async is a boolean that determines whether the operation is executed asynchronously. The default is true.

Check-function is a function called before the records are deleted. Use the return value of this function to determine whether or not you want the rows to be deleted.

Success-function is a function called after the records are successfully deleted.

Error-function is a function called if an error occurs.

 

Example

$.udb('EMP').rows({EMPNO:5}).rowDelete({

 check: function(r){

         alert('Deleted: ' + r.val('EMPNO'));

         return true;

 }

});

 

See Also

.rowRemove()