To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Renders a table query result (RowsResult) as text/csv, delegating to QueryTableFolder's CSV writer. Created via ViewsBuilder.rowsResultCsvView(...) from server-side JS to export the rows of a table query. An optional set of column headers can be supplied; otherwise the writer's default header handling applies.
Group: Views
Implements: View, Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| contentType | String | The content type sent with the response, always "text/csv". |
Methods
render(CommonResource page, OutputStream out, Range range, Map<String,String> params, String contentType)
Returns: void
Writes the query result as CSV to the response, using the configured column headers if any.
| Parameter | Description |
|---|---|
page | the resource the view is being rendered for, not used by this view |
out | the stream the CSV text is written to |
range | not used by this view; the full CSV output is always written |
params | request parameters, not used by this view |
contentType | not used by this view; getContentType() supplies the response content type |
getContentType()
Returns: String
The content type sent with the response, always "text/csv".