Metabase.getSearch

Syntax

getSearch(mbObjectsArg, sourceDataArg, callback, errorCallback);

Parameters

mbObjectsArg. Object. Object metadata.

sourceDataArg. Object. Data source metadata.

callback. PP.Delegate. Callback function.

errorCallback. PP.Delegate. Callback function on error.

Description

The getSearch method sends request to server to search for object.

Comments

The getSearch method is used on search by source data.

Example

Executing the example requires any metabase connection, for example, by means of the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component component).

// Get repository object
metabase = eaxMdService.getMetabase();
// Set search conditions
args = {
  "text": "WorldData",
  "range": {
    "start": 0,
    "count": 100
  }
};
// Determine callback function
callback = function(sender, args) {
  console.log(args)
};
// Send request to search for object
metabase.getSearch(null, args, callback);
// - > Object {ResponseText: "{ "GetSearchResult": { "GetSourceDataResult":  ...}t

After executing the example the server response for object search request is obtained.

See also:

Metabase