getItemTypes


Purpose

Retrieves a list of item types for currently stored data items.

Item types are freely defined data item categories, presented as string values. They are used in correlation with data handles to identify individual data items.

Signature

getItemTypes( onSuccess, onFailure )

Returns

This method does not return anything.

Parameters

Name Description Type Use
onSuccess A callback function, which passes the types JSON object containing item types for data stored in the replicated storage. An empty list is returned if no items are found. function required
onFailure A callback function, called when item types cannot be listed. Passes an error code, as defined in the Constants table in the Client Store article, and an error message. function required

As its call parameter, the onSuccess callback receives a types JSON object, structured as follows:

[
  "type1", "type2", ...
]
Name Description Type
type The type of data in a data item. string

Related topics

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