DataProviderExport

Methods Summarized

Methods Detailed

setFormat(format)

Set format for dataprovider value.

Parameters

  • String format the dataprovider format

Returns: DataProviderExport dataprovider export object

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: DataProviderExport dataprovider export object

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: DataProviderExport dataprovider export object

Sample

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

Last updated