setTable (cubeImport, sheetName, callback, errorCallback)
CubeImport. Model of object import to cube. instance of the PP.Mb.CubeImport class.
sheetName. Table sheet name.
callback. Callback function.
errorCallback. Callback function on error.
The setTable method sets the active table sheet.
To execute the example, the page must contain ImportDataWizard component named importDataWizard and a service for working with data import named dataImportService (see Example of Creating the ImportDataWizard Component), and selected import object. Set active table sheet:
// Get import object cube = importDataWizard.getCubeImport(); // Get name of the second sheet sheetN = cube.getMetadata().tables.its.it[1].n; // Set active table sheet dataImportService.setTable(cube, sheetN);
After executing the example the second sheet is set as an active one.
See also: