Dictionary.setElement

Syntax

setElement(parentKey: Number, elMd: Object|PP.Rds.DItem, updateTotalCount: Boolean);

Parameters

parentKey. Parent key.

elMd. Object that contains item settings in metadata format, or an MDM dictionary item.

updateTotalCount. Indication of refreshing the counter for the total number of elements. If the parameter is true, the counter of the total number of elements is refreshed, otherwise it is not.

Description

The setElement method add or changes element in MDM dictionary.

Comments

If an existing item is specified as the elMd parameter, it is refreshed, otherwise it is added to the dictionary.

Example

The method use is given on the page with description of the DItem constructor.

See also:

Dictionary