Dictionary.ImportSchema

Syntax

ImportSchema;

Description

The ImportSchema property determines array of MDM dictionary import schemas.

Comments

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

schema. Import schema.

key. String. Import schema key. If it is not specified, returns all import 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 import schema:

// Get MDM dictionary
var source = dictionaryBox.getSource()[0];
// Get all import schemas
sch = source.getImportSchema();
// Get key of the first import schema
key = sch[0].k;
// Get tree view
dataA = dictionaryBox.getDataArea();
tree = dataA.getActiveDictTree();
// Check if messages about import results are displayed
console.debug("Messages about import results: " + tree.getShowImportExportResult() ? "are enabled" : "are disabled");
// Initialize import
tree.importData(key);

After executing the example import is initialized.

See also:

Dictionary