MetabaseObjectsListView.getSelectedObjects

Syntax

getSelectedObjects();

Description

The getSelectedObjects method returns selected repository objects.

Comments

The method returns an array of objects of the PP.Mb.Object type.

Example

To execute the example, the HTML page must contain the MetabaseObjectsListView component named list (see Example of Creating the MetabaseObjectsListView Component). Select objects that must be kept in the component.

// Remove the current focus
list.removeFocus();
// Keep only selected objects
list.loadFrom(list.getSelectedObjects());

After executing the example only selected objects are kept.

See also:

MetabaseObjectsListView