clearItems


Purpose

Clears all items in local storage if data synchronization is not working.

This method can be called no earlier than after the getOfflineStorageCount method's onSuccess callback is invoked during the first application start. Otherwise, it fails with onFailure callback invoked.

Signature

clearItems( onSuccess, onFailure )

Returns

This method does not return anything.

Parameters

Name Description Type Use
onSuccess A callback function, called after items are successfully removed. function required
onFailure A callback function, called when the client's database operation fails. Returns an error code, as defined in the Constants table in the Client Store article, and an error message. function required

Related topics

Client Store
Legal notice | Copyright © 2016 and Confidential to Pegasystems Inc. All rights reserved
PDN | Hybrid Container | Feedback
Advanced...