SelectedPoint: Object;
The SelectedPoint property sets information about selected point coordinates.
Row numbers start with zero, column numbers start with one.
To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:
//Add a handler for metabase connection end event metabase.EndRequest.add(function (){ var selectedPoint = wbk.getSelectedPoint(); var messageString = "Selected cell coordinates: "; messageString += "\n"; messageString += "Row: " + selectedPoint['row'] + "\n"; messageString += "Column: " + selectedPoint['column']; alert(messageString); });
After executing the example selecting a cell in workbook table brings up a message that contains cell coordinates.
See also: