RdsService.exportData

Syntax

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

Parameters

dict. MDM dictionary.

schemaKey. Export schema key.

callback. Callback function.

Description

The exportData method initiates data export 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 export schema:

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

After executing the example export is initialized.

See also:

RdsService