DataImportService.setHasHeader

Syntax

setHasHeader (cubeImport, sourceType, hasHeader, callback, errorCallback)

Parameters

cubeImport. An instance of CubeImport class. cube import object model.

sourceType. Source type. Available values: "Excel", "ExcelEx", "Text".

hasHeader. Specifies if content of the first row in the imported table is regarded as headers. If this parameter is False content of the first row is not regarded as headers. By default this parameter is set to True.

callback. Callback function.

errorCallback. Callback function on error.

Description

The setHasHeader method indicates whether the contents of the first row in the imported table are regarded as headings.

Comments

This method is fired on checking or unchecking the box First row contains headings in the first and second pages of the data import wizard.

First row contains headings:

First row does not contain headings:

Example

The example of method use is given in the description of the DataImportService.GetFieldsCompleted event.

See also:

DataImportService