BISearchResultBox Constructor

Syntax

PP.Mb.Ui.BISearchResultBox(settings);

Parameters

settings. JSON object that contains values of component properties.

Description

The BISearchResultBox constructor creates a container with BI search results.

Example

Executing the example requires any component with access to repository, for example, ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and a container for the component, for example, the div element with the container identifier.

// Get repository object
metabase = eaxMdService.getMetabase();
 
// Create event handlers
eventResultItemClick = function(sender, args) {
    console.log("ResultItemClick:");
    console.log(args);
};
eventSearchFailed = function(sender, args) {
    console.log("SearchFailed:");
    console.log(args);
};
eventSearchSucceed = function(sender, args) {
    console.log("SearchSucceed:");
    console.log(args);
};
 
// Create a component
BIsearchBox = new PP.Mb.Ui.BISearchResultBox({
    Metabase: metabase,
    ResultItemClick: eventResultItemClick,
    SearchFailed: eventSearchFailed,
    SearchSucceed: eventSearchSucceed,
});
BIsearchBox.addToNode("container");
// Initialize search
BIsearchBox.search("world", {start: 0, count : 20});
// Add to search results
BIsearchBox.searchNext();

After executing the example a container for BI search results is created, and search is executed.

See also:

BISearchResultBox