createShortcut (parentKey, objectKey, name, id, classId, callback)
parentKey. Key of the folder where the shortcut is to be created.
objectKey. Key of the repository object for which the shortcut is to be created.
name. Shortcut name.
id. Shortcut identifier.
classId. Shortcut class, an instance of the PP.Mb.Ui.MetabaseObjectClass class. When this parameter is not specified, the system uses class of the object for which the shortcut is created.
callback. The callback procedure. Optional parameter.
The createShortcut method creates a shortcut for repository object.
To execute the example, the page must contain a connection to repository named mb (see Example of Creating the Navigator Component). The repository must include an object with the 764577 key. Create a shortcut for this object:
mb.createShortcut(0, 764577, "myshortcut001", "Shortcut_to_object_764577");
mb.refresh()
After executing the example a shortcut for the object with the 764577 key is created in root folder of the repository. Shortcut name: myshortcut001, shortcut identifier: Shortcut_to_object_764577.
See also: