DataMiningService.getDataSourceFields

Syntax

getDataSourceFields(dataSource, dataInColumns, callback);

Parameters

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

dataInColumns. Boolean. Determines whether data is in columns.

callback. PP.Delegate. Callback function.

Description

The getDataSourceFields method sends query to server about the headers used in data mining.

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
callback = function(sender, args){console.log(args.Response.GetDmDataSourceResult)};
// Send query
dmService.getDataSourceFields(dataSource, true, callback);
// -> Object fieldCount: 7 fieldNames: Objects: Array[7]0: "Territories"1: "1998"2: "1999"3: "2000"4: "2001"5: "2002"6: "2003"length: 7 ...

After executing the example a query is sent to server about getting headers, the console displays server response.

See also:

DataMiningService