RdsService.importData

Syntax

importData(dict: PP.Rds.Dictionary, schemaKey: String, callback: PP.Delegate);

Parameters

dict. MDM dictionary.

schemaKey. Import schema key.

callback. Callback function.

Description

The importData method initiates data import according to the specified schema.

Example

To execute this example, the page must contain the DictionaryBox component named dictionaryBox (see. Example of creating the DictionaryBox component ). MDM dictionary must contain import schema:

// Get MDM dictionary
var source = dictionaryBox.getSource()[0];
// Get service used to work with dictionary
var service = source.getPPService();
// Get all import schemas
sch = source.getImportSchema();
// Get key of the first import schema
key = sch[0].k;
// Apply import schema
service.importData(source, key)

After executing the example import is initialized.

See also:

RdsService