MetabaseObjectsListView.getClassName

Syntax

getClassName(obj);

Parameters

obj. Repository object.

Description

The getClassName method returns name of the repository object class.

Example

To execute the example, the HTML page must contain the MetabaseObjectsListView component named list (see Example of Creating the MetabaseObjectsListView Component). The repository must contain an object with the 65737 key.

// Select object with the 65737 key
list.setSelectedKeys(65737);
// Display object class name in the console
obj = list.getFocusedObject();
console.log(list.getClassName(obj));

After executing the example the console window displays name of the specified object class.

See also:

MetabaseObjectsListView