type_="export" (deprecated)

Using type_="export" creates a button that exports the widgets of a QuickApp to a valid output type, such as an Excel workbook.

Description

Note: <widget class_="button" type_="export"> will not work in a standalone QuickApp or within QuickApps running in the 1010data Insights Platform Version 10 production release (or later). Use <widget class_="button" type_="render"> or <widget class_="nest"> instead. For more information, see type_="render" and class_="nest".

Syntax

<dynamic variable="">
    <widget class_="button" type_="export" text_="[BUTTON_TEXT]" 
     target_="[TARGET_TYPE]"/>
</dynamic>

Attributes when type_="export"

target_
Specifies the type of target to which the widgets will be rendered.

Valid values are:

new
Export the query to a new 1010data worksheet in a new tab. If the export button is contained at the global level for the <dynamic>, the export will automatically open in a new browser tab.

For target_="new", the renderas_ attribute may also be used.

newbrowsertab
Opens the exported content to a new tab in the web browser.
this
Export the query to a 1010data worksheet, replacing the QuickApp.

The mode_ attribute specifies how the query should be exported.

csv
Export the data to a downloaded comma-separated values file.
csvzip
Export the data to a zipped (.zip compression) comma-separated values file.
xls
Export the data to an Excel spreadsheet.
xlsx
Export the data to an Excel workbook.
renderas_
When target_="new", the renderas_ attribute specifies how the exported content should be displayed.

Valid values are:

data
The exported content is displayed as a new 1010data worksheet in a new 1010data tab.
quickapp
The exported content is displayed as a QuickApp in a new 1010data tab.

A title for the exported tab may be specified using the target_title_ attribute.

The default is data.

target_title_
When renderas_="quickapp", the text specified by this attribute is used as the title of the newly exported 1010data tab.
mode_
When target_="this", the mode_ attribute specifies how to export the query.

Valid values are:

ops
The query contained within the <widget> is exported to a new worksheet as an expanded query of traditional 1010data operations.
block
The query is exported to a 1010data worksheet as a <block> with current parameterization intact.

The default is ops.

filename_
Specifies a file name under which the downloaded item will be saved.

The file extension does not need to be provided. A valid extension for the file type specified in the target_ attribute will be appended to the saved file when applicable.

The default is download.