Dictionary.ExportSchema

Syntax

ExportSchema;

Description

The ExportSchema property determines array of MDM dictionary export schemas.

Comments

Use the setExportSchema(schema) method to set the property value, and the getExportSchema(key) method to get the property value. Parameters:

schema. Export schema.

key. String. Export schema key. If it is not specified, returns all export schemas.

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 all export schemas
sch = source.getExportSchema();
// Get key of the first import schema
key = sch[0].k;
// Get tree view
dataA = dictionaryBox.getDataArea();
tree = dataA.getActiveDictTree();
// Initialize export
tree.exportData(key);

After executing the example export schema object is obtained, and export is initialized.

See also:

Dictionary