MetabaseObjectsView.deleteObject

Syntax

deleteObject(key);

Parameters

key. Number. Object key.

Description

The addObject method removes an object from the display list.

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);

After executing the example the selected object is removed from the list.

See also:

MetabaseObjectsView