WbkDataView.showCannotOpenCube

Syntax

showCannotOpenCube ();

Description

The showCannotOpenCube method shows a window with the warning that selected cube cannot be selected as a source.

Example

To execute the example, the page must contain the WbkDataBox component named wbkDataBox (see WbkDataBox Constructor), and also the following code must be added in the event handler that processes document opening:

btnShowCannotOpenCube = new PP.Ui.Button({
	ParentNode: "params", //DOM parent node
	Content: "ShowCannotOpenCube" //title
});
// Link handler to button click event
btnShowCannotOpenCube.Click.add(function (sender, args) {
	console.log("Display dialog box with warning that chosen cube cannot be selected as a data source");
	wbkDataBox.showCannotOpenCube()
});

After executing the example the HTML page will contain the ShowCannotOpenCube button, clicking which shows a message: Cube with this structure cannot be selected as a source.

See also:

WbkDataView