MetabaseObjectsView.loadFrom

Syntax

loadFrom(objects);

Parameters

objects. Array of PP.Mb.Object. Array of repository objects.

Description

The loadFrom method clears a component and loads only specified objects.

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();
// Select several objects and keep only them visible
view.loadFrom(view.getSelectedObjects());

After executing the example only visible objects are kept.

See also:

MetabaseObjectsView