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

PropertyReturnsDescription
contentTypeStringThe 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.

ParameterDescription
pagethe resource the view is being rendered for, not used by this view
outthe stream the CSV text is written to
rangenot used by this view; the full CSV output is always written
paramsrequest parameters, not used by this view
contentTypenot used by this view; getContentType() supplies the response content type

getContentType()

Returns: String

The content type sent with the response, always "text/csv".

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.