Version
Version | Functional Change |
---|---|
11.0 | Difference from V10.0: In V10.0, the following APIs are supported only in Data Entry Preview. |
getCellValue
API | getCellValue(sheetindex,address|row,col) This API should be getCellValue(sheetindex,address|col,row) in Data Entry Preview. | To obtain the value in a specified cell. The parameter value can be either the cell address or the row and column numbers of the cell. |
Parameter | address: string col: number, row: number | sheetindex: sheet index number, which starts from 0. If this value is omitted, the index number of the first sheet is used by default. address: cell address, which is a string (for example, A1). When using a cell address, you cannot specify the sheet. col: cell column number, which starts from 1. In Data Entry Preview, this value starts from 0. row: cell row number, which starts from 1. In Data Entry Preview, this value starts from 0. |
Returned Value | void | |
Example | Example 1: You can obtain the value in cell A1 when the obtained report block object is defined as report. Using the cell address:
Using the row and column numbers of the cell:
Example 2: In Pagination Preview of a general report, you can obtain the value in cell A1 using the cell address.
Example 3: In Data Entry Preview, you can obtain the value in cell A1 of the second sheet.
Example 4: In a dashboard, you can obtain the value in cell A1 of the report block named report0 using the cell address.
| |
Application Example | You can click the button to obtain the value in cell B1. For details, you can download the template Obtaining the Cell Value.cpt. | |
Mobile Terminal | This API is supported only in Pagination Preview of a general report. |
setCellValue
API | setCellValue(sheetindex,address,value|row,col,value) ![]() | To assign a value to a specified cell. The parameter value can be either the cell address or the row and column numbers of the cell. |
Parameter | address: string col: number row: number value: string | sheetindex: sheet index number, which starts from 0. If this value is omitted, the index number of the first sheet is used by default. address: cell address, which is a string (for example, A1). When using a cell address, you cannot specify the sheet. col: cell column number, which starts from 1. In Data Entry Preview, this value starts from 0. row: cell row number, which starts from 1. In Data Entry Preview, this value starts from 0. value: value to be assigned to the specified cell, which is a string. |
Returned Value | void | |
Example | Example 1: You can assign the value Order Number to cell A1 when the obtained report block object is defined as report. Using the cell address:
Using the row and column numbers of the cell:
Example 2: In Pagination Preview of a general report, you can assign the value Order Number to cell A1.
Example 3: In Data Entry Preview, you can assign the value Order Number to cell A1 of the second sheet.
Example 4: In a dashboard, you can assign the value Order Number to cell A1 of the report block named report0.
| |
Application Example | You can click the button to assign the value Order Number to cell A1. For details, you can download the template Modifying the Cell Value.cpt. | |
Mobile Terminal | This API is supported only in Data Entry Preview of a general report. |