Child pages
  • DataProviderExport
Skip to end of metadata
Go to start of metadata

Refresh page Jan 21, 2020 06:16

Supported Clients
SmartClient WebClient NGClient

Methods Summary
DataProviderExport setFormat(format) Set format for dataprovider value.
DataProviderExport setHeaderText(headerText) Set header text for dataprovider value.
DataProviderExport setValueList(valuelistName) Set valuelist to resolve display value for dataprovider.

Methods Details

setFormat(format)

Set format for dataprovider value.

Parameters

String format the dataprovider format

Returns

Supported Clients

SmartClient,WebClient,NGClient

Sample

var exporter = plugins.textxport.createExporter(forms.form1.foundset,';',false);
exporter.addDataProvider('mydate').setFormat('yyyy/dd/MM');
var content = exporter.textExport();

setHeaderText(headerText)

Set header text for dataprovider value. If no header text is set and exportHeader is true dataprovider will be used as header text.

Parameters

String headerText the header text

Returns

Supported Clients

SmartClient,WebClient,NGClient

Sample

var exporter = plugins.textxport.createExporter(forms.form1.foundset,';',true);
exporter.addDataProvider('orderid').setHeaderText('Order ID');
var content = exporter.textExport();

setValueList(valuelistName)

Set valuelist to resolve display value for dataprovider.

Parameters

String valuelistName the valuelist name

Returns

Supported Clients

SmartClient,WebClient,NGClient

Sample

var exporter = plugins.textxport.createExporter(forms.form1.foundset,';',true);
exporter.addDataProvider('item_id').setValueList('myvaluelist');
var content = exporter.textExport();

  • No labels