JavaScript

{dialog.object}.readDataCacheItems Method

Syntax

{dialog.object}.readDataCacheItems(UXClientSideDataCacheItem,onComplete);

Arguments

UXClientSideDataCacheItem

A comma delimited list of data items to read. Can also be '*all' to read all data items.

onComplete

A javascript function that is called when after the data is read.

Description

Reads multiple data items, then calls the onComplete event. Contrast with .getFromDataCache() which reads a single item.

Example

function _done(obj) { 
		alert('rows in customer item: ' + obj.customers.length);
		alert('rows in orders item: ' + obj.orders.length);
}
{dialog.object}.readDataCacheItems('customers,orders',_done);