Place a String value in the cell.
1 excel.Cell.setCellValueSQL
<excel.Cell.setCellValueSQL threed='true|false'>
<sh /> +
<rw /> +
<cl /> +
<value /> +
</excel.Cell.setCellValueSQL>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Athreed | boolean | False | True if it is planned to return a cursor with several rows and/or columns, deplacing the lower rows to the bottom of the processed sheet and substituting the contents of the columns occupied by the results of the SQL cursor. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Esh | Sheet | ||||
Erw | Row | ||||
Ecl | Cell | ||||
Evalue | sql |
Returns | |
---|---|
Type | Description |
cell |
Example
Place in an original Excel a SQL deplacing the content of the rows.
Copy
<xsql-script name='sample_excel_Cell_setCellValueSQL'> <body> <set name='wb'> <excel.Workbook> <file name='test_in.xls' type='absolute'/> </excel.Workbook> </set> <set name='sheet'> <excel.Workbook.getSheetAt index='0'> <wb/> </excel.Workbook.getSheetAt> </set> <set name='row'> <excel.Sheet.getRow row='0'> <sheet /> </excel.Sheet.getRow> </set> <set name='cell'> <excel.Row.getCell col='0'> <row /> </excel.Row.getCell> </set> <excel.Cell.setCellValueSQL threed='true'> <sheet /> <row /> <cell /> <string> SELECT tabid, tabname FROM systables where tabid IN ( 120, 121, 122) order by tabid </string> </excel.Cell.setCellValueSQL> <excel.Workbook.write> <wb/> <file name="test_out.xls" type="absolute"/> </excel.Workbook.write> </body> </xsql-script>