.refresh()

Previous Next

Refreshes the record.

Returns the 'this' object.

Syntax

.refresh( options )

 

options  ::=  {

,    async:  async

,    success:  success-function

,    error:  error-function

}

 

async    ::=  { true | false }

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

Async is a boolean that specifies whether the records are to be refreshed asynchronously. Default is true.

Success-function is a function that is executed after the records are successfully refreshed.

Error-function is a function that is executed if an error occurred.

 

Example 1

$.udb('EMP').rows('current').refresh();

 

 

Example 2

To refresh all rows where MANAGER is NULL and SALARY is higher than 35000:

$.udb('EMP').rows('condition', { MANAGER: "NULL", SALARY: ">35000" } ).refresh();