Shows an excel sheet with the OWC component.
1 excel.Sheet.toOWC
<excel.Sheet.toOWC
classid='classid'
xcols='xcols'
ycols='ycols'
dcols='dcols'
>
<sheet /> +
</excel.Sheet.toOWC>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aclassid | string | ID of the type of component. | |||
Axcols | string | Columns of the excel sheet which you want to asign to the axis x. The columns are in format 0,1,2... and separated by commas. | |||
Aycols | string | Columns of the excel sheet which you want to asign to the axis y. The columns are in format 0,1,2... and separated by commas. | |||
Adcols | string | Columns of the excel sheet which you want to asign to the data. The columns are in format 0,1,2... and separated by commas. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Esheet | Sheet | The sheet which you want to show in the component. |
Example
Generate a OWC from a EXCEL sheet which is generated through a SELECT.
Copy
<xsql-script name='sample_excel_Sheet_toOWC'> <body> <set name='wb'> <excel.Workbook /> </set> <set name="sheet_1"> <excel.Workbook.createSheet name="Sheet 1"> <wb/> </excel.Workbook.createSheet> </set> <excel.Cell.setCellValueSQL threed='true'> <sheet_1 /> <excel.Sheet.createRow row='0'> <sheet_1 /> </excel.Sheet.createRow> <excel.Sheet.createCell row="0" col="0"> <sheet_1/> </excel.Sheet.createCell> <string>SELECT tipdoc,tercer,SUM(imptot) from gcompedh GROUP BY 1,2</string> </excel.Cell.setCellValueSQL> <return> <excel.Sheet.toOWC head='false' ycols='0,1' dcols='2' classid='0002E55A-0000-0000-C000-000000000046'> <sheet_1 /> </excel.Sheet.toOWC> </return> </body> </xsql-script>