DataMiningService.getDataMining

Syntax

getDataMining(dataSource, outputMon, data, callback, isSync);

Parameters

dataSource. PP.Mb.DataMiningSource. Data mining data source

outputMon. String. Total report moniker is generated by the DataMiningService.createObject method.

data. Object. Information about current data mining settings. It is required to transfer the current step data by means of the DMSettingsStep.getStepData method.

callback. PP.Delegate. Callback function

isSync. Boolean. Determines whether synchronous query mode is used.

Description

The getDataMining method sends query to server about data analysis calculation.

Example

To execute the example, the HTML page must contain the DataMiningMaster component named dmMaster (see Example of Creating the DataMiningMaster Component).

// Prepare parameters
dataSource = dmSource; // Already determined in previous example
objclass = PP.Mb.MetabaseObjectClass.KE_CLASS_PROCEDURALREPORT; // Regular report
var mon;
callback = function(sender, args) {mon = args.Response.CreateObjectResult.id.id};// Return created report moniker
callback2 = function(sender, args) {console.log(args)};
isSync = false;
// Initialize object creation
dmService.createObject(dataSource, objclass, callback, isSync);
 
// Determine current step settings
step = dmMaster.getSteps()[0];
// Get step data
data = step.getStepData();
 
// Send query about data analysis calculation
dmService.getDataMining(dmSource, mon, data, callback2, isSync);

After executing the example a query is sent to server about data analysis calculation, the console displays server response.

See also:

DataMiningService