Data export
Exports data from a table, repeating layout, or list of complex objects to a .xlsx or .csv file format.

Appearance

Behavior

Extends:
com.ibm.bpm.coach.CoachView
Methods:

Inherited addClass(name, [replaced])
Add or replace the CSS classes for this view.
Example

click()
Programmatically click the export button

exportFile([targetPath], [format])
Exports a spreadsheet file
Examples

focus()
Set focus on this control

getColorStyle() Returns: {string}
Gets color style of export button. NOTE: This always returns the color as set, to avoid ambiguity always set the color using "D"|"P"|"I"|"S"|"W"|"E"

getColumnFormats() Returns: {string[]}
Gets current column formats. See {@link https://support.office.com/en-us/article/Create-or-delete-a-custom-number-format-78f2a361-936b-4c03-8772-09fab54be7f4|Create or delete a custom number format} for more information on creating formatting srings.

getColumnHeaders() Returns: {string[]}
Gets the column headers.

getFileName() Returns: {string}
Get the default output file name. Users will be able to change file name when saving.

getFileType() Returns: {string}
Gets the currently set output format

getHelpText() Returns: {string}
Get help text for export button

getShapeStyle() Returns: {string}
Gets shape style of export button. NOTE: This always returns the shape style as set, to avoid ambiguity always set the shape style using "D"|"R"|"F"

getSizeStyle() Returns: {string}
Gets size style of export button. NOTE: This always returns the size style as set, to avoid ambiguity always set the size style using "D"|"S"|"L"|"X"

getTabIndex() Returns: {integer}
Get tab index for DataExport control

getTargetControl() Returns: {string}
Gets the name of the control that is being used to populate spreadsheets

getText() Returns: {string}
Get text of export button

getType() Returns: {string}
Get descriptive string representing the type of control

getWidth() Returns: {string}
Get configured width for export button (including unit)

Inherited hide(collapseFlag)
Hide the view.
Example

Inherited isBound() Returns: {boolean}
Indicate the bound status of the view.

isColumnNamesIncluded() Returns: {boolean}
Returns whether or not column names are included in output file

Inherited isEnabled() Returns: {boolean}
Check whether the view is enabled.
Example

isInvisibleColumnsIncluded() Returns: {boolean}
Returns whether or not output file will contain hidden columns/fields

Inherited isLabelVisible() Returns: {boolean}
Check whether the view label is visible.
Example

Inherited isVisible() Returns: {boolean}
Check whether the view is visible.
Example

Inherited propagateUpValueChange(event) Returns: {boolean}
Propagate the value change of the view up through the parent views.
Example

setColorStyle(style)
Sets color style of export button. NOTE: to avoid ambiguity always set the color using "D"|"P"|"I"|"S"|"W"|"E"

setColumnFormats(value, index)
Set column formatting for one or more columns. Formatting strings must conform to Microsoft Excel standards. See {@link https://support.office.com/en-us/article/Create-or-delete-a-custom-number-format-78f2a361-936b-4c03-8772-09fab54be7f4|Create or delete a custom number format} for more information on creating formatting srings.
Examples

setColumnHeaders(headers)
Set column headers.
Example

setColumnNamesIncluded(flag)
Set whether or not column names should be included in output file. Note: This has no effect when the control is bound to data.

Inherited setEnabled(enabled, required)
Enable or disable the view.
Example

setFileName(name)
Set the default file name output file should have. Users will be able to change file name when saving.

setFileType(type)
Set the file format to output to

setHelpText(text)
Set help text for export button

setIcon(icon)
Sets icon to display on the export button

setInvisibleColumnsIncluded(flag)
Set whether or not hidden columns/fields should be included in output file

Inherited setLabelVisible(visible)
Show or hide the view label.
Example

setOutline(outline)
Sets outline style of export button

setShapeStyle(style)
Sets shape style of export button. NOTE: to avoid ambiguity always set the shape style using "D"|"R"|"F"

setSizeStyle(style)
Sets size style of export button. NOTE: to avoid ambiguity always set the size style using "D"|"S"|"L"|"X"

setTabIndex(tabIndex)
Sets tab index of DataExport control

setTargetControl(control)
Set the control to use for populating spreadsheets
Examples

setText(text)
Set text of export button

Inherited setViewData(data, createPseudoBinding)
Set or update the bound data associated with the view. It applies only to views with bound data.

Note: It should only be used with simple type bindings, or complex type bindings with simple type properties.
It should not be used with bindings that have properties that are lists or compext types. For complex types, set the bindings by using
the binding.set pattern, as described in the Binding data and configuration options documentation section.
Example

Inherited setVisible(visible, collapse)
Show or hide the view.
Examples

setWidth(width)
Set width of export button (e.g. 50px, 20%, 2em - omitting the unit assumes px)

Inherited show()
Show this view.
Example

Inherited triggerFormulaUpdates([phase])
Broadcast the expression trigger for the specified view.
Example