Home Reference Source
public class | source

ExportOptions

Extends:

TypedObjectPrintExportOptions → ExportOptions

Class to export the datagrid, either one page at a time or specific pages, or all pages.

Static Method Summary

Static Public Methods
public static

create(exporterIndex: *): ExportOptions

Convenience method to create an exporter of a specified type

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

A list of exportable columns

public

A list of columns to export

public

Flag to copy the buffer to clipboard, instead of sending it to the server/disk.

public

A URL that the export infrastructure uses to trigger a file download.

public

Flag to enable local file persistence.

public

If set to true, exports all the records, irrespective of the filter and paging functions.

public

File name for the download.

public

The view responsible for rendering the export options Default implementation is provided by com.flexicious.export.ExportOptionsView

public

An instance of the exportOptionsRenderer.

public

Title for the print options dialog

public

exporter: flexiciousNmsp.CsvExporter

public

A list of exporters that are responsible for handling each of the export formats.

public

grid: *

The grid being exported

public

Whether or not to include footer cells in the export

public

Flag, which defaults to false, launches the preview and options screen in modal mode.

public

A property that will launch the resultant export into a new window.

public

Any custom data that is passed into the print/export mechanism.

public

For HTML/DOC export, we specify this so that the nested export does not look jagged

public

Instead of using the built in csv exporter, instead exports HTML that Microsoft Excel is able to render.

public

Flag to control the download message.

Method Summary

Public Methods
public
public

Name of the current exporter.

Inherited Summary

From class TypedObject
public

typeCache: {}

public
public

Returns a list of strings that represent the object hierarchy for this object.

public

Returns true if the class name to check is in the list of class names defined for this class.

From class PrintExportOptions
public

A flag that will To disable the user from printing or exporting invisible columns altogether .

public

A flag that will hide any columns that are not visible from being printed or exported by default.

public

In conjunction with printOption/exportOption = PRINT_EXORT_SPECIFIED_PAGES determines which pages of a grid with paging enabled to print.

public

pageTo: *

In conjunction with printOption/exportOption = PRINT_EXORT_SPECIFIED_PAGES determines which pages of a grid with paging enabled to print.

public
public

Specifies what to export, valid options are: EXPORT_CURRENT_PAGE EXPORT_ALL_PAGES EXPORT_SPECIFIED_PAGES EXPORT_SELECTED_RECORDS

public

Not used.

public

Flag to control whether or not to show the column picker.

public
public

Static Public Methods

public static create(exporterIndex: *): ExportOptions source

Convenience method to create an exporter of a specified type

Params:

NameTypeAttributeDescription
exporterIndex *

Return:

ExportOptions

Public Constructors

public constructor() source

Override:

PrintExportOptions#constructor

Public Members

public availableColumns: * source

A list of exportable columns

Properties:

NameTypeAttributeDescription
availableColumns *

public columnsToExport: * source

A list of columns to export

Properties:

NameTypeAttributeDescription
columnsToExport *

public copyToClipboard: * source

Flag to copy the buffer to clipboard, instead of sending it to the server/disk.

Properties:

NameTypeAttributeDescription
copyToClipboard *

public echoUrl: String source

A URL that the export infrastructure uses to trigger a file download. The various exporters (Doc,CSV,TXT,HTML) basically build a string to export and post it to this url along with the content type and the file extension This is the url to a server that simply writes back the content to the client along with the mime type and content disposition headers.

C# code to do this follows (Java and PHP would do the same thing). Response.AddHeader("content-disposition", string.Format("attachment; filename=Download.{0}",Request["extension"])); Response.ContentType = Request["contentType"]; Response.Write(Request["body"]); Response.End(); Defaults to: It is recommended you provide your own echo URL.

Properties:

NameTypeAttributeDescription
echoUrl *

public enableLocalFilePersistence: * source

Flag to enable local file persistence. Defaults to true for Flex 4.

Properties:

NameTypeAttributeDescription
enableLocalFilePersistence *

public exportAllRecords: * source

If set to true, exports all the records, irrespective of the filter and paging functions. Please note, for this to work, the dataprovider for the grid MUST be an Array Collection

Properties:

NameTypeAttributeDescription
exportAllRecords *

public exportFileName: * source

File name for the download. Defaults to download.xxx where xxx is the extension.

Properties:

NameTypeAttributeDescription
exportFileName *

public exportOptionsRenderer: * source

The view responsible for rendering the export options Default implementation is provided by com.flexicious.export.ExportOptionsView

Properties:

NameTypeAttributeDescription
exportOptionsRenderer *

public exportOptionsView: * source

An instance of the exportOptionsRenderer. Please note, this is only instantiated when you call the export method on the controller.

Properties:

NameTypeAttributeDescription
exportOptionsView *

public exportOptionsWindowTitle: * source

Title for the print options dialog

Properties:

NameTypeAttributeDescription
printOptionsWindowTitle *

public exporter: flexiciousNmsp.CsvExporter source

Properties:

NameTypeAttributeDescription
exporter *

public exporters: * source

A list of exporters that are responsible for handling each of the export formats. Defaults to an array of CsvExporter, DocExporter, HtmlExporter and TxtExporter.

Properties:

NameTypeAttributeDescription
exporters *

public grid: * source

The grid being exported

Properties:

NameTypeAttributeDescription
grid *

public includeFooters: boolean source

Whether or not to include footer cells in the export

public modalWindows: * source

Flag, which defaults to false, launches the preview and options screen in modal mode.

Properties:

NameTypeAttributeDescription
modalWindows *

public openNewWindow: * source

A property that will launch the resultant export into a new window. Used for the print option.

Properties:

NameTypeAttributeDescription
openNewWindow *

public printExportParameters: * source

Any custom data that is passed into the print/export mechanism.
This will then be available on Print/Export Options when the Print or Export is run.
Please note, this is not persisted in preferences.

Properties:

NameTypeAttributeDescription
printExportParameters *

public tableWidth: * source

For HTML/DOC export, we specify this so that the nested export does not look jagged

Properties:

NameTypeAttributeDescription
tableWidth *

public useExcelExporter: * source

Instead of using the built in csv exporter, instead exports HTML that Microsoft Excel is able to render. Generates a file with an XLS extension.

Properties:

NameTypeAttributeDescription
useExcelExporter *

public useSaveFileMessage: * source

Flag to control the download message. Defaults to true.

Properties:

NameTypeAttributeDescription
useSaveFileMessage *

Public Methods

public getClassNames(): string[] source

Returns a list of strings that represent the object hierarchy for this object.

Override:

PrintExportOptions#getClassNames

Return:

string[]

public getExporterName(): * source

Name of the current exporter.

Return:

*