createObject (parentKey, name, id, classId, permanent, callback)
parentKey. Key of the parent object.
name. Object name.
id. ID of the created object.
classId. Object class, an instance of the PP.Mb.Ui.MetabaseObjectClass enumeration.
permanent. This parameter is reserved for the future.
callback. Callback procedure.
The createObject method creates a repository object.
To execute the example, the page must contain a connection to repository named mb (see Example of Creating the Navigator Component). Create a repository object: an express report named My_new_object_1 that has the newolap001 identifier:
mb.createObject(0, "My_new_object_1", "newolap001", 2561, true, null);
mb.refresh()
After executing the example an express report with the specified name and identifier is created in root folder of the repository.
See also: