MetabaseObjectsView.addObject

Syntax

addObject(object);

Parameters

object. PP.Mb.Object. Added object.

Description

The addObject method adds a repository object to component.

Example

To execute the example, the page must contain NavigatorBox component named navbox (see Example of Creating the NavigatorBox Component).

// Get object view
view = navbox.getObjectsView();
// Get object key
obj = view.getFocusedObject();
key = obj.getKey();
// remove selected object from the list
view.deleteObject(key);
// Add removed object
view.addObject(obj);

After executing the example the earlier removed object is added.

See also:

MetabaseObjectsView