Difference between revisions of "Padded Text Writer"

From PresenceWiki
Jump to: navigation, search
 
(Options)
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
This Node converts a Data Table into a padded text file with each field value placed at the same character position on each line. For example the following data:
 
This Node converts a Data Table into a padded text file with each field value placed at the same character position on each line. For example the following data:
 +
 +
{| border="1" cellspacing="0" cellpadding="5" align="center"
 +
! Name
 +
! Country
 +
|-
 +
| Graham Roberts
 +
| United Kingdom
 +
|-
 +
| Paul Rebane
 +
| United States
 +
|-
 +
| Basil Prescott
 +
| United Kingdom
 +
|-
 +
|}
 +
 +
Would be formatted as follows:
 +
 +
Name              Country
 +
Graham Roberts    United Kingdom
 +
Paul Rebane      United States
 +
Basil Prescott    United Kingdom
 +
 +
=== Options ===
 +
 +
[[file:padded_text_writer_options.png]]
 +
 +
For additional options, click the "Padded Text Writer Options" button.
 +
 +
* '''Maximum Field Width''' This is the maximum field size - default is 50 characters. Values larger than this will be truncated.
 +
* '''Minimum Space Between Fields''' This is the smallest number of space characters that should appear between field values.
 +
* '''Space Between Rows''' If true, a newline will be placed between rows of data in the output.
 +
 +
< Back to [[Task Elements]]
 +
 +
 +
----
 +
 +
== See Also ==
 +
 +
{{DataFormatters}}

Latest revision as of 13:22, 21 August 2015

Padded Text Writer Node

This Node converts a Data Table into a padded text file with each field value placed at the same character position on each line. For example the following data:

Name Country
Graham Roberts United Kingdom
Paul Rebane United States
Basil Prescott United Kingdom

Would be formatted as follows:

Name              Country
Graham Roberts    United Kingdom
Paul Rebane       United States
Basil Prescott    United Kingdom

Options

Padded text writer options.png

For additional options, click the "Padded Text Writer Options" button.

  • Maximum Field Width This is the maximum field size - default is 50 characters. Values larger than this will be truncated.
  • Minimum Space Between Fields This is the smallest number of space characters that should appear between field values.
  • Space Between Rows If true, a newline will be placed between rows of data in the output.

< Back to Task Elements



See Also

Task Elements > Data Format Nodes > Padded Text Writer

CSV Writer | HTML Table Writer | Basic XML Writer | XML Document Writer
XSLT Processor | Padded Text Writer | Custom Data Formatter Standard Option | Custom Data Formatter PDF Option
Custom Nodes


Task Elements | Resources