RdsService.setItem

Syntax

setItem(dict: PP.Rds.Dictionary, operation: PP.Rds.ElementOperation, targetKey: String, atIds: Array, data: Array|PP.Rds.DItem, callback: function|PP.Delegate);

Parameters

dict. MDM dictionary.

operation. Type of the operation on dictionary item.

targetKey. Key of the item for which you want to perform the operation.

atIds. Array of identifiers of attributes.

data. Array of values of the specified attributes or a dictionary item. It has structure { values: [<array of values of specified attributes>], transl: [<array of translations as hashes> { <locale>: <value> } ] or object of the PP.Rds.DItem type.

Description

The setItem method adds or refreshes specified element in MDM dictionary.

Example

The method use is given in the example for the DItem constructor.

See also:

RdsService