{dialog.object}.refreshDataCacheItem Method

Syntax

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

Arguments

UXClientSideDataCacheItem

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

onComplete

A Javascript function to execute once all items have been refreshed.

Description

Refreshes the data in one or more client-side data cache items.

Example

var _refresh = function() {
	alert('all items have been refreshed');
}

//refresh all items
{dialog.object}.refreshDataCacheItem('*all',_refresh);

//refresh customers and products
{dialog.object}.refreshDataCacheItem('customers,products',_refresh);