Hi,
I can't find a way to get rid of the quotation marks in a simple textxport. The integers comes ok - but the text has the quotation marks. If I do the same thing with the excelxport-plugin it comes with out any. But since I need a text file with no header I thought the textxport-plugin is more suitable. Can some give me advise?
Here is the code:
/**
* @private
* @properties={typeid:24,uuid:"CCA2704B-A1FA-4679-AC61-1F46779A04B6"}
*/
function ExportTxtFile()
{
var $saveToLocation = plugins.file.showDirectorySelectDialog()
if(!$saveToLocation)return;
$saveToLocation+='debi_dump_.txt';
var bytes = plugins.textxport.textExport(forms.lst_debi_journal_all_2.foundset,
[
'exp_rechnungsdatum_txt',
'd_bu_soll',
'd_bu_haben',
'belegnummer',
'd_bu_buchungstext',
'd_bu_rechnungsbetrag2',
'scopes.globals.const_zero',
'scopes.globals.const_zero',
'scopes.globals.const_zero',
'scopes.globals.const_one',
'scopes.globals.const_one',
'scopes.globals.const_null',
'scopes.globals.MwstCodeUst',
'd_bu_geschaeftsbereich_id'],';');
var success = plugins.file.writeTXTFile($saveToLocation, bytes);
if (!success) application.output('Could not write file.');
}
Thanks,
Dominique