deleteObject(key);
key. Number. Object key.
The addObject method removes an object from the display list.
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: