MetabaseObjectsView.Filter

Syntax

addObject : Array of PP.Mb.MetabaseObjectClass;

Description

The Filter property determines a list of objects that will be displayed in component.

Comments

Use JSON or the setDisplayMode method to set the property value, and the getDisplayMode method to get the property value.

The property contains enumeration with keys from the PP.Mb.MetabaseObjectClass enumeration.

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();
// Set up object filter
view.setFilter([1281, 2827, 2562]);
// Refresh 
view.refresh();

After executing the example only three types of objects are displayed.

See also:

MetabaseObjectsView