update method
Updates a value in the current record of the cursor.
Syntax
var retVal = IDBCursor.update(value);Parameters
- value [in]
-
Type: any
Return value
Type: IDBRequest
An object representing the update request.
Exceptions
This method can throw the following DOMException exceptions:
Note As of a Windows Store app using JavaScript, the code property is deprecated in favor of the name property, which is preferred for standards compliance and future compatibility.
| Exception properties | Condition |
|---|---|
|
When an object store uses inline keys, this exception indicates that the key value of the update object does not match the key value of the corresponding record in the object store. |
|
The update is not allowed for one of the following reasons:
| |
|
The associated transaction has closed or is not active. |
|
The associated transaction is read-only. |
|
The data could not be copied. |
Standards information
See also
Build date: 11/22/2012
